Changeset 414


Ignore:
Timestamp:
24 Aug 2006, 11:10:59 (18 years ago)
Author:
lregebro
Message:

Added an upgrade step for accomodation tool to accommodation tool.

Location:
WAeUP_SRP/trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r411 r414  
    7777InitializeClass(AccommodationTable)
    7878
    79 class AccomodationTable(WAeUPTable):
    80    
    81     meta_type = 'WAeUP Accomodation Tool'
    82    
    83     def __init__(self):
    84         WAeUPTable.__init__(self, 'portal_accommodation')
    85 
    86     def addRecord(self, **data):
    87         # The uid is the same as "bed".
    88         uid = data['bed']
    89         self.catalog_object(dict2ob(data), uid=uid)
    90         return uid
    91 
    92 
    93 InitializeClass(AccomodationTable)
     79# BBB:
     80AccomodationTable = AccommodationTable
  • WAeUP_SRP/trunk/configure.zcml

    r363 r414  
    33    >
    44
     5  <include file="upgrade.zcml"/>
     6 
    57  <adapter
    68      factory=".exportimport.WAeUPTableXMLAdapter"
  • WAeUP_SRP/trunk/profiles/default/layouts/accobook.xml

    r199 r414  
    3131  <property name="label">enter  PIN</property>
    3232  <property name="label_edit">Enter an Accommodation PIN</property>
    33   <property name="help">Enter a PIN valid for Accomodation Booking</property>
     33  <property name="help">Enter a PIN valid for Accommodation Booking</property>
    3434  <property name="readonly_layout_modes"/>
    3535  <property name="hidden_layout_modes"/>
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_view_all.pt

    r119 r414  
    1212             tal:define="items here/contentValues"
    1313             >
    14     <h2>Accomodation</h2>
     14    <h2>Accommodation</h2>
    1515    <table cellspacing="0" cellpadding="0">
    1616      <tal:block condition="python: len(items)">
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_view_manager.pt

    r119 r414  
    1212             tal:define="items here/contentValues"
    1313             >
    14     <h2>Accomodation</h2>
     14    <h2>Accommodation</h2>
    1515    <table cellspacing="0" cellpadding="0">
    1616      <tal:block condition="python: len(items)">
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_view_student.pt

    r119 r414  
    1212             tal:define="items here/contentValues"
    1313             >
    14     <h2>Accomodation</h2>
     14    <h2>Accommodation</h2>
    1515    <table cellspacing="0" cellpadding="0">
    1616      <tal:block condition="python: len(items)">
Note: See TracChangeset for help on using the changeset viewer.