Ignore:
Timestamp:
1 Jul 2015, 16:24:58 (9 years ago)
Author:
Henrik Bettermann
Message:

More docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13076 r13124  
    323323        """ Define what happens after school fee payment
    324324        depending on the student's senate verdict.
    325 
    326325        In the base configuration current level is always increased
    327326        by 100 no matter which verdict has been assigned.
     
    334333        """ Define what happens after school fee payment
    335334        depending on the student's senate verdict.
    336 
    337         This method folllows the same algorithm as getReturningData but
     335        This method folllows the same algorithm as `getReturningData` but
    338336        it also sets the new values.
    339337        """
     
    376374    def setPaymentDetails(self, category, student,
    377375            previous_session, previous_level):
    378         """Create a payment ticket object and set the payment data of a
     376        """Create a payment ticket and set the payment data of a
    379377        student for the payment category specified.
    380378        """
     
    491489    def setBalanceDetails(self, category, student,
    492490            balance_session, balance_level, balance_amount):
    493         """Create Payment object and set the payment data of a student for.
    494 
     491        """Create a balance payment ticket and set the payment data
     492        as selected by the student.
    495493        """
    496494        p_item = u'Balance'
     
    519517    def increaseMatricInteger(self, student):
    520518        """Increase counter for matric numbers.
    521 
    522519        This counter can be a centrally stored attribute or an attribute of
    523520        faculties, departments or certificates. In the base package the counter
    524         is as an attribute of the site configuration object.
     521        is as an attribute of the site configuration container.
    525522        """
    526523        grok.getSite()['configuration'].next_matric_integer += 1
     
    530527        """Fetch the matric number counter which fits the student and
    531528        construct the new matric number of the student.
    532 
    533529        In the base package the counter is returned which is as an attribute
    534         of the site configuration object.
     530        of the site configuration container.
    535531        """
    536532        next_integer = grok.getSite()['configuration'].next_matric_integer
     
    540536
    541537    def setMatricNumber(self, student):
    542         """Set matriculation number of student.
    543 
    544         If the student's matric number is unset a new matric number is
     538        """Set matriculation number of student. If the student's matric number
     539        is unset a new matric number is
    545540        constructed according to the matriculation number construction rules
    546         defined in the constructMatricNumber method. The new matric number is
     541        defined in the `constructMatricNumber` method. The new matric number is
    547542        set, the students catalog updated. The corresponding matric number
    548543        counter is increased by one.
     
    550545        This method is tested but not used in the base package. It can
    551546        be used in custom packages by adding respective views
    552         and by customizing increaseMatricInteger and constructMatricNumber
     547        and by customizing `increaseMatricInteger` and `constructMatricNumber`
    553548        according to the university's matriculation number construction rules.
    554549
     
    607602    def selectBed(self, available_beds):
    608603        """Select a bed from a list of available beds.
    609 
    610604        In the base configuration we select the first bed found,
    611605        but can also randomize the selection if we like.
     
    680674    def getPDFCreator(self, context):
    681675        """Get a pdf creator suitable for `context`.
    682 
    683676        The default implementation always returns the default creator.
    684677        """
     
    800793                  omit_fields=(),
    801794                  tableheader=None):
    802         """Render pdf slips for transcript.
     795        """Render pdf slips for transcripts.
    803796        """
    804797        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     
    905898    def maxCredits(self, studylevel):
    906899        """Return maximum credits.
    907 
    908         In some universities maximum credits is not constant, it
    909         depends on the student's study level. Set maxCredits None or 0
     900        At some universities maximum credits is not constant, it
     901        depends on the student's study level. Set `maxCredits` None or 0
    910902        in order to deactivate the limitation.
    911903        """
     
    921913    def getBedCoordinates(self, bedticket):
    922914        """Return bed coordinates.
    923 
    924         This method can be used to customize the display_coordinates
     915        This method can be used to customize the `display_coordinates`
    925916        property method.
    926917        """
Note: See TracChangeset for help on using the changeset viewer.