Changeset 364 for WAeUP_SRP/trunk


Ignore:
Timestamp:
11 Aug 2006, 05:51:59 (18 years ago)
Author:
joachim
Message:

more us work

Location:
WAeUP_SRP/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r361 r364  
    4040    security = ClassSecurityInfo()
    4141
    42 ##    security.declareProtected(View,"Title")
    43 ##    def Title(self):
    44 ##        """compose title"""
    45 ##        return "AcademicsFolder of %s" % (self.title)
     42    security.declareProtected(View,"Title")
     43    def Title(self):
     44        """compose title"""
     45        return "Academics Section"
    4646
    4747    security.declareProtected(ModifyPortalContent,"loadFacultiesFromCSV")###(
  • WAeUP_SRP/trunk/Students.py

    r362 r364  
    104104                d['entry_session'] = "200%s" % (cs - cl)
    105105                sc.getContent().edit(mapping=d)
     106                #
     107                # Level
     108                #
     109                level = student.get('StudentLevel')
     110                l = getattr(sc,level,None)
     111                if l is None:
     112                    #self.log('Creating Department %(DeptCode)s = %(Description)s' % dep)
     113                    logger.info('Creating Level %(StudentLevel)s for %(fullname)s' % student)
     114                    sc.invokeFactory('StudyLevel', level)
     115                    l = getattr(sc, level)
     116                    certificate = certs[certcode]
     117                    cert_level = getattr(certificate,level,None)
     118                    if cert_level is None:
     119                        logger.info('Level %(level)s not in %(certcode)s' % vars())
     120                    l.getContent().edit(mapping={'Title': "Level %s" % level})
     121                    l.invokeFactory('Semester','first')
     122                    l.invokeFactory('Semester','second')
     123                    first_s = getattr(l,'first')
     124                    first_s.getContent().edit(mapping={'Title': 'First Semester'})
     125                    second_s = getattr(l,'second')
     126                    second_s.getContent().edit(mapping={'Title': 'Second Semester'})
    106127            else:
    107128                em = 'Faculty with ID %(MatricNo)s %(fullname)s already exists' % student
     
    113134        return self.students.folder_contents()
    114135    ###)
     136   
     137    security.declareProtected(View,"Title")
     138    def Title(self):
     139        """compose title"""
     140        return "Students Section"
    115141
    116142InitializeClass(StudentsFolder)
     
    223249        """compose title"""
    224250        content = self.getContent()
    225         return "Personal Data for %s %s" % (content.firstname,content.lastname)
     251        #return "Personal Data for %s %s" % (content.firstname,content.lastname)
     252        return "Personal Data"
    226253
    227254
     
    243270    security = ClassSecurityInfo()
    244271
    245 ##    security.declareProtected(View,"Title")
    246 ##    def Title(self):
    247 ##        """compose title"""
    248 ##        content = self.getContent()
    249 ##        return "StudyCourse Data for %s %s" % (content.firstname,content.lastname)
     272    security.declareProtected(View,"Title")
     273    def Title(self):
     274        """compose title"""
     275        content = self.getContent()
     276        return "Course Major"
    250277
    251278
  • WAeUP_SRP/trunk/profiles/default/actionicons.xml

    r354 r364  
    178178              title="Import CertCourses" priority="4"
    179179              icon_expr="actionicon_submit.png"/>
     180<action-icon category="import"
     181              action_id="import_fulltime_students"
     182              title="Import Fulltime Students" priority="1"
     183              icon_expr="actionicon_submit.png"/>
    180184</action-icons>
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r354 r364  
    107107  <action title="Students" action_id="view_students" category="navigation"
    108108     condition_expr="" url_expr="string:${portal_url}/campus/students"
    109      visible="False">
     109     visible="True">
    110110   <permission>View</permission>
    111111  </action>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r308 r364  
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
     19  <element value="metadata"/>
     20  <element value="common"/>
    1921  <element value="student_personal"/>
    2022 </property>
    2123 <property name="layouts">
     24  <element value="common"/>
    2225  <element value="student_personal"/>
    2326 </property>
    24  <property name="layout_clusters"/>
     27 <property name="layout_clusters">
     28  <element value="metadata:metadata"/>
     29 </property>
    2530 <property name="flexible_layouts"/>
    2631 <property name="storage_methods"/>
    2732 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="temporary_view_all"/>
    29  <alias from="view" to="temporary_view_all"/>
    30  <action title="Standard View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/temporary_view_all"
    32     visible="True">
     33 <alias from="(Default)" to="cpsdocument_view"/>
     34 <alias from="view" to="cpsdocument_view"/>
     35 <action title="View" action_id="view" category="object" condition_expr=""
     36    url_expr="string:${object_url}/cpsdocument_view" visible="True">
    3337  <permission value="View"/>
    3438 </action>
     
    3943 </action>
    4044 <action title="action_metadata" action_id="metadata" category="object"
    41     condition_expr="python:member and 'Manager' in member.getRoles()"
    42     url_expr="string:${object_url}/cpsdocument_metadata" visible="True">
    43   <permission value="University Manage"/>
    44  </action>
     45    condition_expr="" url_expr="string:${object_url}/cpsdocument_metadata"
     46    visible="True"/>
    4547</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r362 r364  
    3232 <property name="storage_methods"/>
    3333 <property name="cps_is_portlet">False</property>
    34  <alias from="(Default)" to="temporary_view_all"/>
    35  <alias from="view" to="temporary_view_all"/>
    36  <action title="Standard View" action_id="view" category="object"
    37     condition_expr="" url_expr="string:${object_url}/temporary_view_all"
    38     visible="True">
     34 <alias from="(Default)" to="academics_contents"/>
     35 <alias from="view" to="academics_contents"/>
     36 <action title="View" action_id="view" category="object" condition_expr=""
     37    url_expr="string:${object_url}/academics_contents" visible="True">
    3938  <permission value="View"/>
    4039 </action>
     
    6766    condition_expr="" url_expr="string:${object/absolute_url}/folder_contents"
    6867    visible="False"/>
    69  <action title="import fulltime students" action_id="import_fulltime"
     68 <action title="Import Fulltime Students" action_id="import_fulltime_students"
    7069    category="import" condition_expr=""
    7170    url_expr="string:${object_url}/loadFullTimeStudentsFromCSV"
Note: See TracChangeset for help on using the changeset viewer.