Changeset 1251 for WAeUP_SRP


Ignore:
Timestamp:
9 Jan 2007, 18:10:22 (18 years ago)
Author:
joachim
Message:

total now counts only students created before 20.12.06 (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentStatistics.py

    r1248 r1251  
    2121except:
    2222    evalAdvancedQuery = None
    23 #from Products.zdb import set_trace;set_trace()
    2423logger.info('"%s","invoked statistics"' % context.portal_membership.getAuthenticatedMember())
    2524l = []
     
    2827dep = {}
    2928dep['id'] = "All"
    30 total = len(context.students_catalog())
     29#total = len(context.students_catalog())
     30freshmen = aq_portal(Eq('portal_type','Student') \
     31           & Le('created',context.ZopeTime("2006/12/20")))
     32total = len(freshmen)
    3133dep['students'] = total
     34#from Products.zdb import set_trace;set_trace()
    3235cpe_res = context.portal_catalog(review_state ='clearance_pin_entered')
    3336cpe_ids = [r.getId for r in cpe_res]
Note: See TracChangeset for help on using the changeset viewer.