created 'cybertools.organize' package, removed 'cybertools.contact', moved imports (in testing code only) of the latter package to the former one.
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1204 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
32beb7824f
commit
711f7c52a4
3 changed files with 9 additions and 7 deletions
|
@ -1,6 +1,8 @@
|
|||
Organizations: Persons, Institutions, Addresses...
|
||||
==================================================
|
||||
|
||||
($Id$)
|
||||
|
||||
Let's start with a Person:
|
||||
|
||||
>>> from cybertools.organize.party import Person
|
||||
|
|
|
@ -13,7 +13,7 @@ object data.
|
|||
|
||||
>>> from cybertools.typology.interfaces import IType, ITypeManager
|
||||
|
||||
Let's start with the Person class from the cybertools.contact package -
|
||||
Let's start with the Person class from the cybertools.organize package -
|
||||
we will then apply dynamic typing to Person objects:
|
||||
|
||||
>>> from cybertools.organize.interfaces import IPerson
|
||||
|
@ -53,14 +53,14 @@ We can now look what the type is telling us about the persons:
|
|||
>>> john_type.title
|
||||
u'Adult'
|
||||
>>> john_type.token
|
||||
'contact.person.agegroup.adult'
|
||||
'organize.person.agegroup.adult'
|
||||
>>> david_type.token
|
||||
'contact.person.agegroup.adult'
|
||||
'organize.person.agegroup.adult'
|
||||
>>> carla_type.token
|
||||
'contact.person.agegroup.child'
|
||||
'organize.person.agegroup.child'
|
||||
|
||||
>>> carla_type.tokenForSearch
|
||||
'contact.person.agegroup.child'
|
||||
'organize.person.agegroup.child'
|
||||
>>> carla_type.qualifiers is None
|
||||
True
|
||||
>>> carla_type.typeInterface is None
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
"""
|
||||
Example classes for the cybertools.reporter package. These use the
|
||||
cybertools.contact package
|
||||
cybertools.organize package
|
||||
|
||||
$Id$
|
||||
"""
|
||||
|
@ -56,7 +56,7 @@ class AgeGroup(BaseType):
|
|||
return self.isChild and u'Child' or u'Adult'
|
||||
|
||||
@property
|
||||
def token(self): return 'contact.person.agegroup.' + str(self.title.lower())
|
||||
def token(self): return 'organize.person.agegroup.' + str(self.title.lower())
|
||||
|
||||
# helpers
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue