Changeset 1520 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
6 Mar 2007, 18:26:05 (18 years ago)
Author:
joachim
Message:

Ghana changes

Location:
WAeUP_SRP/trunk/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt

    r1303 r1520  
    2828        <span tal:replace="info/batch_doc/no_of_pins" /></h3>
    2929        <span tal:replace="structure rendered" />
    30         <table tal:condition="nothing">
     30        <table tal:condition="info/used">
    3131          <tr tal:repeat="pin info/used">
    3232            <td tal:content="python:path('repeat/pin/index')+1" />
  • WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py

    r1519 r1520  
    1313"""
    1414from urllib import urlencode
     15try:
     16    from Products.zdb import set_trace
     17except:
     18    def set_trace():
     19        pass
    1520request = context.REQUEST
    1621course_cat = context.courses_catalog
     
    3843    url = "%s?%s" % (context.absolute_url(),urlencode(args))
    3944    return request.RESPONSE.redirect(url)
    40 ##cert_id = context.aq_parent.getContent().study_course
    41 ##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]
    5145cr_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()
     47cr = getattr(context,cr_id)
     48context.portal_workflow.doActionFor(cr,'open')
     49cr.getContent().edit(mapping=d)
     50context.portal_workflow.doActionFor(cr,'close')
    5451args['course_id'] = course_id
    5552from urllib import urlencode
  • WAeUP_SRP/trunk/skins/waeup_student/getNewStudentStatistics.py

    r1318 r1520  
    2929dep['id'] = "All Faculties"
    3030
    31 umequery = Eq('level','100')
     31umequery = Eq('level','100') | (Eq('level','200') & Eq('entry_mode','DE'))
     32#umequery = Eq('level','100')
    3233#dequery = Eq('entry_mode','DE')  # only correct for 2006/2007
    3334#total_new = aq_students(umequery or dequery)
Note: See TracChangeset for help on using the changeset viewer.