Changeset 197 for waeup_product
- Timestamp:
- 8 Feb 2006, 12:47:31 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r195 r197 360 360 self.finalize() 361 361 362 363 362 def verifyPortlets(self, portlets=(), object=None): ###( 364 363 """Verify the existence of given portet in the object's portlet … … 417 416 return returned 418 417 ###) 418 419 419 420 420 def installCustomWorkflows(self): ###( … … 536 536 installer = WAeUPInstaller(self) 537 537 installer.install(self) 538 dirtool = getattr(self,'portal_directories') 538 #dirtool = getattr(self,'portal_directories') 539 return installer.logResult() 539 540 groups = dirtool.groups 540 541 for delEntry in ('StudentManager',): -
waeup_product/trunk/University.py
r166 r197 1 from Globals import InitializeClass 1 from Globals import InitializeClass,HTMLFile 2 2 from AccessControl import ClassSecurityInfo 3 3 … … 13 13 # The WAeUP BaseContainer 14 14 # 15 16 15 class University(CPSDocument): 17 16 """ … … 28 27 return self.REQUEST 29 28 30 31 ## security.declarePublic('backEnd')32 ## def backEnd(self):33 ## """ are we in back-end mode"""34 ## mtool = self.portal_membership35 ## member = mtool.getAuthenticatedMember()36 ## roles = member.getRoles()37 ## if 'UniversityManager' in roles or 'StudentManager' in roles:38 ## return True39 ## return False40 ##41 ## security.declarePublic('frontEnd')42 ## def frontEnd(self):43 ## """ are we in front-end mode"""44 ## mtool = self.portal_membership45 ## member = mtool.getAuthenticatedMember()46 ## roles = member.getRoles()47 ## if 'Student' in roles:48 ## return True49 ## return False50 51 52 29 InitializeClass(University) 53 30 54 55 31 def addUniversity(container, id, REQUEST=None, **kw): 56 """Add a WAeUP"""32 """Add a University""" 57 33 ob = University(id, **kw) 58 34 return CPSBase_adder(container, ob, REQUEST=REQUEST) -
waeup_product/trunk/__init__.py
r179 r197 1 from Products.CMFCore.utils import ContentInit, ToolInit 1 2 from Products.CMFCore.DirectoryView import registerDirectory 2 3 from Products.CMFCore import utils as cmfutils … … 11 12 import Widgets 12 13 import WAeUPPermissions 14 import WAeUPTool 15 16 tools = ( 17 WAeUPTool.WAeUPTool, 18 ) 13 19 14 20 fti = (Students.student_fti, … … 61 67 ) 62 68 63 def initialize(registrar): 64 cmfutils.ContentInit( 65 'WAeUP', 69 def initialize(context): 70 ToolInit( 71 'WAeUP Tool', 72 tools = tools, 73 icon = 'tool.png', 74 ).initialize(context) 75 76 ContentInit( 77 'WAeUP Contenttypes', 66 78 content_types=contentClasses, 67 79 permission=AddPortalContent, … … 69 81 fti=fti, 70 82 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 67 67 'action': 'folder_localrole_form', 68 68 'permissions': (ModifyPortalContent), 69 'visible' : 0,69 'visible' : 1, 70 70 }, 71 71 ) … … 229 229 'action': 'folder_localrole_form', 230 230 'permissions': (ModifyPortalContent,UniversityManage), 231 'visible' : 0,231 'visible' : 1, 232 232 }, 233 233 {'id': 'contents', -
waeup_product/trunk/skins/waeup_default/student_view_all_form.pt
r169 r197 19 19 <h1> <span tal:content="context/title_or_id" /></h1> 20 20 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> 24 22 25 23 <br /> 26 24 <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> 29 27 </span> 30 28 -
waeup_product/trunk/skins/waeup_default/temporary_view_all.py
r195 r197 14 14 if context.portal_membership.isAnonymousUser(): 15 15 if not url0.endswith('chat'): 16 16 return context.students.student_view_all_form(psm=psm) 17 17 return context.Chat() 18 18 else:
Note: See TracChangeset for help on using the changeset viewer.