Changeset 187 for waeup_product


Ignore:
Timestamp:
17 Nov 2005, 08:21:36 (19 years ago)
Author:
Henrik Bettermann
Message:
 
Location:
waeup_product/trunk/skins/waeup_student
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_student/register_level.py

    r179 r187  
    2525                      )
    2626if psm == 'invalid':
    27     return context.common_edit_form(rendered = res,
     27    return context.register_level_form(rendered = res,
    2828                                 create = 1,
    2929                                 type_name = type_name,
     
    3131                                 )
    3232elif psm == '':
    33     return context.common_edit_form(rendered = res,
     33    return context.register_level_form(rendered = res,
    3434                                 create = 1,
    3535                                 type_name = type_name,
    3636                                 psm = psm,
    3737                                 )
    38    
     38
    3939elif psm == 'valid':
    4040    voc = pv.courselevel
     
    4242    level = getattr(context,level_id,None)
    4343    if level:
    44         return context.common_edit_form(rendered = res,
     44        return context.register_level_form(rendered = res,
    4545                                 create = 1,
    4646                                 type_name = type_name,
    4747                                 psm = "You have already registered for Level %s" % voc.get(level_id)
    4848                                 )
    49    
    50     context.invokeFactory(type_name,level_id) 
     49
     50    context.invokeFactory(type_name,level_id)
    5151    object = getattr(context,level_id)
    5252    ds.set('Title',voc.get(level_id))
     
    6262    semester = getattr(object,semester_id)
    6363    semester.getContent().edit(mapping={'Title': 'Second Semester'})
    64     context_ti = context.portal_types[context.portal_type] 
     64    context_ti = context.portal_types[context.portal_type]
    6565    index = context_ti.getActionById('view','university_view')
    6666    return getattr(context,index)(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.