cybertools/organize/README.txt
helmutm 8bf7ef1ea0 work in progress: new work item lifecycle
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3133 fd906abe-77d9-0310-91a1-e0d9ade77398
2009-01-11 10:45:07 +00:00

66 lines
1.2 KiB
Text

==================================================
Organizations: Persons, Institutions, Addresses...
==================================================
($Id$)
>>> from zope import component
Persons and Addresses
=====================
Let's start with a Person:
>>> from cybertools.organize.party import Person
>>> john = Person(u'Smith')
>>> john.lastName
u'Smith'
>>> john.firstName
u''
>>> john.birthDate is None
True
>>> john.addresses
{}
A Person object knows the age of the person:
>>> john.age is None
True
>>> from datetime import date
>>> john.birthDate = date(1980, 3, 25)
>>> now = date(2006, 5, 12)
>>> john.ageAt(now)
26
>>> john.age >= 26
True
>>> john.firstName = u'John'
>>> john.firstName
u'John'
Addresses
---------
Let's create an address and assign it to a person:
>>> from cybertools.organize.party import Address
>>> addr = Address(u'New York', u'Broadway 1')
>>> john.addresses['standard'] = addr
>>> john.addresses['standard'].street
u'Broadway 1'
Tasks
=====
>>> from cybertools.organize.task import Task
Service Management
==================
>>> from cybertools.organize.service import Service
(See cyberapps.tumsm for comprehensive description and tests.)