Changeset 1415 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
14 Feb 2007, 12:54:55 (18 years ago)
Author:
joachim
Message:

added new Function add_student

Location:
WAeUP_SRP/trunk/skins
Files:
2 added
2 edited
1 moved

Legend:

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

    r1315 r1415  
    1616d = {}
    1717for f in fields:
    18     d[f] = getattr(brain,f,'--')
     18    d[f] = getattr(brain,f,'')
    1919    if f == "sex":
    2020        if d[f]:
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py

    r1161 r1415  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=student=None, with_items=None
     7##parameters=
    88##title=
    99##
     
    1212return Info about the current Student
    1313"""
     14try:
     15    from Products.AdvancedQuery import Eq, Between, Le,In
     16    evalAQ = context.portal_catalog.evalAdvancedQuery
     17except:
     18    evalAdvancedQuery = None
    1419student_id = context.getStudentId()
    15 res = context.portal_catalog(id = student_id,portal_type='Student')
     20#res = context.portal_catalog(id = student_id,portal_type='Student')
     21query = Eq('id',student_id)
     22res = evalAQ(query)
    1623if not res:# or len(res) > 1:
    1724    return None
Note: See TracChangeset for help on using the changeset viewer.