Changeset 523
- Timestamp:
- 15 Sep 2006, 13:06:52 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r519 r523 360 360 if v and type(v) is StringType: 361 361 p,b,n = v.split('-') 362 v = ScratchCardPin( v,b,n)362 v = ScratchCardPin(p,b,n) 363 363 if v: 364 364 b = '%s' % v.b … … 371 371 datastructure[widget_id+'_b'] = b 372 372 datastructure[widget_id+'_n'] = n 373 374 ###)375 376 377 373 return meth(mode=mode, 378 374 datastructure=datastructure, 379 375 prefix=self.prefix, 380 value=v,381 376 ) 377 ###) 382 378 383 379 -
WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml
r509 r523 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addStudentsFolder</property> 10 <property name="immediate_view"> academics_contents</property>10 <property name="immediate_view">home_student</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 30 30 <property name="storage_methods"/> 31 31 <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"/> 34 34 <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"> 36 36 <permission value="View"/> 37 37 </action> -
WAeUP_SRP/trunk/profiles/default/types/University.xml
r509 r523 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addUniversity</property> 10 <property name="immediate_view"> academics_contents</property>10 <property name="immediate_view">home_student</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 14 14 <element value="AcademicsFolder"/> 15 15 <element value="AccoFolder"/> 16 <element value="FAQ"/>17 <element value="Section"/>18 16 <element value="StudentsFolder"/> 19 17 </property> … … 37 35 <property name="cps_is_portlet">False</property> 38 36 <alias from="(Default)" to="home_student"/> 37 <alias from="view" to="home_student"/> 39 38 <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"> 41 40 <permission value="Modify portal content"/> 42 41 </action> -
WAeUP_SRP/trunk/skins/waeup_student/get_student_info.py
r522 r523 17 17 18 18 info = {} 19 student = getattr(context.students,str(member)) 19 student = getattr(context.students,str(member),None) 20 if student is None: 21 return 20 22 info['review_state'] = wf.getInfoFor(student,'review_state','keiner') 21 23 #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"> 2 2 3 3 <metal:body use-macro="here/main_template/macros/master"> 4 4 5 5 <metal:main fill-slot="main"> 6 6 <span tal:condition="isAnon"> 7 7 <h2>Welcome to the 8 8 … … 23 23 24 24 <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> 25 35 26 36 </metal:main> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r486 r523 7 7 ##parameters=REQUEST, cluster=None, cpsdocument_edit_and_view_button=None, action=None 8 8 ##title= 9 ##10 9 # $Id$ 11 10 """ … … 38 37 if context.portal_type == "StudentApplication": 39 38 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": 41 41 student.content_status_modify(workflow_action="apply_for_admission") 42 if doc.passport is None: 42 43 is_valid, ds = doc.validate(request=REQUEST, 43 44 proxy=context, … … 45 46 layout_mode = 'edit', 46 47 use_session=True) 47 48 48 49 action = '/application_form' 49 50 50 if is_valid: 51 51 comments = REQUEST.get('comments') -
WAeUP_SRP/trunk/skins/waeup_student/widget_scratch_card_pin_render.pt
r490 r523 4 4 id_n string:${id}_n; 5 5 prefix options/prefix; 6 value options/datastructure/?id;7 6 batch options/datastructure/?id_b; 8 7 nr options/datastructure/?id_n; 9 8 "> 10 9 <tal:block condition="python: mode == 'view'"> 11 <span tal:replace=" value" />10 <span tal:replace="prefix" />-<span tal:replace="batch" />-<span tal:replace="nr" /> 12 11 </tal:block> 13 12 <tal:block define="name here/getHtmlWidgetId;"
Note: See TracChangeset for help on using the changeset viewer.