cybertools/organize
helmutm a702108a12 provide additional field for pre-setting the registration field for a service
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3894 fd906abe-77d9-0310-91a1-e0d9ade77398
2010-06-13 15:54:23 +00:00
..
browser bug fix: handle id of non-existing client correctly 2010-02-27 10:54:48 +00:00
locales provide additional translations 2010-02-20 16:30:12 +00:00
__init__.py created 'cybertools.organize' package, removed 'cybertools.contact', moved imports (in testing code only) of the latter package to the former one. 2006-05-10 16:10:51 +00:00
configure.zcml work in progress: task management: creation of work items OK 2008-12-29 12:27:46 +00:00
interfaces.py provide additional field for pre-setting the registration field for a service 2010-06-13 15:54:23 +00:00
party.py allow hiding of controller macros, e.g. portlets 2008-10-17 09:38:41 +00:00
README.txt work in progress: new work item lifecycle 2009-01-11 10:45:07 +00:00
service.py provide additional field for pre-setting the registration field for a service 2010-06-13 15:54:23 +00:00
task.py extend composer.schema for better support of customized schema factories 2008-02-12 11:40:12 +00:00
tests.py work in progress: new work item lifecycle 2009-01-11 10:45:07 +00:00
work.py provide basic work delegation functionality 2009-10-20 17:10:56 +00:00
work.txt use local for displaying timestamps 2009-07-06 16:17:10 +00:00

==================================================
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.)