Changeset 351 for WAeUP_SRP


Ignore:
Timestamp:
19 Jul 2006, 12:59:03 (18 years ago)
Author:
joachim
Message:

conditions raus in skins/waeup_custom/standard_error_message.pt
locale role SectionManager? now set for site

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r332 r351  
    3636##        return "AcademicsFolder of %s" % (self.title)
    3737
    38     security.declareProtected(View,"loadFacultiesFromCSV")###(
     38    security.declareProtected(ModifyPortalContent,"loadFacultiesFromCSV")###(
    3939    def loadFacultiesFromCSV(self):
    4040        """install Universityspecific Faculies from CSV values"""
  • WAeUP_SRP/trunk/exportimport.py

    r350 r351  
    5454    site = context.getSite()
    5555    pm = site.portal_membership
    56     if hasattr(site,'campus'):
    57         pm.setLocalGroupRoles(site.campus,['role:Authenticated',],'SectionReader')
     56    pm.setLocalGroupRoles(site,['role:Authenticated',],'SectionReader')
     57##    if hasattr(site,'campus'):
     58##        pm.setLocalGroupRoles(site.campus,['role:Authenticated',],'SectionReader')
    5859    #setupStructure(site,context)
    5960    #import pdb; pdb.set_trace()
  • WAeUP_SRP/trunk/skins/waeup_custom/standard_error_message.pt

    r349 r351  
    1212<metal:main fill-slot="main">
    1313
    14 <tal:haserror condition="python: 1 or error_type">
     14<tal:haserror condition="error_type">
    1515  <tal:NotFound condition="python:error_type == 'NotFound'">
    1616    <metal:block use-macro="here/error_lib_not_found/macros/not_found" />
     
    2121  </tal:default>
    2222
    23   <tal:debugging condition="python:1 or checkPerm('Manage portal', here)">
     23  <tal:debugging condition="python:checkPerm('Manage portal', here)">
    2424    <table width="100%" cellpadding="2" cellspacing="2">
    2525      <tr>
Note: See TracChangeset for help on using the changeset viewer.