Changeset 575 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 Sep 2006, 07:18:24 (18 years ago)
Author:
Henrik Bettermann
Message:

email field added to personal schema and layout
title method for AccoFolder? added

Location:
WAeUP_SRP/trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Accommodation.py

    r502 r575  
    66from Products.CMFCore.permissions import View
    77from 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 
     8from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder
     9#from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument
     10from Products.CPSDocument.CPSDocument import CPSDocument
     11from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
    1212from Products.WAeUP_SRP.WAeUPTables import AccommodationTable
    1313
    1414class AccoFolder(CPSDocument): ###(
    1515    """
    16     WAeUP AccoFolder containing Accommodation halls 
     16    WAeUP AccoFolder containing Accommodation halls
    1717    """
    1818    meta_type = 'AccoFolder'
     
    2020    security = ClassSecurityInfo()
    2121   
     22    security.declareProtected(View,"Title")
     23    def Title(self):
     24        """compose title"""
     25        return "Accommodation"   
     26
    2227    security.declareProtected(ModifyPortalContent,"generateFreeBedsList") ###(
    2328    def generateFreeBedsList(self):
     
    2631        """
    2732        freelist = AccommodationTable()
    28         l = self.portal_catalog({'meta_type': "Accommodation"}) 
     33        l = self.portal_catalog({'meta_type': "Accommodation"})
    2934        halls = []
    3035        for h in l:
     
    5257                            elif bed in h.beds_for_final:
    5358                                bt = 'fi'
    54                             bt = "%(sex)s_%(bt)s" % vars() 
     59                            bt = "%(sex)s_%(bt)s" % vars()
    5560                            uid = '%s_%d_%s' % (hall.getId(),room_nr,bed)
    5661                            print bt,uid
     
    6065                            except ValueError,e:
    6166                                freelist.deleteRecord(uid)
    62                    
     67
    6368        return self.accommodation.academics_contents()
    6469
     
    7580class Accommodation(CPSDocument): ###(
    7681    """
    77     WAeUP Accommodation containing Departments 
     82    WAeUP Accommodation containing Departments
    7883    """
    7984    meta_type = 'Accommodation'
    8085    portal_type = meta_type
    8186    security = ClassSecurityInfo()
    82    
     87
    8388    security.declareProtected(View,"Title") ###(
    8489    def Title(self):
     
    9196
    9297###)
    93                
     98
    9499InitializeClass(Accommodation)
    95100
  • WAeUP_SRP/trunk/profiles/default/layouts/student_personal.xml

    r486 r575  
    7272 </widget>
    7373
    74 
    7574 <widget name="for_lga" meta_type="String Widget">
    7675  <property name="title">Foreign Student Local Government Area</property>
     
    174173
    175174
     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
    176187 <widget name="next_kin_firstname" meta_type="String Widget">
    177188  <property name="title">Next of Kin Firstname</property>
     
    264275 </widget>
    265276
    266  <widget name="next_kin_email" meta_type="String Widget">
     277 <widget name="next_kin_email" meta_type="Email Widget">
    267278  <property name="title">Next of Kin Email</property>
    268279  <property name="fields">
     
    367378 </widget>
    368379
    369  <widget name="sponsor_email" meta_type="String Widget">
     380 <widget name="sponsor_email" meta_type="Email Widget">
    370381  <property name="title">Sponsor Email</property>
    371382  <property name="fields">
     
    509520  </row>
    510521  <row>
     522   <cell name="email"/>
     523  </row> 
     524  <row>
    511525   <cell name="next_kin_firstname"/>
    512526  </row>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_personal.xml

    r486 r575  
    2424 <field name="campus_address" meta_type="CPS String Field"/>
    2525 <field name="phone" meta_type="CPS String Field"/>
     26 <field name="email" meta_type="CPS String Field" />
    2627
    2728 <field name="next_kin_firstname" meta_type="CPS String Field"/>
  • WAeUP_SRP/trunk/profiles/default/types/AcademicsFolder.xml

    r544 r575  
    7070  <permission value="Modify portal content"/>
    7171 </action>
    72  <action title="CertCourses" action_id="import_certificate_courses"
     72 <action title="CertificateCourses" action_id="import_certificate_courses"
    7373    category="import" condition_expr=""
    7474    url_expr="string:${object_url}/loadCertificateCoursesFromCSV"
  • WAeUP_SRP/trunk/profiles/default/vocabularies/pin_prefixes.xml

    r499 r575  
    99    <item key="CLR" msgid="">Clearance</item>
    1010    <item key="HOS" msgid="">Hostel Application</item>
    11     <item key="HMU" msgid="">Old Hostels (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>
    1414    <item key="GWN" msgid="">Gown Hiring</item>
    1515
Note: See TracChangeset for help on using the changeset viewer.