Changeset 309 for WAeUP_SRP/trunk


Ignore:
Timestamp:
15 Jul 2006, 07:40:53 (18 years ago)
Author:
joachim
Message:

=types changed

Location:
WAeUP_SRP/trunk
Files:
4 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r296 r309  
    353353                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)
    354354                continue
    355             certificate = certificate[-1].getObject()
     355            certificate = certs[code]
    356356            certificate_code = certificate.getId()
    357357            if course_code not in c_ids:
     
    567567    object = Department(id, **kw)
    568568    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)
    579579    if REQUEST is not None:
    580580        url = container.absolute_url()
    581581        REQUEST.RESPONSE.redirect('%s/manage_main' % url)
     582
    582583###)
    583584
  • WAeUP_SRP/trunk/profiles/default/types/CertificatesFolder.xml

    r308 r309  
    2424 <property name="storage_methods"/>
    2525 <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"/>
    2828 <action title="View" action_id="view" category="object" condition_expr=""
    2929    url_expr="string:${object_url}/academics_contents" visible="True">
    3030  <permission value="View"/>
    3131 </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"/>
    3242 <action title="Add Certificate" action_id="new_entry" category="object"
    3343    condition_expr=""
  • WAeUP_SRP/trunk/profiles/default/types/CoursesFolder.xml

    r308 r309  
    2424 <property name="storage_methods"/>
    2525 <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"/>
    2828 <action title="View" action_id="view" category="object" condition_expr=""
    2929    url_expr="string:${object_url}/academics_contents" visible="True">
    3030  <permission value="View archived revisions"/>
    3131 </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"/>
    3241 <action title="Add Course" action_id="new_entry" category="object"
    3342    condition_expr=""
  • WAeUP_SRP/trunk/profiles/default/workflows.xml

    r300 r309  
    2727   <bound-workflow workflow_id="workspace_calendar_wf"/>
    2828  </type>
     29  <type type_id="CertificateFolder">
     30   <bound-workflow workflow_id="waeup_base_wf"/>
     31  </type>
    2932  <type type_id="Certificate">
    3033   <bound-workflow workflow_id="waeup_base_wf"/>
    3134  </type>
    3235  <type type_id="CertificateCourse">
     36   <bound-workflow workflow_id="waeup_base_wf"/>
     37  </type>
     38  <type type_id="CourseFolder">
    3339   <bound-workflow workflow_id="waeup_base_wf"/>
    3440  </type>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt

    r301 r309  
    9696    <strong tal:content="info/long_title|info/title_or_id">ID</strong></a></td>
    9797  <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>
    9999  <td align="right" tal:condition="size_in_tabs">
    100100    <span tal:condition="info/size|nothing" tal:content="info/size"> </span></td>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt

    r296 r309  
    1010
    1111<metal:header metal:fill-slot="header">
    12   <h1 tal:content="here/title_or_id">
     12  <h3 tal:content="here/LongTitle|here/title_or_id">
    1313    Page Title
    14   </h1>
     14  </h3>
    1515  <div tal:condition="nothing" id="bylineFolder"
    1616    class="ddefault">
  • WAeUP_SRP/trunk/skins/waeup_default/getCreatableItems.py

    r290 r309  
    1111utool = context.portal_url
    1212base_url = utool.getBaseUrl()
     13#return context.getPortalTypeName()
    1314
    14 ##if context.getPortalTypeName() == 'Portal':
    15 ##    return items
     15if context.getPortalTypeName() == 'Portal':
     16    return items
    1617
    1718content_types = context.getSortedContentTypes(allowed=1)
Note: See TracChangeset for help on using the changeset viewer.