Changeset 575 for WAeUP_SRP/trunk
- Timestamp:
- 28 Sep 2006, 07:18:24 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r502 r575 6 6 from Products.CMFCore.permissions import View 7 7 from Products.CMFCore.permissions import ModifyPortalContent 8 from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder 9 #from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument 10 from Products.CPSDocument.CPSDocument import CPSDocument 11 from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder 8 from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder 9 #from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument 10 from Products.CPSDocument.CPSDocument import CPSDocument 11 from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder 12 12 from Products.WAeUP_SRP.WAeUPTables import AccommodationTable 13 13 14 14 class AccoFolder(CPSDocument): ###( 15 15 """ 16 WAeUP AccoFolder containing Accommodation halls 16 WAeUP AccoFolder containing Accommodation halls 17 17 """ 18 18 meta_type = 'AccoFolder' … … 20 20 security = ClassSecurityInfo() 21 21 22 security.declareProtected(View,"Title") 23 def Title(self): 24 """compose title""" 25 return "Accommodation" 26 22 27 security.declareProtected(ModifyPortalContent,"generateFreeBedsList") ###( 23 28 def generateFreeBedsList(self): … … 26 31 """ 27 32 freelist = AccommodationTable() 28 l = self.portal_catalog({'meta_type': "Accommodation"}) 33 l = self.portal_catalog({'meta_type': "Accommodation"}) 29 34 halls = [] 30 35 for h in l: … … 52 57 elif bed in h.beds_for_final: 53 58 bt = 'fi' 54 bt = "%(sex)s_%(bt)s" % vars() 59 bt = "%(sex)s_%(bt)s" % vars() 55 60 uid = '%s_%d_%s' % (hall.getId(),room_nr,bed) 56 61 print bt,uid … … 60 65 except ValueError,e: 61 66 freelist.deleteRecord(uid) 62 67 63 68 return self.accommodation.academics_contents() 64 69 … … 75 80 class Accommodation(CPSDocument): ###( 76 81 """ 77 WAeUP Accommodation containing Departments 82 WAeUP Accommodation containing Departments 78 83 """ 79 84 meta_type = 'Accommodation' 80 85 portal_type = meta_type 81 86 security = ClassSecurityInfo() 82 87 83 88 security.declareProtected(View,"Title") ###( 84 89 def Title(self): … … 91 96 92 97 ###) 93 98 94 99 InitializeClass(Accommodation) 95 100 -
WAeUP_SRP/trunk/profiles/default/layouts/student_personal.xml
r486 r575 72 72 </widget> 73 73 74 75 74 <widget name="for_lga" meta_type="String Widget"> 76 75 <property name="title">Foreign Student Local Government Area</property> … … 174 173 175 174 175 <widget name="email" meta_type="Email Widget"> 176 <property name="title">Email</property> 177 <property name="fields"> 178 <element value="email"/> 179 </property> 180 <property name="label">Email</property> 181 <property name="label_edit">Email</property> 182 <property name="readonly_layout_modes"/> 183 <property name="hidden_layout_modes"/> 184 <property name="hidden_readonly_layout_modes"/> 185 </widget> 186 176 187 <widget name="next_kin_firstname" meta_type="String Widget"> 177 188 <property name="title">Next of Kin Firstname</property> … … 264 275 </widget> 265 276 266 <widget name="next_kin_email" meta_type=" StringWidget">277 <widget name="next_kin_email" meta_type="Email Widget"> 267 278 <property name="title">Next of Kin Email</property> 268 279 <property name="fields"> … … 367 378 </widget> 368 379 369 <widget name="sponsor_email" meta_type=" StringWidget">380 <widget name="sponsor_email" meta_type="Email Widget"> 370 381 <property name="title">Sponsor Email</property> 371 382 <property name="fields"> … … 509 520 </row> 510 521 <row> 522 <cell name="email"/> 523 </row> 524 <row> 511 525 <cell name="next_kin_firstname"/> 512 526 </row> -
WAeUP_SRP/trunk/profiles/default/schemas/student_personal.xml
r486 r575 24 24 <field name="campus_address" meta_type="CPS String Field"/> 25 25 <field name="phone" meta_type="CPS String Field"/> 26 <field name="email" meta_type="CPS String Field" /> 26 27 27 28 <field name="next_kin_firstname" meta_type="CPS String Field"/> -
WAeUP_SRP/trunk/profiles/default/types/AcademicsFolder.xml
r544 r575 70 70 <permission value="Modify portal content"/> 71 71 </action> 72 <action title="Cert Courses" action_id="import_certificate_courses"72 <action title="CertificateCourses" action_id="import_certificate_courses" 73 73 category="import" condition_expr="" 74 74 url_expr="string:${object_url}/loadCertificateCoursesFromCSV" -
WAeUP_SRP/trunk/profiles/default/vocabularies/pin_prefixes.xml
r499 r575 9 9 <item key="CLR" msgid="">Clearance</item> 10 10 <item key="HOS" msgid="">Hostel Application</item> 11 <item key="HMU" msgid="">Old Hostel s (Halls 1, 2, 3, 4)</item>12 <item key="HMF" msgid="">New Hostel (Hall 5) </item>13 <item key="HMP" msgid="">Postgraduate Hostel </item>11 <item key="HMU" msgid="">Old Hostel (Halls 1, 2, 3, 4) Maintenance</item> 12 <item key="HMF" msgid="">New Hostel (Hall 5) Maintenance</item> 13 <item key="HMP" msgid="">Postgraduate Hostel Maintenance</item> 14 14 <item key="GWN" msgid="">Gown Hiring</item> 15 15
Note: See TracChangeset for help on using the changeset viewer.