Changeset 5947 for main/waeup.sirp/trunk
- Timestamp:
- 14 Apr 2011, 21:23:48 (14 years ago)
- 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 285 285 286 286 >>> open('certificates.csv', 'wb').write( 287 ... """code,faculty_code,department_code,title,study_mode,start_level,end_level, max_pass,application_category288 ... CERT1,FAC1,DEP1,Certificate 1,uf_ft,100, 500,30,basic289 ... CERT2,FAC1,DEP1,Certificate 2,uf_ft,200, 400,30,cest287 ... """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 290 290 ... """) 291 291 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r5935 r5947 470 470 >>> print browser.contents 471 471 <!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> 473 473 ... 474 474 … … 488 488 >>> browser.getControl(name='form.end_level').value = '400' 489 489 >>> browser.getControl(name='form.application_category').value = 'UME' 490 >>> browser.getControl(name='form.max_pass').value = '400'491 490 492 491 Finally, we create the certificate: … … 505 504 >>> browser.getControl(name='form.end_level').value = '400' 506 505 >>> browser.getControl(name='form.application_category').value = 'UME' 507 >>> browser.getControl(name='form.max_pass').value = '400'508 506 509 507 >>> browser.getControl('Add certificate').click() … … 626 624 >>> browser.getControl(name='form.end_level').value = '400' 627 625 >>> browser.getControl(name='form.application_category').value = 'UME' 628 >>> browser.getControl(name='form.max_pass').value = '400'629 626 >>> browser.getControl('Add certificate').click() 630 627 … … 638 635 >>> browser.getControl(name='form.end_level').value = '400' 639 636 >>> browser.getControl(name='form.application_category').value = 'UME' 640 >>> browser.getControl(name='form.max_pass').value = '400'641 637 >>> browser.getControl('Add certificate').click() 642 638 … … 885 881 886 882 >>> 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_state888 ... LBA,BACHELOR OF LITERATURE,FA,LIT,UG,ug_ft,500,LIT, 30,100,basic,checked889 ... LMA,MASTER OF LITERATURE,FA,LIT,UG,ug_pt,500,LIT, 30,100,cest,checked890 ... DME,DIPLOMA OF MATH,FS,MAT,DP,dp_ft,200,DME, 30,100,cest,unchecked883 ... """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 891 887 ... """) 892 888 -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r5052 r5947 21 21 def __init__(self, code=u'NA', title=u'Unnamed Certificate', 22 22 study_mode=None, start_level=None, 23 end_level=None, application_category=None , max_pass = u''):23 end_level=None, application_category=None): 24 24 super(Certificate, self).__init__() 25 25 self.code = code … … 29 29 self.end_level = end_level 30 30 self.application_category = application_category 31 self.max_pass = max_pass32 31 # Initialize workflow state... 33 32 self.setReviewState('unchecked') … … 68 67 69 68 def delCourseRef(self, code, level=None): 70 """Delete a course denoted by its code.69 """Delete a course reference denoted by its code. 71 70 """ 72 71 for key in self.keys(): … … 79 78 self._p_changed = True 80 79 return 81 82 83 84 80 85 81 class CertificateFactory(grok.GlobalUtility): -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r5140 r5947 17 17 -------------------- 18 18 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'']]]]]]]) 20 20 21 21 Create a certificate object with the given parameters. … … 110 110 111 111 112 .. attribute:: max_pass113 114 Each :class:`Certificate` instance has a maximum number of passes:115 116 >>> mycertificate.max_pass117 u''118 119 .. XXX: This is not a proper description120 121 122 112 .. method:: check() 123 113
Note: See TracChangeset for help on using the changeset viewer.