Ignore:
Timestamp:
9 May 2015, 21:48:17 (10 years ago)
Author:
Henrik Bettermann
Message:

Untegrate doctests into sphinx docu.

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 *******************************************************************
     1Access Codes (aka PINs)
     2***********************
    33
    44.. module:: waeup.kofa.accesscodes.accesscode
     
    99.. :NOlayer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    11 About access-codes
     11About Access Codes
    1212==================
    1313
     
    3434
    3535
    36 AccessCode
    37 ==========
     36Access Code
     37===========
    3838
    3939.. class:: AccessCode(batch_serial, random_num[,invalidation_date=None[, student_id=None]])
    4040
    41    You normally shouldn't create standalone access-codes. Use
     41   You normally shouldn't create standalone access codes. Use
    4242   instances of :class:`AccessCodeBatch` instead as they generate them
    4343   (in masses) and care for them.
     
    4747   :class:`AccessCodeBatch`) to be kept.
    4848
    49    Access-codes can have three states: unused, used, and
    50    disabled. While still unused but enabled access-codes are reflected
     49   Access codes can have three states: unused, used, and
     50   disabled. While still unused but enabled access codes are reflected
    5151   by an empty ``invalidation_date`` (set to ``None``), an already
    5252   used (invalidated) code provides an invalidation date.
    5353
    54    In case of misuse or similar cases access-codes can also be
     54   In case of misuse or similar cases access codes can also be
    5555   completely disabled by setting the ``disabled`` attribute to
    5656   ``True``.
     
    133133
    134134
    135 AccessCodeBatch
    136 ===============
     135Access Code Batch
     136=================
    137137
    138138.. class:: AccessCodeBatch(creation_date, creator, batch_prefix, cost, entry_num, num)
    139139
    140    Create a batch of access-codes.
     140   Create a batch of access codes.
    141141
    142142   :param creation_date: python datetime
     
    152152   :class:`waeup.kofa.accesscodes.interfaces.IAccessCodeBatch`.
    153153
    154    When creating a batch, all entries (access-codes) are generated as
     154   When creating a batch, all entries (access codes) are generated as
    155155   well.
    156156
     
    170170   .. attribute:: entry_num
    171171
    172       Number of entries (access-codes) inside the batch.
     172      Number of entries (access codes) inside the batch.
    173173
    174174   .. attribute:: invalidated_num
     
    298298      Lookup is done via local BTrees and therefore pretty fast.
    299299
    300       Returns a list of access-codes found or empty list.
     300      Returns a list of access codes found or empty list.
    301301
    302302
     
    312312    True
    313313
    314 Creating a batch of three access-codes, with a cost of ``12.12`` per
     314Creating a batch of three access codes, with a cost of ``12.12`` per
    315315code, the batch prefix ``APP``, batch number ``10``, creator ID
    316316``Fred`` and some arbitrary creation date:
     
    321321    ...   datetime.datetime(2009, 12, 23), 'Fred','APP', 12.12, 3, num=10)
    322322
    323 Getting all access-codes from a batch:
     323Getting all access codes from a batch:
    324324
    325325    >>> ac_codes = batch.entries()
     
    472472#    []
    473473
    474 AccessCodeBatchContainer
    475 ========================
     474Access Code Batch Container
     475===========================
    476476
    477477.. class:: AccessCodeBatchContainer()
     
    540540        be a string containing the full student ID.
    541541
    542 Examples:
    543 ---------
     542Examples
     543--------
    544544
    545545Creating a batch container:
     
    586586
    587587
    588 Access code plugin
     588Access Code Plugin
    589589==================
    590590
     
    592592
    593593  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.
    595595
    596596  .. 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-codes
    2 ***********************************************************************
     1UI Components for Access Codes
     2******************************
    33
    44.. module:: waeup.kofa.accesscodes.browser
     
    4545
    4646
    47 Access-code management screen
     47Access Code Management Screen
    4848=============================
    4949
     
    6666    ...
    6767
    68 Adding batches
     68Adding Batches
    6969==============
    7070
     
    336336
    337337Enabling and Disabling Found Access Codes
    338 -----------------------------------------
     338=========================================
    339339
    340340If a search is successfull, we can enable or disable the found access
     
    421421
    422422
    423 
    424423Archive files
    425424-------------
Note: See TracChangeset for help on using the changeset viewer.