- Timestamp:
- 3 Oct 2006, 13:44:51 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r603 r614 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership 17 18 path_info = request.get('PATH_INFO').split('/') 18 19 try: … … 38 39 info['cert_id'] = cert_id 39 40 40 res = context.portal_catalog( container_path="%s/%s" % (cp,level_id))41 res = context.portal_catalog(meta_type="CertificateCourse", container_path="%s/%s" % (cp,level_id)) 41 42 first = [] 42 43 second = [] -
WAeUP_SRP/trunk/skins/waeup_academics/level_created.py
r486 r614 22 22 dep = context.getContent() 23 23 dep.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') 33 33 psm = 'Study Level created' 34 34 action_path = context.getTypeInfo().immediate_view
Note: See TracChangeset for help on using the changeset viewer.