Changeset 5614


Ignore:
Timestamp:
27 Dec 2010, 07:25:11 (14 years ago)
Author:
Henrik Bettermann
Message:

Implement first part of new accommodation allocation module. This part contains the new student accommodation catalog which replaces the accommodation objects.

Location:
WAeUP_SRP/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r5583 r5614  
    144144    def modifyRecord(self, record=None, **data): ###(
    145145        #records = self.searchResults(uid=uid)
     146        #import pdb;pdb.set_trace()
    146147        uid = data[self.key]
    147148        if record is None:
     
    19721973InitializeClass(RemovedStudentIds)
    19731974
     1975class AccommodationCatalog(WAeUPTable): ###(
     1976
     1977    meta_type = 'WAeUP Accommodation Catalog'
     1978    name = "accommodation_catalog"
     1979    key = "catkey" #student_id + session_id
     1980    def __init__(self,name=None):
     1981        if name ==  None:
     1982            name = self.name
     1983        WAeUPTable.__init__(self, name)
     1984
     1985
     1986InitializeClass(AccommodationCatalog)
     1987
    19741988###)
    19751989
  • WAeUP_SRP/trunk/exportimport.py

    r5591 r5614  
    142142    importWAeUPTable(site.portal_catalog_real, '', context,'portal_catalog_real')
    143143    importWAeUPTable(site.removed_student_ids, '', context,'removed_student_ids')
     144    importWAeUPTable(site.accommodation_catalog, '', context,'accommodation_catalog')
    144145
    145146    site.students_catalog.manage_setLocalGroupRoles(groupid='CampusOfficers',
  • WAeUP_SRP/trunk/profiles/default/toolset.xml

    r4302 r5614  
    9999           class="Products.WAeUP_SRP.WAeUPTool.WAeUPTool"/>         
    100100 <required tool_id="removed_student_ids"
    101            class="Products.WAeUP_SRP.WAeUPTables.RemovedStudentIds"/>             
     101           class="Products.WAeUP_SRP.WAeUPTables.RemovedStudentIds"/>   
     102 <required tool_id="accommodation_catalog"
     103           class="Products.WAeUP_SRP.WAeUPTables.AccommodationCatalog"/>                       
    102104</tool-setup>
Note: See TracChangeset for help on using the changeset viewer.