Changeset 46


Ignore:
Timestamp:
11 Oct 2005, 15:59:11 (19 years ago)
Author:
joachim
Message:

mehr

Location:
waeup_product/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Extensions/install.py

    r45 r46  
    9090                        'action'    : 'string:${object/absolute_url}/create_jamb_form',
    9191                        'permission': (),
    92                         'condition' : 'python:here.portal_type != "Jamb" and len(object.contentItems()) == 0',
     92                        'condition' : 'python:not here.portal_type in ("Jamb","StudentsFolder") and len(object.contentItems()) == 0',
    9393                        'category'  : 'student',
    9494                        'visible'   : 1,
  • waeup_product/trunk/University.py

    r45 r46  
    2121    security = ClassSecurityInfo()
    2222   
     23    security.declarePublic('getStudentFolder')
     24    def getStudentsFolder(self):
     25        "return the studentsfolder"
     26##        data = self._data
     27##        print data.items()
     28        print self.contentItems()
     29        print self.contentValues()
     30        print self.contentIds()
     31        print self.listFolderContents()
     32        print self.getContent().objectItems()
     33       
    2334InitializeClass(University)
     35
    2436
    2537def addUniversity(container, id, REQUEST=None, **kw):
  • waeup_product/trunk/skins/waeup_default/portlet_goto_students.pt

    r34 r46  
    1313  </tal:block>
    1414<br />
    15 <a href="" i18n:translate=""
    16     tal:attributes="href string:${here/portal_url}/sections/students">Studentadministration</a>
     15<a tal:condition="python: 0" href="" i18n:translate=""
     16    tal:attributes="href string:${here/portal_url}/sections/unidemo/students">Studentadministration</a>
    1717</tal:block>
Note: See TracChangeset for help on using the changeset viewer.