Changeset 45:0391fe75aef3 in documentViewer
- Timestamp:
- Jul 26, 2006, 12:23:55 PM (19 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r43 r45 144 144 access = docinfo.get('accessType', None) 145 145 zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access type %s"%access) 146 if access is None: 147 # no information - no access 148 return False 149 elif access == 'free': 146 if access is not None and access == 'free': 150 147 zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free") 151 148 return True 152 elif access i n self.authgroups:149 elif access is None or access in self.authgroups: 153 150 # only local access -- only logged in users 154 151 user = getSecurityManager().getUser() -
zpt/changeDocumentViewer.zpt
r33 r45 1 1 <div tal:replace="structure here/manage_page_header">Header</div> 2 <h2>Add a Document Viewer</h2> 2 <!-- ZOPE management tabs --> 3 <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing" 4 tal:replace="structure here/manage_tabs">Tabs</h2> 5 <!-- end of ZOPE management tabs --> 3 6 <form action="changeDocumentViewer"> 4 7
Note: See TracChangeset
for help on using the changeset viewer.