Changeset 614 for WAeUP_SRP


Ignore:
Timestamp:
3 Oct 2006, 13:44:51 (18 years ago)
Author:
Henrik Bettermann
Message:

see ticket 36

Please check the modifications.

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
2 edited

Legend:

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

    r603 r614  
    1515
    1616wf = context.portal_workflow
     17mtool = context.portal_membership
    1718path_info = request.get('PATH_INFO').split('/')
    1819try:
     
    3839info['cert_id'] = cert_id
    3940
    40 res = context.portal_catalog(container_path="%s/%s" % (cp,level_id))
     41res = context.portal_catalog(meta_type="CertificateCourse", container_path="%s/%s" % (cp,level_id))
    4142first = []
    4243second = []
  • WAeUP_SRP/trunk/skins/waeup_academics/level_created.py

    r486 r614  
    2222    dep = context.getContent()
    2323dep.getContent().edit(mapping={'Title': "Level %s" % dep.getId()})
    24 dep.invokeFactory('Semester','first')
    25 o = getattr(dep,'first')
    26 dict = {'Title': 'First Semester'}
    27 o.getContent().edit(mapping=dict)
    28 dep.invokeFactory('Semester','second')
    29 o = getattr(dep,'second')
    30 dict = {'Title': 'Second Semester'}
    31 o.getContent().edit(mapping=dict)
    32 context.orderObjects('id')
     24#dep.invokeFactory('Semester','first')
     25#o = getattr(dep,'first')
     26#dict = {'Title': 'First Semester'}
     27#o.getContent().edit(mapping=dict)
     28#dep.invokeFactory('Semester','second')
     29#o = getattr(dep,'second')
     30#dict = {'Title': 'Second Semester'}
     31#o.getContent().edit(mapping=dict)
     32#context.orderObjects('id')
    3333psm = 'Study Level created'
    3434action_path = context.getTypeInfo().immediate_view
Note: See TracChangeset for help on using the changeset viewer.