Changeset 5947 for main/waeup.sirp/trunk


Ignore:
Timestamp:
14 Apr 2011, 21:23:48 (14 years ago)
Author:
Henrik Bettermann
Message:

Remove max_pass attribute.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
4 edited

Legend:

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

    r5727 r5947  
    285285
    286286    >>> open('certificates.csv', 'wb').write(
    287     ... """code,faculty_code,department_code,title,study_mode,start_level,end_level,max_pass,application_category
    288     ... CERT1,FAC1,DEP1,Certificate 1,uf_ft,100,500,30,basic
    289     ... CERT2,FAC1,DEP1,Certificate 2,uf_ft,200,400,30,cest
     287    ... """code,faculty_code,department_code,title,study_mode,start_level,end_level,application_category
     288    ... CERT1,FAC1,DEP1,Certificate 1,uf_ft,100,30,basic
     289    ... CERT2,FAC1,DEP1,Certificate 2,uf_ft,200,30,cest
    290290    ... """)
    291291
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r5935 r5947  
    470470  >>> print browser.contents
    471471  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    472   ...<span class="required">*</span><span>title</span>
     472  ...<span class="required">*</span><span>Title</span>
    473473  ...
    474474
     
    488488  >>> browser.getControl(name='form.end_level').value = '400'
    489489  >>> browser.getControl(name='form.application_category').value = 'UME'
    490   >>> browser.getControl(name='form.max_pass').value = '400'
    491490
    492491Finally, we create the certificate:
     
    505504  >>> browser.getControl(name='form.end_level').value = '400'
    506505  >>> browser.getControl(name='form.application_category').value = 'UME'
    507   >>> browser.getControl(name='form.max_pass').value = '400'
    508506
    509507  >>> browser.getControl('Add certificate').click()
     
    626624  >>> browser.getControl(name='form.end_level').value = '400'
    627625  >>> browser.getControl(name='form.application_category').value = 'UME'
    628   >>> browser.getControl(name='form.max_pass').value = '400'
    629626  >>> browser.getControl('Add certificate').click()
    630627
     
    638635  >>> browser.getControl(name='form.end_level').value = '400'
    639636  >>> browser.getControl(name='form.application_category').value = 'UME'
    640   >>> browser.getControl(name='form.max_pass').value = '400'
    641637  >>> browser.getControl('Add certificate').click()
    642638 
     
    885881
    886882  >>> open('certificates.csv', 'wb').write(
    887   ... """code,title,faculty_code,department_code,study_mode,end_level,m_prefix,max_pass,start_level,application_category,review_state
    888   ... LBA,BACHELOR OF LITERATURE,FA,LIT,UG,ug_ft,500,LIT,30,100,basic,checked
    889   ... LMA,MASTER OF LITERATURE,FA,LIT,UG,ug_pt,500,LIT,30,100,cest,checked
    890   ... DME,DIPLOMA OF MATH,FS,MAT,DP,dp_ft,200,DME,30,100,cest,unchecked
     883  ... """code,title,faculty_code,department_code,study_mode,end_level,m_prefix,start_level,application_category,review_state
     884  ... LBA,BACHELOR OF LITERATURE,FA,LIT,UG,ug_ft,500,LIT,100,basic,checked
     885  ... LMA,MASTER OF LITERATURE,FA,LIT,UG,ug_pt,500,LIT,100,cest,checked
     886  ... DME,DIPLOMA OF MATH,FS,MAT,DP,dp_ft,200,DME,100,cest,unchecked
    891887  ... """)
    892888
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py

    r5052 r5947  
    2121    def __init__(self, code=u'NA', title=u'Unnamed Certificate',
    2222                 study_mode=None, start_level=None,
    23                  end_level=None, application_category=None, max_pass = u''):
     23                 end_level=None, application_category=None):
    2424        super(Certificate, self).__init__()
    2525        self.code = code
     
    2929        self.end_level = end_level
    3030        self.application_category = application_category
    31         self.max_pass = max_pass
    3231        # Initialize workflow state...
    3332        self.setReviewState('unchecked')
     
    6867
    6968    def delCourseRef(self, code, level=None):
    70         """Delete a course denoted by its code.
     69        """Delete a course reference denoted by its code.
    7170        """
    7271        for key in self.keys():
     
    7978            self._p_changed = True
    8079        return
    81 
    82 
    83 
    8480
    8581class CertificateFactory(grok.GlobalUtility):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt

    r5140 r5947  
    1717--------------------
    1818
    19 .. class:: Certificate([code=u'NA',[ title=u'Unnamed Certificate',[ study_mode=None,[ start_level=None,[ end_level=None,[ application_category=None,[ m_prefix=u'',[  max_pass = u'']]]]]]]])
     19.. class:: Certificate([code=u'NA',[ title=u'Unnamed Certificate',[ study_mode=None,[ start_level=None,[ end_level=None,[ application_category=None,[ m_prefix=u'']]]]]]])
    2020
    2121   Create a certificate object with the given parameters.
     
    110110
    111111   
    112    .. attribute:: max_pass
    113 
    114       Each :class:`Certificate` instance has a maximum number of passes:
    115 
    116         >>> mycertificate.max_pass
    117         u''
    118 
    119       .. XXX: This is not a proper description
    120 
    121 
    122112   .. method:: check()
    123113
Note: See TracChangeset for help on using the changeset viewer.