Changeset 523 for WAeUP_SRP


Ignore:
Timestamp:
15 Sep 2006, 13:06:52 (18 years ago)
Author:
joachim
Message:

using home_student as defaultview

Location:
WAeUP_SRP/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r519 r523  
    360360        if v and type(v) is StringType:
    361361            p,b,n = v.split('-')
    362             v = ScratchCardPin(v,b,n)
     362            v = ScratchCardPin(p,b,n)
    363363        if v:
    364364            b = '%s' % v.b
     
    371371            datastructure[widget_id+'_b'] = b
    372372            datastructure[widget_id+'_n'] = n
    373            
    374 ###)
    375 
    376 
    377373        return meth(mode=mode,
    378374                    datastructure=datastructure,
    379375                    prefix=self.prefix,
    380                     value=v,
    381376                    )
     377    ###)
    382378
    383379
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r509 r523  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addStudentsFolder</property>
    10  <property name="immediate_view">academics_contents</property>
     10 <property name="immediate_view">home_student</property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    3030 <property name="storage_methods"/>
    3131 <property name="cps_is_portlet">False</property>
    32  <alias from="(Default)" to="academics_contents"/>
    33  <alias from="view" to="academics_contents"/>
     32 <alias from="(Default)" to="home_student"/>
     33 <alias from="view" to="home_student"/>
    3434 <action title="View" action_id="view" category="object" condition_expr=""
    35     url_expr="string:${object_url}/academics_contents" visible="True">
     35    url_expr="string:${object_url}/home_student" visible="True">
    3636  <permission value="View"/>
    3737 </action>
  • WAeUP_SRP/trunk/profiles/default/types/University.xml

    r509 r523  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addUniversity</property>
    10  <property name="immediate_view">academics_contents</property>
     10 <property name="immediate_view">home_student</property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    1414  <element value="AcademicsFolder"/>
    1515  <element value="AccoFolder"/>
    16   <element value="FAQ"/>
    17   <element value="Section"/>
    1816  <element value="StudentsFolder"/>
    1917 </property>
     
    3735 <property name="cps_is_portlet">False</property>
    3836 <alias from="(Default)" to="home_student"/>
     37 <alias from="view" to="home_student"/>
    3938 <action title="View" action_id="view" category="object" condition_expr=""
    40     url_expr="string:${object_url}/academics_contents" visible="True">
     39    url_expr="string:${object_url}/home_student" visible="True">
    4140  <permission value="Modify portal content"/>
    4241 </action>
  • WAeUP_SRP/trunk/skins/waeup_student/get_student_info.py

    r522 r523  
    1717
    1818info = {}
    19 student = getattr(context.students,str(member))
     19student = getattr(context.students,str(member),None)
     20if student is None:
     21    return
    2022info['review_state'] = wf.getInfoFor(student,'review_state','keiner')
    2123#info['wf_state'] = 'keiner'
  • WAeUP_SRP/trunk/skins/waeup_student/home_student.pt

    r509 r523  
    1 <metal:html>
     1<metal:html tal:define="info context/get_student_info">
    22
    33<metal:body use-macro="here/main_template/macros/master">
    44
    55<metal:main fill-slot="main">
    6 
     6<span tal:condition="isAnon">
    77  <h2>Welcome to the     
    88   
     
    2323 
    2424  <p>This site is best seen in Firefox browser.</p>
     25</span>
     26<span tal:condition="not:isAnon">
     27    <h3 tal:content="info/review_state"></h3>
     28   <span tal:omit-tag="" tal:condition="python:info['review_state'] == 'admission_applied'"
     29          tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
     30                                                               layout_mode='view',
     31                                                               layout_id='student_application_fe')" />
     32     
     33
     34</span>
    2535 
    2636</metal:main>
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r486 r523  
    77##parameters=REQUEST, cluster=None, cpsdocument_edit_and_view_button=None, action=None
    88##title=
    9 ##
    109# $Id$
    1110"""
     
    3837if context.portal_type == "StudentApplication":
    3938    student = context.aq_parent
    40     if context.portal_workflow.getInfoFor(student,'review_state',None) == "application_pin_entered":
     39    state = context.portal_workflow.getInfoFor(student,'review_state',None)
     40    if state == "application_pin_entered":
    4141        student.content_status_modify(workflow_action="apply_for_admission")
     42    if doc.passport is None:
    4243        is_valid, ds = doc.validate(request=REQUEST,
    4344                                    proxy=context,
     
    4546                                    layout_mode = 'edit',
    4647                                    use_session=True)
    47 
     48   
    4849        action = '/application_form'
    49 
    5050        if is_valid:
    5151            comments = REQUEST.get('comments')
  • WAeUP_SRP/trunk/skins/waeup_student/widget_scratch_card_pin_render.pt

    r490 r523  
    44                   id_n string:${id}_n;
    55                   prefix options/prefix;
    6                    value options/datastructure/?id;
    76                   batch options/datastructure/?id_b;
    87                   nr options/datastructure/?id_n;
    98">
    109<tal:block condition="python: mode == 'view'">
    11 <span tal:replace="value" />
     10<span tal:replace="prefix" />-<span tal:replace="batch" />-<span tal:replace="nr" />
    1211</tal:block>
    1312<tal:block define="name here/getHtmlWidgetId;"
Note: See TracChangeset for help on using the changeset viewer.