Changeset 12920 for main/waeup.kofa/trunk/src/waeup/kofa/accesscodes
- Timestamp:
- 9 May 2015, 21:48:17 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/accesscodes
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.txt
r7819 r12920 1 :mod:`waeup.kofa.accesscodes.accesscode` -- access codes (aka PINs)2 *********************** ********************************************1 Access Codes (aka PINs) 2 *********************** 3 3 4 4 .. module:: waeup.kofa.accesscodes.accesscode … … 9 9 .. :NOlayer: waeup.kofa.testing.KofaUnitTestLayer 10 10 11 About access-codes11 About Access Codes 12 12 ================== 13 13 … … 34 34 35 35 36 Access Code37 ========== 36 Access Code 37 =========== 38 38 39 39 .. class:: AccessCode(batch_serial, random_num[,invalidation_date=None[, student_id=None]]) 40 40 41 You normally shouldn't create standalone access -codes. Use41 You normally shouldn't create standalone access codes. Use 42 42 instances of :class:`AccessCodeBatch` instead as they generate them 43 43 (in masses) and care for them. … … 47 47 :class:`AccessCodeBatch`) to be kept. 48 48 49 Access -codes can have three states: unused, used, and50 disabled. While still unused but enabled access -codes are reflected49 Access codes can have three states: unused, used, and 50 disabled. While still unused but enabled access codes are reflected 51 51 by an empty ``invalidation_date`` (set to ``None``), an already 52 52 used (invalidated) code provides an invalidation date. 53 53 54 In case of misuse or similar cases access -codes can also be54 In case of misuse or similar cases access codes can also be 55 55 completely disabled by setting the ``disabled`` attribute to 56 56 ``True``. … … 133 133 134 134 135 Access CodeBatch136 =============== 135 Access Code Batch 136 ================= 137 137 138 138 .. class:: AccessCodeBatch(creation_date, creator, batch_prefix, cost, entry_num, num) 139 139 140 Create a batch of access -codes.140 Create a batch of access codes. 141 141 142 142 :param creation_date: python datetime … … 152 152 :class:`waeup.kofa.accesscodes.interfaces.IAccessCodeBatch`. 153 153 154 When creating a batch, all entries (access -codes) are generated as154 When creating a batch, all entries (access codes) are generated as 155 155 well. 156 156 … … 170 170 .. attribute:: entry_num 171 171 172 Number of entries (access -codes) inside the batch.172 Number of entries (access codes) inside the batch. 173 173 174 174 .. attribute:: invalidated_num … … 298 298 Lookup is done via local BTrees and therefore pretty fast. 299 299 300 Returns a list of access -codes found or empty list.300 Returns a list of access codes found or empty list. 301 301 302 302 … … 312 312 True 313 313 314 Creating a batch of three access -codes, with a cost of ``12.12`` per314 Creating a batch of three access codes, with a cost of ``12.12`` per 315 315 code, the batch prefix ``APP``, batch number ``10``, creator ID 316 316 ``Fred`` and some arbitrary creation date: … … 321 321 ... datetime.datetime(2009, 12, 23), 'Fred','APP', 12.12, 3, num=10) 322 322 323 Getting all access -codes from a batch:323 Getting all access codes from a batch: 324 324 325 325 >>> ac_codes = batch.entries() … … 472 472 # [] 473 473 474 Access CodeBatchContainer475 ======================== 474 Access Code Batch Container 475 =========================== 476 476 477 477 .. class:: AccessCodeBatchContainer() … … 540 540 be a string containing the full student ID. 541 541 542 Examples :543 -------- -542 Examples 543 -------- 544 544 545 545 Creating a batch container: … … 586 586 587 587 588 Access code plugin588 Access Code Plugin 589 589 ================== 590 590 … … 592 592 593 593 A `waeup.kofa` plugin that updates existing Kofa university 594 instances so that they provide support for access -codes.594 instances so that they provide support for access codes. 595 595 596 596 .. attribute:: grok.implements(IKofaPluggable) -
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/browser.txt
r11254 r12920 1 :mod:`waeup.kofa.accesscodes.browser` -- UI components for access-codes2 ****************************** *****************************************1 UI Components for Access Codes 2 ****************************** 3 3 4 4 .. module:: waeup.kofa.accesscodes.browser … … 45 45 46 46 47 Access -code management screen47 Access Code Management Screen 48 48 ============================= 49 49 … … 66 66 ... 67 67 68 Adding batches68 Adding Batches 69 69 ============== 70 70 … … 336 336 337 337 Enabling and Disabling Found Access Codes 338 ----------------------------------------- 338 ========================================= 339 339 340 340 If a search is successfull, we can enable or disable the found access … … 421 421 422 422 423 424 423 Archive files 425 424 -------------
Note: See TracChangeset for help on using the changeset viewer.