Changeset 2823 for WAeUP_SRP/base


Ignore:
Timestamp:
29 Nov 2007, 08:43:31 (17 years ago)
Author:
joachim
Message:

fixed as discussed

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Accommodation.py

    r2454 r2823  
    5454                                     if r]
    5555            #for block in range(1,int(h.nr_of_blocks)+1):
    56             for block in 'ABCDEFGHIJ'[:int(h.nr_of_blocks)]:
     56            # for block in 'ABCDEFGHIJ'[:int(h.nr_of_blocks)]:
     57            if set(h.blocks_for_female).intersection(set(h.blocks_for_male)):
     58                return self.accommodation.acco_folder_view(beds_generated=beds_generated)
     59            for block in h.blocks_for_female + h.blocks_for_male:
    5760                sex = 'male'
    5861                if block in h.blocks_for_female:
  • WAeUP_SRP/base/skins/waeup_accommodation/acco_folder_view.pt

    r1783 r2823  
    22            is_so context/isSectionOfficer;
    33            beds_generated options/beds_generated|nothing;"
     4            psm options/psm|nothing;"
    45            >
    56  <metal:body use-macro="here/main_template/macros/master">
     
    1718      </h3>
    1819      <br />
     20      <h3 tal:condition="psm" tal:content="psm"></h3>
    1921      <table tal:condition="beds_generated">
    2022        <tr>
Note: See TracChangeset for help on using the changeset viewer.