Changeset 1490 for WAeUP_SRP/trunk


Ignore:
Timestamp:
25 Feb 2007, 00:32:45 (18 years ago)
Author:
joachim
Message:

fix

Location:
WAeUP_SRP/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/doc/srp_documentation.mm

    r1482 r1490  
    104104<node CREATED="1170083649773" ID="Freemind_Link_329050457" LINK="../profiles/default/schemas/student_personal.xml" MODIFIED="1170959011444" TEXT="Schema: student_personal"/>
    105105</node>
    106 <node CREATED="1170082392807" FOLDED="true" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">
     106<node CREATED="1170082392807" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">
    107107<node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/>
    108108<node CREATED="1170930264337" ID="Freemind_Link_1384807180" LINK="../profiles/default/types/StudentStudyCourse.xml" MODIFIED="1172159914623" TEXT="Type: StudentStudyCourse"/>
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py

    r1415 r1490  
    1010# $Id$
    1111"""
    12 return Info about the current Student
     12return the review_state of the Student
    1313"""
    1414try:
    1515    from Products.AdvancedQuery import Eq, Between, Le,In
    16     evalAQ = context.portal_catalog.evalAdvancedQuery
     16    aq_portal = context.portal_catalog.evalAdvancedQuery
    1717except:
    18     evalAdvancedQuery = None
     18    aq_portal = None
    1919student_id = context.getStudentId()
    20 #res = context.portal_catalog(id = student_id,portal_type='Student')
    2120query = Eq('id',student_id)
    22 res = evalAQ(query)
    23 if not res:# or len(res) > 1:
     21res = aq_portal(query)
     22if not res:
    2423    return None
    25 return res[-1].review_state
     24return res[0].review_state
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py

    r1483 r1490  
    1414request = context.REQUEST
    1515
    16 wf = context.portal_workflow
     16wftool = context.portal_workflow
    1717path_info = request.get('PATH_INFO').split('/')
    1818
     
    4747#review_state = wftool.getInfoFor(context,'review_state',None)
    4848#if review_state != 'content_addable':
    49 #    context.portal_workflow.doActionFor(context,'close_for_edit')
    50 
     49#    wftool.doActionFor(context,'close_for_edit')
     50student_review_state = context.getStudentReviewState()
     51may_register = student_review_state in ('shool_fee_payed',)
    5152#levels.sort()
    52 #if not levels:
     53#if not levels and may_register:
    5354#    context.invokeFactory('StudentStudyLevel',"%s" % current_level)
    5455#    level = getattr(context,"%s" % current_level)
  • WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelForNewStudents.py

    r1486 r1490  
    4747##res = aq_portal(query)
    4848query = Eq('level','100')
    49 res = aq_students(query)
     49#res = aq_students(query)
     50res = students_cat(level='100')
    5051#set_trace()
    5152count = 0
     53count_full = 0
    5254commit_count = 0
    5355logger.info("started for %s students" % len(res))
    5456for sbrain in res:
     57    #count_full += 1
     58    #rwrite("%s: %s %s %s <br />" % (count_full,sbrain.id,sbrain.entry_mode,sbrain.level))
    5559    student_obj = getattr(students,sbrain.id)
    5660    if sbrain.entry_mode == "":
Note: See TracChangeset for help on using the changeset viewer.