Ignore:
Timestamp:
8 Mar 2012, 14:26:35 (13 years ago)
Author:
Henrik Bettermann
Message:

We need an itemTag for the list of reserved beds.

Change tests accordingly.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py

    r7718 r7802  
    246246        assert self.app['hostels']['hall-1'][
    247247            'hall-1_A_101_D'].bed_type == 'regular_female_reserved'
    248         self.assertTrue('<li>A_101_A</li>' in self.browser.contents)
     248        self.assertTrue('<div>A_101_A</div>' in self.browser.contents)
     249
    249250        # Change hostel configuration
    250251        hall.beds_for_all = ['D']
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/objectwidget.pt

    r7801 r7802  
    1 <div>
    2   <span tal:repeat="widget context/subwidgets">
    3     <span tal:define="error widget/error"
    4       tal:replace="structure error" tal:condition="error" />
    5     <span tal:replace="structure widget" />
    6   </span>
    7 </div>
     1<span tal:repeat="widget context/subwidgets">
     2  <span tal:define="error widget/error"
     3    tal:replace="structure error" tal:condition="error" />
     4  <span tal:replace="structure widget" />
     5</span>
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/sequencewidget.py

    r7797 r7802  
    4545
    4646    tag = None
    47     itemTag = None
     47    itemTag = 'div'
    4848
    4949# Register our sequence widgets as default for lists.
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/tests/test_objectwidget.py

    r7795 r7802  
    217217
    218218        check_list = [
    219             '<div', 'class=', 'row',
    220219            '<span',
    221220            'Foo Name',
    222221            '</span>', '<span',
    223             'foo@foo.test',
    224             '</div>']
     222            'foo@foo.test']
    225223        self.verifyResult(widget(), check_list, inorder=True)
    226224
Note: See TracChangeset for help on using the changeset viewer.