Changeset 9534 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 5 Nov 2012, 10:31:06 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
r9416 r9534 213 213 grok.name('index') 214 214 grok.require('waeup.viewHostels') 215 #grok.template('hostelpage') 215 grok.template('hostelpage') 216 form_fields = grok.AutoFields(IHostel).omit('beds_reserved') 216 217 pnav = 5 217 218 … … 234 235 grok.name('manage') 235 236 grok.require('waeup.manageHostels') 236 form_fields = grok.AutoFields(IHostel).omit('hostel_id') 237 form_fields['beds_reserved'].for_display = True 237 form_fields = grok.AutoFields(IHostel).omit('hostel_id', 'beds_reserved') 238 238 grok.template('hostelmanagepage') 239 239 label = _('Manage hostel') -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser_templates/hostelmanagepage.pt
r7811 r9534 16 16 <tbody> 17 17 <tal:widgets content="structure provider:widgets" /> 18 <tr> 19 <td class="fieldname" i18n:translate="" > 20 Reserved Beds: 21 </td> 22 <td> 23 <tal:repeat repeat="bed context/beds_reserved" > 24 <span tal:replace='bed'>BED</span> 25 </tal:repeat> 26 </td> 27 </tr> 18 28 </tbody> 19 29 </table> -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r9448 r9534 273 273 self.assertEqual(self.app['hostels']['hall-1'][ 274 274 'hall-1_A_101_D'].bed_type, 'regular_female_reserved') 275 self.assertTrue(' <div>A_101_A</div>' in self.browser.contents)275 self.assertTrue('A_101_A ' in self.browser.contents) 276 276 # The catalog has been updated 277 277 results = cat.searchResults(
Note: See TracChangeset for help on using the changeset viewer.