Changeset 1520
- Timestamp:
- 6 Mar 2007, 18:26:05 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/schemas/student_course_result.xml
r1399 r1520 1 1 <?xml version="1.0"?> 2 2 <?xml-stylesheet type="text/xsl" href="schema.xsl"?> 3 <object name=" course_results" meta_type="CPS Schema">3 <object name="student_course_results" meta_type="CPS Schema"> 4 4 <field name="code" meta_type="CPS String Field"/> 5 5 <field name="title" meta_type="CPS String Field"/> -
WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt
r1303 r1520 28 28 <span tal:replace="info/batch_doc/no_of_pins" /></h3> 29 29 <span tal:replace="structure rendered" /> 30 <table tal:condition=" nothing">30 <table tal:condition="info/used"> 31 31 <tr tal:repeat="pin info/used"> 32 32 <td tal:content="python:path('repeat/pin/index')+1" /> -
WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py
r1519 r1520 13 13 """ 14 14 from urllib import urlencode 15 try: 16 from Products.zdb import set_trace 17 except: 18 def set_trace(): 19 pass 15 20 request = context.REQUEST 16 21 course_cat = context.courses_catalog … … 38 43 url = "%s?%s" % (context.absolute_url(),urlencode(args)) 39 44 return request.RESPONSE.redirect(url) 40 ##cert_id = context.aq_parent.getContent().study_course41 ##res = context.portal_catalog(portal_type="Certificate", id = cert_id)42 ##l = []43 ##if res:44 ## cert = res[0]45 ## path = cert.getPath()46 ## query = Eq("path",path) &\47 ## Eq('portal_type','CertificateCourse') &\48 ## Eq('SearchableText', "%s" % student.level) &\49 ## Eq('id',course_id)50 ##course = aq_portal(query)[0]51 45 cr_id = context.invokeFactory('StudentCourseResult',course_id) 52 ##d['core_or_elective'] = getattr(c.getObject().getContent(),'core_or_elective') 53 ##getattr(context,cr_id).getContent().edit(mapping=d) 46 #set_trace() 47 cr = getattr(context,cr_id) 48 context.portal_workflow.doActionFor(cr,'open') 49 cr.getContent().edit(mapping=d) 50 context.portal_workflow.doActionFor(cr,'close') 54 51 args['course_id'] = course_id 55 52 from urllib import urlencode -
WAeUP_SRP/trunk/skins/waeup_student/getNewStudentStatistics.py
r1318 r1520 29 29 dep['id'] = "All Faculties" 30 30 31 umequery = Eq('level','100') 31 umequery = Eq('level','100') | (Eq('level','200') & Eq('entry_mode','DE')) 32 #umequery = Eq('level','100') 32 33 #dequery = Eq('entry_mode','DE') # only correct for 2006/2007 33 34 #total_new = aq_students(umequery or dequery)
Note: See TracChangeset for help on using the changeset viewer.