Changeset 5087


Ignore:
Timestamp:
26 Mar 2010, 11:49:39 (15 years ago)
Author:
uli
Message:

Update tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.txt

    r5080 r5087  
    1818    >>> from waeup.sirp.accesscodes.accesscodes import AccessCodeBatch
    1919    >>> batch = AccessCodeBatch(
    20     ...   datetime.datetime(2009, 12, 23), 'Fred', 10, 'APP', 12.12, 3)
     20    ...   datetime.datetime(2009, 12, 23), 'Fred','APP', 12.12, 3, num=10)
     21
     22The entries of a batch have to be created manually. This is, because
     23we cannot add persistent objects in a still not persisted container:
     24
     25    >>> batch.createEntries()
    2126
    2227Now we have three accesscodes stored in the batch:
Note: See TracChangeset for help on using the changeset viewer.