Ignore:
Timestamp:
3 Feb 2010, 11:55:41 (15 years ago)
Author:
Henrik Bettermann
Message:

Remove category attribute.
max_pass and application_category must not be required.

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

Legend:

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

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

    r4960 r4993  
    441441Set the remaining required fields:
    442442
    443   >>> browser.getControl(name='form.category').value = 'UME'
    444443  >>> browser.getControl(name='form.study_mode').value = 'combined'
    445444  >>> browser.getControl(name='form.start_level').value = '100'
     
    459458  >>> ctrl.value = 'Another cert with same code'
    460459  >>> browser.getControl(name='form.code').value = 'CERT1'
    461   >>> browser.getControl(name='form.category').value = 'UME'
    462460  >>> browser.getControl(name='form.study_mode').value = 'combined'
    463461  >>> browser.getControl(name='form.start_level').value = '100'
     
    581579  >>> browser.getControl(name='form.code').value = 'CERT1'
    582580  >>> browser.getControl(name='form.title').value = 'Certificate 1'
    583   >>> browser.getControl(name='form.category').value = 'UME'
    584581  >>> browser.getControl(name='form.study_mode').value = 'combined'
    585582  >>> browser.getControl(name='form.start_level').value = '100'
     
    594591  >>> browser.getControl(name='form.code').value = 'CERT2'
    595592  >>> browser.getControl(name='form.title').value = 'Certificate 2'
    596   >>> browser.getControl(name='form.category').value = 'UME'
    597593  >>> browser.getControl(name='form.study_mode').value = 'combined'
    598594  >>> browser.getControl(name='form.start_level').value = '100'
     
    837833
    838834  >>> open('certificates.csv', 'wb').write(
    839   ... """code,title,faculty_code,department_code,category,study_mode,end_level,m_prefix,max_pass,start_level,application_category,review_state
     835  ... """code,title,faculty_code,department_code,study_mode,end_level,m_prefix,max_pass,start_level,application_category,review_state
    840836  ... LBA,BACHELOR OF LITERATURE,FA,LIT,UG,ug_ft,500,LIT,30,100,basic,checked
    841837  ... LMA,MASTER OF LITERATURE,FA,LIT,UG,ug_pt,500,LIT,30,100,cest,checked
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatepage.pt

    r4865 r4993  
    1818    </tr>
    1919    <tr class="odd">
    20       <td>Application Category:</td>
    21       <td tal:content="context/category">CATEGORY</td>
    22     </tr>
    23     <tr class="even">
    2420      <td>Study Mode:</td>
    2521      <td tal:content="context/study_mode">STUDY_MODE</td>
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r4969 r4993  
    217217        )
    218218
    219     category = schema.TextLine(
    220         title = u'category',
    221         )
    222 
    223219    study_mode = schema.TextLine(
    224220        title = u'study mode',
     
    238234    application_category = schema.TextLine(
    239235        title = u'application category',
    240         required = True,
     236        required = False,
    241237        )
    242238   
    243239    max_pass = schema.TextLine(
    244240        title = u'maximum pass',
     241        required = False,
    245242        )
    246243   
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py

    r4920 r4993  
    1515
    1616    def __init__(self, code=u'NA', title=u'Unnamed Certificate',
    17                  category=None, study_mode=None, start_level=None,
     17                 study_mode=None, start_level=None,
    1818                 end_level=None, application_category=None, max_pass = u''):
    1919        super(Certificate, self).__init__()
    2020        self.code = code
    2121        self.title = title
    22         self.category = category
    2322        self.study_mode = study_mode
    2423        self.start_level = start_level
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt

    r4920 r4993  
    2323--------------------
    2424
    25 .. class:: Certificate([code=u'NA',[ title=u'Unnamed Certificate',[ category=None,[ study_mode=None,[ start_level=None,[ end_level=None,[ application_category=None,[ m_prefix=u'',[  max_pass = u'']]]]]]]]])
     25.. 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'']]]]]]]])
    2626
    2727   Create a certificate object with the given parameters.
     
    7777         :meth:`Certificate.check` -- mark a certificate as ``checked``
    7878
    79    .. attribute:: category
    80 
    81       Each :class:`Certificate` instance has a category:
    82 
    83         >>> print mycertificate.category
    84         None
    85 
    86       .. XXX: This is not a proper description
    8779
    8880   .. attribute:: study_mode
Note: See TracChangeset for help on using the changeset viewer.