Changeset 197 for waeup_product


Ignore:
Timestamp:
8 Feb 2006, 12:47:31 (19 years ago)
Author:
joachim
Message:

=creating the WAeUP Tool

Location:
waeup_product/trunk
Files:
4 added
6 edited

Legend:

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

    r195 r197  
    360360        self.finalize()
    361361
    362 
    363362    def verifyPortlets(self, portlets=(), object=None): ###(
    364363        """Verify the existence of given portet in the object's portlet
     
    417416        return returned
    418417    ###)
     418
    419419
    420420    def installCustomWorkflows(self): ###(
     
    536536    installer = WAeUPInstaller(self)
    537537    installer.install(self)
    538     dirtool = getattr(self,'portal_directories')
     538    #dirtool = getattr(self,'portal_directories')
     539    return installer.logResult()
    539540    groups = dirtool.groups
    540541    for delEntry in ('StudentManager',):
  • waeup_product/trunk/University.py

    r166 r197  
    1 from Globals import InitializeClass
     1from Globals import InitializeClass,HTMLFile
    22from AccessControl import ClassSecurityInfo
    33
     
    1313# The WAeUP BaseContainer
    1414#
    15 
    1615class University(CPSDocument):
    1716    """
     
    2827        return self.REQUEST
    2928   
    30    
    31 ##    security.declarePublic('backEnd')
    32 ##    def backEnd(self):
    33 ##        """ are we in back-end mode"""
    34 ##        mtool = self.portal_membership
    35 ##        member = mtool.getAuthenticatedMember()
    36 ##        roles = member.getRoles()
    37 ##        if 'UniversityManager' in roles or 'StudentManager' in roles:
    38 ##            return True
    39 ##        return False
    40 ##
    41 ##    security.declarePublic('frontEnd')
    42 ##    def frontEnd(self):
    43 ##        """ are we in front-end mode"""
    44 ##        mtool = self.portal_membership
    45 ##        member = mtool.getAuthenticatedMember()
    46 ##        roles = member.getRoles()
    47 ##        if 'Student' in roles:
    48 ##            return True
    49 ##        return False
    50    
    51        
    5229InitializeClass(University)
    5330
    54 
    5531def addUniversity(container, id, REQUEST=None, **kw):
    56     """Add a WAeUP"""
     32    """Add a University"""
    5733    ob = University(id, **kw)
    5834    return CPSBase_adder(container, ob, REQUEST=REQUEST)
  • waeup_product/trunk/__init__.py

    r179 r197  
     1from Products.CMFCore.utils import ContentInit, ToolInit
    12from Products.CMFCore.DirectoryView import registerDirectory
    23from Products.CMFCore import utils as cmfutils
     
    1112import Widgets
    1213import WAeUPPermissions
     14import WAeUPTool
     15
     16tools = (
     17    WAeUPTool.WAeUPTool,
     18)
    1319
    1420fti = (Students.student_fti,
     
    6167                       )
    6268
    63 def initialize(registrar):
    64     cmfutils.ContentInit(
    65         'WAeUP',
     69def initialize(context):
     70    ToolInit(
     71        'WAeUP Tool',
     72        tools = tools,
     73        icon = 'tool.png',
     74    ).initialize(context)
     75
     76    ContentInit(
     77        'WAeUP Contenttypes',
    6678        content_types=contentClasses,
    6779        permission=AddPortalContent,
     
    6981        fti=fti,
    7082       
    71     ).initialize(registrar)
     83    ).initialize(context)
     84       
     85    context.registerClass(WAeUPTool.WAeUPTool,
     86                          constructors=(WAeUPTool.addWAeUPToolForm,
     87                          WAeUPTool.addWAeUPTool,))
     88
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r194 r197  
    6767                 'action': 'folder_localrole_form',
    6868                 'permissions': (ModifyPortalContent),
    69                  'visible' : 0,
     69                 'visible' : 1,
    7070                 },
    7171                 )
     
    229229                 'action': 'folder_localrole_form',
    230230                 'permissions': (ModifyPortalContent,UniversityManage),
    231                  'visible' : 0,
     231                 'visible' : 1,
    232232                },
    233233                {'id': 'contents',
  • waeup_product/trunk/skins/waeup_default/student_view_all_form.pt

    r169 r197  
    1919    <h1> <span tal:content="context/title_or_id" /></h1>     
    2020 
    21     <p>This is a temporary view of the object with id <em tal:content="here/id" />
    22        of type <em tal:content="here/portal_type" />
    23        which can be customized according to the customer's needs.</p>       
     21    <p>This is a temporary view of the Students Registration view for anonymous users..</p>       
    2422 
    2523    <br />
    2624    <span  tal:condition="python:context.portal_type != 'University'"  tal:omit-tag="">
    27       <p>Exemplary view of the <strong>object's data fields</strong>: </p>
    28       <tal:block  tal:content="structure rendered_main|python:doc.render(proxy=here)" />
     25      <p>You are visiting the Student Registration Portal as anonymous user.
     26      </p>
    2927    </span>
    3028 
  • waeup_product/trunk/skins/waeup_default/temporary_view_all.py

    r195 r197  
    1414if context.portal_membership.isAnonymousUser():
    1515    if not url0.endswith('chat'):
    16         return context.students.student_view_all_form(psm=psm)
     16        return context.students.student_view_all_form(psm=psm)
    1717    return context.Chat()
    1818else:
Note: See TracChangeset for help on using the changeset viewer.