Changeset 622 for WAeUP_SRP/trunk
- Timestamp:
- 8 Oct 2006, 14:46:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 7 added
- 1 deleted
- 10 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r575 r622 78 78 ###) 79 79 80 class Acco mmodation(CPSDocument): ###(80 class AccoHall(CPSDocument): ###( 81 81 """ 82 WAeUP Acco mmodationcontaining Departments82 WAeUP AccoHall containing Departments 83 83 """ 84 meta_type = 'Acco mmodation'84 meta_type = 'AccoHall' 85 85 portal_type = meta_type 86 86 security = ClassSecurityInfo() … … 97 97 ###) 98 98 99 InitializeClass(Acco mmodation)99 InitializeClass(AccoHall) 100 100 101 def addAcco mmodation(container, id, REQUEST=None, **kw):102 """Add a Acco mmodation."""103 ob = Acco mmodation(id, **kw)101 def addAccoHall(container, id, REQUEST=None, **kw): 102 """Add a AccoHall.""" 103 ob = AccoHall(id, **kw) 104 104 return CPSBase_adder(container, ob, REQUEST=REQUEST) 105 105 ###) -
WAeUP_SRP/trunk/__init__.py
r580 r622 36 36 ("Accommodation", 37 37 ("AccoFolder", 38 "Acco mmodation",38 "AccoHall", 39 39 ) 40 40 ), -
WAeUP_SRP/trunk/profiles/default/layouts.xml
r601 r622 2 2 <object name="portal_layouts" meta_type="CPS Layouts Tool"> 3 3 <property name="title"></property> 4 <object name="acco mmodation" meta_type="CPS Layout"/>4 <object name="acco_hall" meta_type="CPS Layout"/> 5 5 <object name="academics_search" meta_type="CPS Layout"/> 6 6 <object name="certificate" meta_type="CPS Layout"/> -
WAeUP_SRP/trunk/profiles/default/layouts/acco_hall.xml
r610 r622 47 47 <property name="vocabulary">waeup_bed_letters</property> 48 48 </widget> 49 <widget name="beds_per_room" meta_type=" Select Widget">49 <widget name="beds_per_room" meta_type="Int Widget"> 50 50 <property name="fields"> 51 51 <element value="beds_per_room"/> 52 52 </property> 53 <property name="is_required">True</property> 54 <property name="label">Beds per Room</property> 55 <property name="label_edit">Beds per Room</property> 56 <property name="vocabulary">range10</property> 57 </widget> 58 <widget name="heading" meta_type="String Widget"> 59 <property name="fields"> 60 <element value="heading"/> 61 </property> 53 <property name="is_required">True</property> 54 <property name="label">Beds per Room</property> 55 <property name="label_edit">Beds per Room</property> 56 <property name="is_limited">True</property> 57 <property name="min_value">1</property> 58 <property name="max_value">10</property> 59 </widget> 60 <widget name="Title" meta_type="String Widget"> 61 <property name="title">Title</property> 62 <property name="fields"> 63 <element value="Title"/> 64 </property> 62 65 <property name="is_required">True</property> 63 66 <property name="label">Hall Name</property> … … 66 69 <property name="size_max">40</property> 67 70 </widget> 68 <widget name="nr_of_blocks" meta_type="Select Widget"> 69 <property name="fields"> 70 <element value="nr_of_blocks"/> 71 </property> 72 <property name="is_required">True</property> 73 <property name="label">Nr of Blocks</property> 74 <property name="label_edit">Nr of Blocks</property> 75 <property name="vocabulary">range10</property> 76 </widget> 77 <widget name="nr_of_floors" meta_type="Select Widget"> 71 <widget name="nr_of_blocks" meta_type="Int Widget"> 72 <property name="fields"> 73 <element value="nr_of_blocks"/> 74 </property> 75 <property name="is_required">True</property> 76 <property name="label">Nr of Blocks</property> 77 <property name="label_edit">Nr of Blocks</property> 78 <property name="is_limited">True</property> 79 <property name="min_value">1</property> 80 <property name="max_value">10</property> 81 </widget> 82 <widget name="nr_of_floors" meta_type="Int Widget"> 78 83 <property name="fields"> 79 84 <element value="nr_of_floors"/> … … 82 87 <property name="label">Nr of Floors </property> 83 88 <property name="label_edit">Nr of Floors</property> 84 <property name="vocabulary">range5</property> 89 <property name="is_limited">True</property> 90 <property name="min_value">1</property> 91 <property name="max_value">5</property> 85 92 </widget> 86 93 <widget name="reserved_rooms" meta_type="String Widget"> … … 97 104 <property name="hidden_readonly_layout_modes"/> 98 105 </widget> 99 <widget name="rooms_per_floor" meta_type=" Select Widget">106 <widget name="rooms_per_floor" meta_type="Int Widget"> 100 107 <property name="fields"> 101 108 <element value="rooms_per_floor"/> … … 104 111 <property name="label">Rooms per Floor</property> 105 112 <property name="label_edit">Rooms per Floor</property> 106 <property name="vocabulary">range50</property> 113 <property name="is_limited">True</property> 114 <property name="min_value">1</property> 115 <property name="max_value">50</property> 107 116 </widget> 108 117 <widget name="text" meta_type="Text Widget"> … … 129 138 <table> 130 139 <row> 131 <cell name=" heading"/>140 <cell name="Title"/> 132 141 </row> 133 142 <row> -
WAeUP_SRP/trunk/profiles/default/schemas.xml
r600 r622 4 4 <object name="academics" meta_type="CPS Schema"/> 5 5 <object name="academics_search" meta_type="CPS Schema"/> 6 <object name="acco mmodation" meta_type="CPS Schema"/>6 <object name="acco_hall" meta_type="CPS Schema"/> 7 7 <object name="certificate" meta_type="CPS Schema"/> 8 8 <object name="certificate_course" meta_type="CPS Schema"/> -
WAeUP_SRP/trunk/profiles/default/schemas/acco_hall.xml
r610 r622 1 1 <?xml version="1.0"?> 2 2 <object name="accommodation" meta_type="CPS Schema"> 3 <field name="beds_for_final" meta_type="CPS String List Field"/> 4 <field name="beds_for_fresh" meta_type="CPS String List Field"/> 5 <field name="beds_for_returning" meta_type="CPS String List Field"/> 6 <field name="beds_per_room" meta_type="CPS Int Field"/> 7 <field name="heading" meta_type="CPS String Field"> 8 <property name="is_searchabletext">True</property> 9 </field> 10 <field name="nr_of_blocks" meta_type="CPS Int Field"/> 11 <field name="nr_of_floors" meta_type="CPS Int Field"/> 12 <field name="reserved_rooms" meta_type="CPS String List Field"/> 13 <field name="rooms_per_floor" meta_type="CPS Int Field"/> 3 <field name="beds_for_final" meta_type="CPS String List Field"/> 4 <field name="beds_for_fresh" meta_type="CPS String List Field"/> 5 <field name="beds_for_returning" meta_type="CPS String List Field"/> 6 <field name="beds_per_room" meta_type="CPS Int Field"> 7 <property name="default_expr">python:6</property> 8 </field> 9 <field name="nr_of_blocks" meta_type="CPS Int Field"> 10 <property name="default_expr">python:3</property> 11 </field> 12 <field name="nr_of_floors" meta_type="CPS Int Field"> 13 <property name="default_expr">python:3</property> 14 </field> 15 <field name="reserved_rooms" meta_type="CPS String List Field"> 16 <property name="default_expr"></property> 17 </field> 18 <field name="rooms_per_floor" meta_type="CPS Int Field"> 19 <property name="default_expr">python:20</property> 20 </field> 14 21 <field name="study_courses" meta_type="CPS String List Field"/> 15 22 <field name="text" meta_type="CPS String Field"> 16 <property name="is_searchabletext"> True</property>23 <property name="is_searchabletext">False</property> 17 24 </field> 18 25 <field name="which_sex" meta_type="CPS Boolean Field"> 19 <property name="is_searchabletext">True</property>20 26 </field> 21 27 </object> -
WAeUP_SRP/trunk/profiles/default/skins.xml
r502 r622 9 9 <object name="waeup_academics" meta_type="Filesystem Directory View" 10 10 directory="WAeUP_SRP/skins/waeup_academics"/> 11 <object name="waeup_accommodation" meta_type="Filesystem Directory View" 12 directory="WAeUP_SRP/skins/waeup_accommodation"/> 11 13 <object name="waeup_pins" meta_type="Filesystem Directory View" 12 14 directory="WAeUP_SRP/skins/waeup_pins"/> … … 19 21 <layer name="waeup_student" insert-after="waeup_custom"/> 20 22 <layer name="waeup_academics" insert-after="waeup_custom"/> 23 <layer name="waeup_accommodation" insert-after="waeup_custom"/> 21 24 </skin-path> 22 25 <skin-path name="CPSSkins-macroless"> … … 26 29 <layer name="waeup_student" insert-after="waeup_custom"/> 27 30 <layer name="waeup_academics" insert-after="waeup_custom"/> 31 <layer name="waeup_accommodation" insert-after="waeup_custom"/> 28 32 </skin-path> 29 33 </object> -
WAeUP_SRP/trunk/profiles/default/types.xml
r486 r622 4 4 <object name="AcademicsFolder" meta_type="CPS Flexible Type Information"/> 5 5 <object name="AccoFolder" meta_type="CPS Flexible Type Information"/> 6 <object name="Acco mmodation" meta_type="CPS Flexible Type Information"/>6 <object name="AccoHall" meta_type="CPS Flexible Type Information"/> 7 7 <object name="CertificatesFolder" meta_type="CPS Flexible Type Information"/> 8 8 <object name="Certificate" meta_type="CPS Flexible Type Information"/> -
WAeUP_SRP/trunk/profiles/default/types/AccoFolder.xml
r486 r622 29 29 <property name="storage_methods"/> 30 30 <property name="cps_is_portlet">False</property> 31 <alias from="(Default)" to=" temporary_view_all"/>32 <alias from="view" to=" temporary_view_all"/>31 <alias from="(Default)" to="accommodation_index"/> 32 <alias from="view" to="accommodation_index"/> 33 33 <action title="View" action_id="view" category="object" condition_expr="" 34 34 url_expr="string:${object_url}/academics_contents" visible="True"> … … 37 37 <action title="Add Accommodation Hall" action_id="new_entry" 38 38 category="object" condition_expr="" 39 url_expr="string:${object_url}/content_create?type_name=Accommodation" 40 visible="True"> 41 <permission value="Modify portal content"/> 42 </action> 43 <action title="action_metadata" action_id="metadata" category="object" 44 condition_expr="" url_expr="string:${object_url}/cpsdocument_metadata" 45 visible="True"> 46 <permission value="Modify portal content"/> 47 </action> 48 <action title="action_edit" action_id="edit" category="object" 49 condition_expr="" url_expr="string:${object_url}/cpsdocument_edit_form" 39 url_expr="string:${object_url}/content_create?type_name=AccoHall" 50 40 visible="True"> 51 41 <permission value="Modify portal content"/> -
WAeUP_SRP/trunk/profiles/default/types/AccoHall.xml
r621 r622 1 1 <?xml version="1.0"?> 2 <object name="Acco mmodation" meta_type="CPS Flexible Type Information"2 <object name="AccoHall" meta_type="CPS Flexible Type Information" 3 3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"> 4 <property name="title">WAeUP Acco mmodation</property>4 <property name="title">WAeUP AccoHall</property> 5 5 <property name="description"></property> 6 6 <property name="content_icon">student.gif</property> 7 <property name="content_meta_type">Acco mmodation</property>7 <property name="content_meta_type">AccoHall</property> 8 8 <property name="product">WAeUP_SRP</property> 9 <property name="factory">addAcco mmodation</property>9 <property name="factory">addAccoHall</property> 10 10 <property name="immediate_view">academics_contents</property> 11 11 <property name="global_allow">True</property> … … 19 19 <element value="metadata"/> 20 20 <element value="common"/> 21 <element value="acco mmodation"/>21 <element value="acco_hall"/> 22 22 </property> 23 23 <property name="layouts"> 24 <element value="acco mmodation"/>24 <element value="acco_hall"/> 25 25 </property> 26 26 <property name="layout_clusters"> … … 30 30 <property name="storage_methods"/> 31 31 <property name="cps_is_portlet">False</property> 32 <alias from="(Default)" to="ac ademics_contents"/>33 <alias from="view" to="ac ademics_contents"/>32 <alias from="(Default)" to="accommodation_index"/> 33 <alias from="view" to="accommodation_index"/> 34 34 <action title="View" action_id="view" category="object" condition_expr="" 35 url_expr="string:${object_url}/ac ademics_contents" visible="True">35 url_expr="string:${object_url}/accommodation_index" visible="True"> 36 36 <permission value="View"/> 37 37 </action> … … 41 41 <permission value="Modify portal content"/> 42 42 </action> 43 <action title="action_metadata" action_id="metadata" category="object"44 condition_expr="" url_expr="string:${object_url}/cpsdocument_metadata"45 visible="True">46 <permission value="Modify portal content"/>47 </action>48 <action title="Delegate" action_id="localroles" category="object"49 condition_expr="" url_expr="string:${object_url}/folder_localrole_form"50 visible="False">51 <permission value="Modify portal content"/>52 </action>53 43 </object> -
WAeUP_SRP/trunk/profiles/default/workflows.xml
r533 r622 25 25 <bound-workflow workflow_id="section_folder_wf"/> 26 26 </type> 27 <type type_id="Acco mmodation">27 <type type_id="AccoHall"> 28 28 <bound-workflow workflow_id="waeup_accommodation_wf"/> 29 29 </type> -
WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
r611 r622 29 29 'search_string': '' 30 30 } 31 choosen_ids = request.get('ids',[]) 31 32 32 33 rend,psm,ds = lt.renderLayout(layout_id= 'academics_search', … … 44 45 objects = items, 45 46 is_manager = is_manager, 47 choosen_ids = choosen_ids, 46 48 ) 47 what = ds.get('search_mode')48 state = ds.get('review_state')49 term = ds.get('search_string')50 if not term and not with_review:51 return context.academics_search_view(rendered = rend,52 psm = "You must specify a search string",53 #psm = "%s, %s" % (psm,ds),54 objects = items,55 is_manager = is_manager,56 )57 with_review = state != "all"58 49 what = ds.get('search_mode') 59 50 state = ds.get('review_state') … … 73 64 students = items, 74 65 is_manager = is_manager, 66 choosen_ids = choosen_ids, 75 67 ) 76 68 with_review = state != "all" … … 106 98 objects = objects, 107 99 is_manager = is_manager, 108 choosen_ids = []100 choosen_ids = choosen_ids, 109 101 ) -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r608 r622 73 73 onlyreview = with_review and not term 74 74 if onlyreview: 75 res = catalog(portal_type= 'Student',75 res = catalog(portal_type=portal_type_query, 76 76 review_state=state) 77 77 elif what == "student_id": … … 95 95 if with_review: 96 96 try: 97 res = catalog(portal_type= 'Student',SearchableText=st,97 res = catalog(portal_type=pt,SearchableText=st, 98 98 review_state=state) 99 99 except:
Note: See TracChangeset for help on using the changeset viewer.