Changeset 3824
- Timestamp:
- 19 Dec 2008, 15:44:45 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 6 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/CHANGES.txt
r3815 r3824 130 130 ----------------- 131 131 - implement NAU Awka 132 133 1.26 (2008-12-19) 134 ----------------- 135 - implement configuration object (step 1) -
WAeUP_SRP/trunk/Documents.py
r2013 r3824 79 79 ob = WAeUPDocument(id, **kw) 80 80 return CPSBase_adder(container, ob, REQUEST=REQUEST) 81 82 83 81 84 82 85 ###) -
WAeUP_SRP/trunk/University.py
r2691 r3824 28 28 ob = University(id, **kw) 29 29 return CPSBase_adder(container, ob, REQUEST=REQUEST) 30 31 32 class WAeUPConfiguration(CPSDocument): ###( 33 """ 34 WAeUP Configuration 35 """ 36 meta_type = 'WAeUP Configuration' 37 portal_type = meta_type 38 security = ClassSecurityInfo() 30 39 40 def __init__(self, id, **kw): 41 CPSDocument.__init__(self, id, **kw) 42 43 InitializeClass(WAeUPConfiguration) 44 45 def addWAeUPConfiguration(container, id, REQUEST=None, **kw): 46 """Add a WAeUP Configuration.""" 47 ob = WAeUPConfiguration(id, **kw) 48 return CPSBase_adder(container, ob, REQUEST=REQUEST) 49 -
WAeUP_SRP/trunk/WAeUPTool.py
r3817 r3824 1882 1882 open(filename,"wb").write(str(image.data)) 1883 1883 ###) 1884 1885 1886 security.declarePublic('getConfigParams') 1887 def getConfigParams(self,conf_id="configuration"): 1888 conf = getattr(self.portal_url.getPortalObject().campus,conf_id) 1889 conf_obj = conf.getContent() 1890 stool = getToolByName(self, 'portal_schemas') 1891 schema = stool._getOb('configuration') 1892 d = {} 1893 for key in schema.keys(): 1894 d[key] = getattr(conf_obj,key,None) 1895 return d 1896 1884 1897 1885 1898 InitializeClass(WAeUPTool) -
WAeUP_SRP/trunk/__init__.py
r3815 r3824 22 22 23 23 waeup_types = ( 24 ("University",('University',)), 24 ("University", 25 ('University', 26 'WAeUPConfiguration', 27 ) 28 ), 25 29 ("Academics", 26 30 ("AcademicsFolder", -
WAeUP_SRP/trunk/profiles/default/layouts.xml
r3792 r3824 116 116 <object name="waeup_common" meta_type="CPS Layout"/> 117 117 <object name="student_gown" meta_type="CPS Layout"/> 118 <object name="configuration" meta_type="CPS Layout"/> 118 119 119 120 </object> -
WAeUP_SRP/trunk/profiles/default/layouts/student_firsttime_login.xml
r3813 r3824 51 51 <property name="hidden_layout_modes"/> 52 52 <property name="hidden_readonly_layout_modes"/> 53 <property name="display_width">1 4</property>54 <property name="size_max">1 4</property>53 <property name="display_width">18</property> 54 <property name="size_max">18</property> 55 55 <property name="matric_no_catalog">students_catalog</property> 56 56 <property name="results_catalog"></property> -
WAeUP_SRP/trunk/profiles/default/roots/campus.xml
r3689 r3824 8 8 <object name="uploads" portal_type="UploadsFolder" /> 9 9 <object name="documents" portal_type="DocumentsFolder" /> 10 <object name="configuration" portal_type="WAeUPConfiguration" /> 10 11 </object> -
WAeUP_SRP/trunk/profiles/default/roots/campus/documents.xml
r3689 r3824 1 1 <?xml version="1.0"?> 2 <object name=" students">2 <object name="documents"> 3 3 <property name="Title">Documents</property> 4 4 </object> -
WAeUP_SRP/trunk/profiles/default/schemas.xml
r3689 r3824 88 88 <object name="upload" meta_type="CPS Schema"/> 89 89 <object name="waeup_common" meta_type="CPS Schema"/> 90 <object name="configuration" meta_type="CPS Schema"/> 90 91 91 92 -
WAeUP_SRP/trunk/profiles/default/types.xml
r3689 r3824 139 139 <object name="Upload" meta_type="CPS Flexible Type Information"/> 140 140 <object name="StudentPastoralReport" meta_type="CPS Flexible Type Information"/> 141 <object name="WAeUPConfiguration" meta_type="CPS Flexible Type Information"/> 141 142 142 143 -
WAeUP_SRP/trunk/profiles/default/types/University.xml
r3689 r3824 16 16 <element value="AccoFolder"/> 17 17 <element value="StudentsFolder"/> 18 <element value="WAeUPConfiguration"/> 18 19 </property> 19 20 <property name="allow_discussion">False</property> -
WAeUP_SRP/trunk/profiles/default/workflows.xml
r3689 r3824 136 136 <bound-workflow workflow_id="waeup_document_wf"/> 137 137 </type> 138 <type type_id="WAeUPConfiguration"> 139 <bound-workflow workflow_id="waeup_section_wf"/> 140 </type> 138 141 <type type_id="StudentPastoralReport"> 139 142 <bound-workflow workflow_id="waeup_student_subobject_wf"/> -
WAeUP_SRP/trunk/skins/cps_custom/cpsdocument_create.py
r3157 r3824 25 25 from Products.CPSDocument.utils import getFormUidUrlArg 26 26 27 request = REQUEST 28 29 try: 30 from Products.zdb import set_trace 31 except: 32 def set_trace(): 33 pass 34 27 35 ti = getToolByName(context, 'portal_types').getTypeInfo(type_name) 28 36 29 37 while True: 30 38 if not context.isSectionOfficer(): 31 psm = "illegal access"32 break 39 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 40 33 41 is_valid, ds = ti.validateObject(None, layout_mode='create', 34 42 request=REQUEST, context=context, -
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py
r3682 r3824 11 11 request = context.REQUEST 12 12 13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument","StudentPastoralReport" ):13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument","StudentPastoralReport","WAeUPConfiguration"): 14 14 id = datamodel.get('code') 15 15 else: -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r3794 r3824 57 57 58 58 deaddates = {} 59 60 #config_params = context.getConfigParams() 61 #deaddates['pume'] = config_params['dead_pume'] 62 59 63 deaddates['pume'] = DateTime.DateTime('2008/08/19 07:00') 60 64 deaddates['pde'] = DateTime.DateTime('2008/10/02 23:59')
Note: See TracChangeset for help on using the changeset viewer.