Changeset 458 for WAeUP_SRP


Ignore:
Timestamp:
31 Aug 2006, 17:49:48 (18 years ago)
Author:
joachim
Message:

moved StudyLevel? class from Academics.py back to Students.py,
cause this Change broke existing StudyLevel? Objects.

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r454 r458  
    467467    def Title(self):
    468468        """compose title"""
    469         return "Level %s" % self.aq_parent.getId()
     469        try:
     470            return "Level %s" % self.aq_parent.getId()
     471        except:
     472            return "no Title for %s" % self.getId()
    470473   
    471474
  • WAeUP_SRP/trunk/Students.py

    r457 r458  
    430430###)
    431431
     432class StudyLevel(CPSDocument): ###(
     433    """
     434    WAeUP StudyLevel containing the courses and students
     435    """
     436    meta_type = 'StudyLevel'
     437    portal_type = meta_type
     438    security = ClassSecurityInfo()
     439
     440    security.declareProtected(View,"Title")
     441    def Title(self):
     442        """compose title"""
     443        return "Level %s" % self.aq_parent.getId()
     444   
     445
     446InitializeClass(StudyLevel)
     447
     448def addStudyLevel(container, id, REQUEST=None, **kw):
     449    """Add a StudyLevel."""
     450    ob = StudyLevel(id, **kw)
     451    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     452
     453###)
     454
    432455class StudentStudyLevel(CPSDocument): ###(
    433456    """
  • WAeUP_SRP/trunk/__init__.py

    r454 r458  
    2828        "Department",
    2929        "Course",
    30         "StudyLevel",
    3130        "CertificateCourse",
    3231        )
     
    4746         "ScratchCardBatch",
    4847         "ScratchCardBatchesFolder",
     48         "StudyLevel",
    4949         "StudentStudyLevel",
    5050         "Semester",
  • WAeUP_SRP/trunk/profiles/default/layouts.xml

    r456 r458  
    22<object name="portal_layouts" meta_type="CPS Layouts Tool">
    33 <property name="title"></property>
    4  <object name="accobook" meta_type="CPS Layout"/>
    54 <object name="accommodation" meta_type="CPS Layout"/>
    65 <object name="accopay" meta_type="CPS Layout"/>
    7  <object name="admission_slip" meta_type="CPS Layout"/>
    8  <object name="admission_status" meta_type="CPS Layout"/>
    96 <object name="certificate" meta_type="CPS Layout"/>
    107 <object name="certificate_course" meta_type="CPS Layout"/>
  • WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py

    r454 r458  
    190190info['id'] = proxy.getId()
    191191try:
    192     info['title'] = proxy.Title()
     192    info['title'] = proxy.Title() #proxy.Title()
    193193except AttributeError:
    194194    raise AttributeError, 'invalid object: %s in %s' % (info['title_or_id'],
Note: See TracChangeset for help on using the changeset viewer.