Changeset 309 for WAeUP_SRP/trunk
- Timestamp:
- 15 Jul 2006, 07:40:53 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 added
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r296 r309 353 353 no_import.write('"%(CosCode)s","%(CertCode)s","%(Session)s","%(Level)s","%(Core)s","%(Elective)s","%(Mandatory)s","%(AdmStatus)s","%(Dept)s","%(Semester)s"\n' % cert_course) 354 354 continue 355 certificate = cert ificate[-1].getObject()355 certificate = certs[code] 356 356 certificate_code = certificate.getId() 357 357 if course_code not in c_ids: … … 567 567 object = Department(id, **kw) 568 568 id = object.getId() 569 container._setObject(id, object) 570 dep = getattr(container,id).getContent()571 dep.invokeFactory('CoursesFolder','Courses')572 o = getattr(dep,'Courses')573 dict = {'Title': 'Courses'}574 o.getContent().edit(mapping=dict)575 dep.invokeFactory('CertificatesFolder','Certificates')576 o = getattr(dep,'Certificates')577 dict = {'Title': 'Certificates'}578 o.getContent().edit(mapping=dict)569 container._setObject(id, object) 570 ## dep = getattr(container,id).getEditableContent() #getContent() 571 ## dep.invokeFactory('CoursesFolder','Courses') 572 ## o = getattr(dep,'Courses') 573 ## dict = {'Title': 'Courses'} 574 ## o.getContent().edit(mapping=dict) 575 ## dep.invokeFactory('CertificatesFolder','Certificates') 576 ## o = getattr(dep,'Certificates') 577 ## dict = {'Title': 'Certificates'} 578 ## o.geetContent().edit(mapping=dict) 579 579 if REQUEST is not None: 580 580 url = container.absolute_url() 581 581 REQUEST.RESPONSE.redirect('%s/manage_main' % url) 582 582 583 ###) 583 584 -
WAeUP_SRP/trunk/profiles/default/types/CertificatesFolder.xml
r308 r309 24 24 <property name="storage_methods"/> 25 25 <property name="cps_is_portlet">False</property> 26 <alias from="(Default)" to=" (Default)"/>27 <alias from="view" to=" (Default)"/>26 <alias from="(Default)" to="academics_view"/> 27 <alias from="view" to="academics_view"/> 28 28 <action title="View" action_id="view" category="object" condition_expr="" 29 29 url_expr="string:${object_url}/academics_contents" visible="True"> 30 30 <permission value="View"/> 31 31 </action> 32 <action title="Add Certificate" action_id="add_certificate" category="object" 33 condition_expr="python:True or member and 'UniversityManager'in member.getRoles()" 34 url_expr="string:${object/absolute_url}/create_certificate" 35 visible="True"/> 36 <action title="action_folder_contents" action_id="contents" category="object" 37 condition_expr="" url_expr="string:${object/absolute_url}/folder_contents" 38 visible="False"/> 39 <action title="delegate" action_id="localroles" category="object" 40 condition_expr="" url_expr="string:${object_url}/folder_localrole_form" 41 visible="True"/> 32 42 <action title="Add Certificate" action_id="new_entry" category="object" 33 43 condition_expr="" -
WAeUP_SRP/trunk/profiles/default/types/CoursesFolder.xml
r308 r309 24 24 <property name="storage_methods"/> 25 25 <property name="cps_is_portlet">False</property> 26 <alias from="(Default)" to=" (Default)"/>27 <alias from="view" to=" (Default)"/>26 <alias from="(Default)" to="academics_contents"/> 27 <alias from="view" to="academics_contents"/> 28 28 <action title="View" action_id="view" category="object" condition_expr="" 29 29 url_expr="string:${object_url}/academics_contents" visible="True"> 30 30 <permission value="View archived revisions"/> 31 31 </action> 32 <action title="Add Course" action_id="add_course" category="object" 33 condition_expr="python:True or member and 'UniversityManager'in member.getRoles()" 34 url_expr="string:${object/absolute_url}/create_course" visible="True"/> 35 <action title="action_folder_contents" action_id="contents" category="object" 36 condition_expr="" url_expr="string:${object/absolute_url}/folder_contents" 37 visible="False"/> 38 <action title="delegate" action_id="localroles" category="object" 39 condition_expr="" url_expr="string:${object_url}/folder_localrole_form" 40 visible="False"/> 32 41 <action title="Add Course" action_id="new_entry" category="object" 33 42 condition_expr="" -
WAeUP_SRP/trunk/profiles/default/workflows.xml
r300 r309 27 27 <bound-workflow workflow_id="workspace_calendar_wf"/> 28 28 </type> 29 <type type_id="CertificateFolder"> 30 <bound-workflow workflow_id="waeup_base_wf"/> 31 </type> 29 32 <type type_id="Certificate"> 30 33 <bound-workflow workflow_id="waeup_base_wf"/> 31 34 </type> 32 35 <type type_id="CertificateCourse"> 36 <bound-workflow workflow_id="waeup_base_wf"/> 37 </type> 38 <type type_id="CourseFolder"> 33 39 <bound-workflow workflow_id="waeup_base_wf"/> 34 40 </type> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt
r301 r309 96 96 <strong tal:content="info/long_title|info/title_or_id">ID</strong></a></td> 97 97 <td align="right"> 98 <a href="dummy" tal:attributes="href string:${item/absolute_url}/ faculty_edit_form">[edit]</a></td>98 <a href="dummy" tal:attributes="href string:${item/absolute_url}/academics_edit_form">[edit]</a></td> 99 99 <td align="right" tal:condition="size_in_tabs"> 100 100 <span tal:condition="info/size|nothing" tal:content="info/size"> </span></td> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt
r296 r309 10 10 11 11 <metal:header metal:fill-slot="header"> 12 <h 1 tal:content="here/title_or_id">12 <h3 tal:content="here/LongTitle|here/title_or_id"> 13 13 Page Title 14 </h 1>14 </h3> 15 15 <div tal:condition="nothing" id="bylineFolder" 16 16 class="ddefault"> -
WAeUP_SRP/trunk/skins/waeup_default/getCreatableItems.py
r290 r309 11 11 utool = context.portal_url 12 12 base_url = utool.getBaseUrl() 13 #return context.getPortalTypeName() 13 14 14 ##if context.getPortalTypeName() == 'Portal':15 ##return items15 if context.getPortalTypeName() == 'Portal': 16 return items 16 17 17 18 content_types = context.getSortedContentTypes(allowed=1)
Note: See TracChangeset for help on using the changeset viewer.