- Timestamp:
- 5 Apr 2010, 13:44:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.txt
r5122 r5128 103 103 representations: 104 104 105 >>> ac = AccessCode(None, '9999999999' , 12.12)105 >>> ac = AccessCode(None, '9999999999') 106 106 >>> ac.representation 107 107 '--<10-DIGITS>' 108 109 Also the ``cost`` will not be set: 110 111 >>> ac.cost is None 112 True 108 113 109 114 … … 302 307 .. method:: addBatch(batch) 303 308 304 Add a batch in this container. 309 Add a batch in this container. You should make sure, that 310 entries in the given batch are set correctly. 311 312 .. method:: createBatch(creation_date, creator, batch_prefix, cost, entry_num) 313 314 Create a batch inside this container. Returns the batch created. 315 316 :param creation_date: python datetime 317 :param creator: creators user id 318 :type creator: string 319 :param batch_prefix: prefix of this batch 320 :param cost: cost per access code 321 :type cost: float 322 :param entry_num: number of access codes to create 305 323 306 324 .. method:: getNum(prefix)
Note: See TracChangeset for help on using the changeset viewer.