Changeset 622 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
8 Oct 2006, 14:46:25 (18 years ago)
Author:
joachim
Message:

added base files for accommodation-module,
renamed Accommodation to AccoHall?
accommodation to acco_hall
one can now add and view an accommodation-hall

Location:
WAeUP_SRP/trunk/skins
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py

    r611 r622  
    2929        'search_string': ''
    3030        }
     31choosen_ids = request.get('ids',[])
    3132
    3233rend,psm,ds = lt.renderLayout(layout_id= 'academics_search',
     
    4445                             objects = items,
    4546                             is_manager = is_manager,
     47                             choosen_ids = choosen_ids,
    4648                             )
    47 what = ds.get('search_mode')
    48 state = ds.get('review_state')
    49 term = ds.get('search_string')
    50 if not term and not with_review:
    51     return context.academics_search_view(rendered = rend,
    52                              psm = "You must specify a search string",
    53                              #psm = "%s, %s" % (psm,ds),
    54                              objects = items,
    55                              is_manager = is_manager,
    56                              )
    57 with_review = state != "all"
    5849what = ds.get('search_mode')
    5950state = ds.get('review_state')
     
    7364                             students = items,
    7465                             is_manager = is_manager,
     66                             choosen_ids = choosen_ids,
    7567                             )
    7668with_review = state != "all"
     
    10698                             objects = objects,
    10799                             is_manager = is_manager,
    108                              choosen_ids = []
     100                             choosen_ids = choosen_ids,
    109101                             )
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r608 r622  
    7373onlyreview = with_review and not term
    7474if onlyreview:
    75     res = catalog(portal_type='Student',
     75    res = catalog(portal_type=portal_type_query,
    7676                  review_state=state)
    7777elif what == "student_id":
     
    9595    if with_review:
    9696        try:
    97             res = catalog(portal_type='Student',SearchableText=st,
     97            res = catalog(portal_type=pt,SearchableText=st,
    9898                          review_state=state)
    9999        except:
Note: See TracChangeset for help on using the changeset viewer.