Ignore:
Timestamp:
28 Feb 2012, 19:34:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Internationalize hostels package.

Remove exception catcher in switchReservations and corresponding test.

When testing the hostel configuration manually I found out that the beds_reserved list attribute of halls
only changed during the lifetime of a running instance. After restarting the portal all changes were gone.
Also "hostel._p_changed = True" didn't help. The only solution was to reassign the attribute to ensure persistance.

Unfortunately, the current tests don't catch such a malfunction. This has to be improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser_templates/containerpage.pt

    r7464 r7718  
    1 <div tal:condition="python: not len(context.keys())">
     1<div i18n:domain="waeup.sirp"
     2   i18n:translate="" tal:condition="python: not len(context.keys())">
    23There no subobjects registered yet.
    34</div>
    45
    5 <table>
     6<table i18n:domain="waeup.sirp">
    67  <thead>
    78    <tr>
    8       <th>Id</th>
    9       <th>Name</th>
     9      <th i18n:translate="">Id</th>
     10      <th i18n:translate="">Name</th>
    1011    </tr>
    1112  </thead>
     
    1314    <tr tal:repeat="value context/values">
    1415      <td> <a tal:attributes="href value/__name__">
    15           <span tal:content="value/hostel_id">Id</span></a></td>
    16       <td tal:content="value/hostel_name">Name</td>
     16          <span tal:content="value/hostel_id">ID</span></a></td>
     17      <td tal:content="value/hostel_name">NAME</td>
    1718    </tr>
    1819  </tbody>
Note: See TracChangeset for help on using the changeset viewer.