|
Revision 2702, 1.1 kB
(checked in by jmorliaguet, 3 years ago)
|
- copyright year update
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
############################################################################## |
|---|
| 2 |
# |
|---|
| 3 |
# Copyright (c) 2005-2006 Nuxeo and Contributors. |
|---|
| 4 |
# All Rights Reserved. |
|---|
| 5 |
# |
|---|
| 6 |
# This software is subject to the provisions of the Zope Public License, |
|---|
| 7 |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. |
|---|
| 8 |
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
|---|
| 9 |
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|---|
| 10 |
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
|---|
| 11 |
# FOR A PARTICULAR PURPOSE. |
|---|
| 12 |
# |
|---|
| 13 |
############################################################################## |
|---|
| 14 |
""" |
|---|
| 15 |
|
|---|
| 16 |
$Id$ |
|---|
| 17 |
""" |
|---|
| 18 |
__docformat__ = "reStructuredText" |
|---|
| 19 |
|
|---|
| 20 |
from zope.interface import Interface |
|---|
| 21 |
from zope.schema import DottedName, TextLine |
|---|
| 22 |
|
|---|
| 23 |
from cpsskins.elements.interfaces import IElement |
|---|
| 24 |
|
|---|
| 25 |
class IPerspective(IElement): |
|---|
| 26 |
"""A perspective.""" |
|---|
| 27 |
|
|---|
| 28 |
name = DottedName( |
|---|
| 29 |
title=u"Name", |
|---|
| 30 |
) |
|---|
| 31 |
|
|---|
| 32 |
title = TextLine( |
|---|
| 33 |
title=u"Title", |
|---|
| 34 |
) |
|---|
| 35 |
|
|---|
| 36 |
def __str__(self): |
|---|
| 37 |
"""Return the name of the perspective""" |
|---|
| 38 |
|
|---|
| 39 |
IPerspective.setTaggedValue('name', u'perspective') |
|---|