Changeset 4993 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 3 Feb 2010, 11:55:41 (15 years ago)
- 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 284 284 285 285 >>> open('certificates.csv', 'wb').write( 286 ... """code,faculty_code,department_code,title, category,study_mode,start_level,end_level,max_pass,application_category287 ... CERT1,FAC1,DEP1,Certificate 1, UG,uf_ft,100,500,30,basic288 ... CERT2,FAC1,DEP1,Certificate 2, UG,uf_ft,200,400,30,cest286 ... """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 289 289 ... """) 290 290 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r4960 r4993 441 441 Set the remaining required fields: 442 442 443 >>> browser.getControl(name='form.category').value = 'UME'444 443 >>> browser.getControl(name='form.study_mode').value = 'combined' 445 444 >>> browser.getControl(name='form.start_level').value = '100' … … 459 458 >>> ctrl.value = 'Another cert with same code' 460 459 >>> browser.getControl(name='form.code').value = 'CERT1' 461 >>> browser.getControl(name='form.category').value = 'UME'462 460 >>> browser.getControl(name='form.study_mode').value = 'combined' 463 461 >>> browser.getControl(name='form.start_level').value = '100' … … 581 579 >>> browser.getControl(name='form.code').value = 'CERT1' 582 580 >>> browser.getControl(name='form.title').value = 'Certificate 1' 583 >>> browser.getControl(name='form.category').value = 'UME'584 581 >>> browser.getControl(name='form.study_mode').value = 'combined' 585 582 >>> browser.getControl(name='form.start_level').value = '100' … … 594 591 >>> browser.getControl(name='form.code').value = 'CERT2' 595 592 >>> browser.getControl(name='form.title').value = 'Certificate 2' 596 >>> browser.getControl(name='form.category').value = 'UME'597 593 >>> browser.getControl(name='form.study_mode').value = 'combined' 598 594 >>> browser.getControl(name='form.start_level').value = '100' … … 837 833 838 834 >>> 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_state835 ... """code,title,faculty_code,department_code,study_mode,end_level,m_prefix,max_pass,start_level,application_category,review_state 840 836 ... LBA,BACHELOR OF LITERATURE,FA,LIT,UG,ug_ft,500,LIT,30,100,basic,checked 841 837 ... 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 18 18 </tr> 19 19 <tr class="odd"> 20 <td>Application Category:</td>21 <td tal:content="context/category">CATEGORY</td>22 </tr>23 <tr class="even">24 20 <td>Study Mode:</td> 25 21 <td tal:content="context/study_mode">STUDY_MODE</td> -
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r4969 r4993 217 217 ) 218 218 219 category = schema.TextLine(220 title = u'category',221 )222 223 219 study_mode = schema.TextLine( 224 220 title = u'study mode', … … 238 234 application_category = schema.TextLine( 239 235 title = u'application category', 240 required = True,236 required = False, 241 237 ) 242 238 243 239 max_pass = schema.TextLine( 244 240 title = u'maximum pass', 241 required = False, 245 242 ) 246 243 -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r4920 r4993 15 15 16 16 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, 18 18 end_level=None, application_category=None, max_pass = u''): 19 19 super(Certificate, self).__init__() 20 20 self.code = code 21 21 self.title = title 22 self.category = category23 22 self.study_mode = study_mode 24 23 self.start_level = start_level -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r4920 r4993 23 23 -------------------- 24 24 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'']]]]]]]]) 26 26 27 27 Create a certificate object with the given parameters. … … 77 77 :meth:`Certificate.check` -- mark a certificate as ``checked`` 78 78 79 .. attribute:: category80 81 Each :class:`Certificate` instance has a category:82 83 >>> print mycertificate.category84 None85 86 .. XXX: This is not a proper description87 79 88 80 .. attribute:: study_mode
Note: See TracChangeset for help on using the changeset viewer.