Changeset 1456 for WAeUP_SRP


Ignore:
Timestamp:
21 Feb 2007, 16:53:14 (18 years ago)
Author:
joachim
Message:

modified personal_edit and waeup_edit
documentation changes

Location:
WAeUP_SRP/trunk
Files:
9 edited

Legend:

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

    r1449 r1456  
    1010<node CREATED="1170079621592" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" POSITION="right" TEXT="Campus">
    1111<node CREATED="1171710559043" ID="Freemind_Link_1592396213" MODIFIED="1171710565212" TEXT="Id: campus"/>
    12 <node CREATED="1170079643589" ID="Freemind_Link_1231068129" MODIFIED="1171710686426" TEXT="Academic Section">
     12<node CREATED="1170079643589" FOLDED="true" ID="Freemind_Link_1231068129" MODIFIED="1171710686426" TEXT="Academic Section">
    1313<node CREATED="1171710577379" ID="Freemind_Link_1444831124" MODIFIED="1171710589887" TEXT="Id: academics"/>
    1414<node CREATED="1170080366716" ID="Freemind_Link_415048819" MODIFIED="1171709591652" TEXT="{Faculties}">
     
    4646</node>
    4747</node>
    48 <node CREATED="1170082138244" FOLDED="true" ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section">
     48<node CREATED="1170082138244" ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section">
    4949<node CREATED="1171709784119" ID="_" MODIFIED="1171709937449" TEXT="Type: StudentsFolder" VSHIFT="104"/>
    5050<node CREATED="1171710545564" ID="Freemind_Link_221165828" MODIFIED="1171710551332" TEXT="Id: students"/>
     
    106106</node>
    107107</node>
    108 <node CREATED="1171379675232" FOLDED="true" ID="Freemind_Link_41196870" MODIFIED="1171379685192" TEXT="Userinterface">
     108<node CREATED="1171379675232" ID="Freemind_Link_41196870" MODIFIED="1171379685192" TEXT="Userinterface">
    109109<node CREATED="1171379691280" ID="Freemind_Link_24219" MODIFIED="1171379703554" TEXT="Officers">
    110110<node CREATED="1171379710053" ID="Freemind_Link_1668598079" MODIFIED="1171379734695" TEXT="add_student">
     
    113113<node CREATED="1171379759850" ID="Freemind_Link_435667013" LINK="../profiles/default/schemas/student_create.xml" MODIFIED="1171380077013" TEXT="Schema: student_create"/>
    114114<node CREATED="1171015856280" ID="Freemind_Link_976681849" LINK="../profiles/default/layouts/student_create.xml" MODIFIED="1171382310446" TEXT="Layout: student_create"/>
     115</node>
     116</node>
     117<node CREATED="1172016304181" ID="Freemind_Link_831833270" MODIFIED="1172016314036" TEXT="Students">
     118<node CREATED="1171379710053" ID="Freemind_Link_413720849" MODIFIED="1172016338320" TEXT="change_password">
     119<node CREATED="1171379737777" ID="Freemind_Link_1193425802" MODIFIED="1172016370425" TEXT="Script: change_password"/>
     120<node CREATED="1171362924343" ID="Freemind_Link_197745680" LINK="../skins/waeup_accommodation/student_create_form.pt" MODIFIED="1172016392094" TEXT="PT: change_password_form"/>
     121<node CREATED="1171379759850" ID="Freemind_Link_1595823834" LINK="../profiles/default/schemas/student_change_password.xml" MODIFIED="1172016494768" TEXT="Schema: student_change_password"/>
     122<node CREATED="1171015856280" ID="Freemind_Link_83566645" LINK="../profiles/default/layouts/student_change_password.xml" MODIFIED="1172016516654" TEXT="Layout: student_change_password"/>
    115123</node>
    116124</node>
     
    145153</node>
    146154</node>
    147 <node CREATED="1170082542534" ID="Freemind_Link_243354429" MODIFIED="1171710670383" TEXT="Pin Section">
     155<node CREATED="1170082542534" FOLDED="true" ID="Freemind_Link_243354429" MODIFIED="1171710670383" TEXT="Pin Section">
    148156<node CREATED="1171710956294" ID="Freemind_Link_1564638284" MODIFIED="1171710960600" TEXT="Type: ScratchCardBatchesFolder"/>
    149157<node CREATED="1171710648131" ID="Freemind_Link_1115846656" MODIFIED="1171710654941" TEXT="Id: pins"/>
  • WAeUP_SRP/trunk/profiles/default/layouts.xml

    r1449 r1456  
    2323  <object name="student_application_search" meta_type="CPS Layout"/>
    2424  <object name="student_session_results_search" meta_type="CPS Layout"/>
     25  <object name="student_change_password" meta_type="CPS Layout"/>
    2526  <object name="student_clearance" meta_type="CPS Layout"/>
    2627  <object name="student_clearance_fe" meta_type="CPS Layout"/>
  • WAeUP_SRP/trunk/profiles/default/pins.xml

    r1062 r1456  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    23<object name="portal_pins" meta_type="WAeUP Table">
    34 <column value="pin"/>
  • WAeUP_SRP/trunk/profiles/default/pumeresults.xml

    r1128 r1456  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    23<object name="portal_catalog" meta_type="WAeUP Table">
    34 <column value="jamb_reg_no"/>
  • WAeUP_SRP/trunk/profiles/default/results_import.xml

    r1146 r1456  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    23<object name="portal_catalog" meta_type="CMF Catalog">
    34 <column value="key"/>
  • WAeUP_SRP/trunk/profiles/default/returning_import.xml

    r1151 r1456  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    23<object name="portal_catalog" meta_type="CMF Catalog">
    34 <column value="matric_no"/>
  • WAeUP_SRP/trunk/profiles/default/schemas.xml

    r1449 r1456  
    1818 <object name="student_accommodation" meta_type="CPS Schema"/>
    1919 <object name="student_application" meta_type="CPS Schema"/>
     20 <object name="student_change_password" meta_type="CPS Schema"/>
    2021 <object name="student_clearance" meta_type="CPS Schema"/>
    2122 <object name="student_course_result" meta_type="CPS Schema"/>
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py

    r1435 r1456  
    7777        phone = ds.get('phone')
    7878        student_id = context.getStudentId()
    79         app_doc = context.application.getContent()
    80         jamb_sex = 'M'
    81         if ds.get('sex'):
    82             jamb_sex = 'F'
    83            
     79        #app_doc = context.application.getContent()
     80        #jamb_sex = 'M'
     81        #if ds.get('sex'):
     82        #    jamb_sex = 'F'
    8483        # originally imported data must be kept; app_doc should not be changed here 
    8584        #app_doc.edit(mapping={'jamb_lastname': name,
    8685        #                      'jamb_sex': jamb_sex
    8786        #                      })
    88        
    8987        context.students_catalog.modifyRecord(id = student_id,
    9088                                              name = name,
  • WAeUP_SRP/trunk/skins/waeup_student/personal_edit.py

    r1167 r1456  
    1 ## Script (Python) "personal_edit"
    2 ##bind container=container
    3 ##bind context=context
    4 ##bind namespace=
    5 ##bind script=script
    6 ##bind subpath=traverse_subpath
    7 ##parameters=REQUEST, cpsdocument_edit_button=None, cpsdocument_edit_and_view_button=None, action=None
    8 ##title=
    9 # $Id: application_edit.py 1071 2006-12-16 15:53:13Z joachim $
    10 """
    11 """
    12 wftool = context.portal_workflow
    13 from urllib import urlencode
    14 from Products.CPSDocument.utils import getFormUidUrlArg
    15 import DateTime
    16 current = DateTime.DateTime()
    17 import logging
    18 logger = logging.getLogger('Student.Personal.Edit')
    19 
    20 info = context.getPersonalInfo()
    21 
    22 if info is None:
    23     logger.info('"anonymous access","%s"' % REQUEST.get('URL0'))
    24     return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    25 
    26 student = info['student']
    27 per = info['per']
    28 per_doc = info['per_doc']
    29 state = info['review_state']
    30 is_valid, ds = per_doc.validate(request=REQUEST,
    31                                 schema_id = 'student_personal',
    32                                 layout_id = 'student_personal_fe',
    33                                 proxy=per,
    34                                 use_session=True)
    35 
    36 psm = ""
    37 args = {}
    38 action = "/personal_edit_form"
    39 base_url = per.absolute_url()
    40 
    41 if is_valid:
    42     if cpsdocument_edit_button:
    43         logger.info('"%s", "edited personal data"' % (info['id']))
    44         #action = ""
    45         #base_url = student.absolute_url()
    46         #url = base_url + action
    47         psm = 'psm_content_changed'
    48 else:
    49     psm = 'psm_content_error'
    50     args = getFormUidUrlArg(REQUEST)
    51 
    52 args['portal_status_message'] = psm
    53 url = base_url + action + '?' + urlencode(args)
    54 REQUEST.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.