comparison roundup/cgi/templating.py @ 2991:b9a55628a78d

more doc fixes simplified the security API, and bumped those changes around a couple more TODO items so I don't forget
author Richard Jones <richard@users.sourceforge.net>
date Tue, 07 Dec 2004 23:32:50 +0000
parents 9614a101b68f
children 29e7a2ff6434
comparison
equal deleted inserted replaced
2988:f4023f1cc1d6 2991:b9a55628a78d
1021 1021
1022 class _HTMLUser(_HTMLItem): 1022 class _HTMLUser(_HTMLItem):
1023 '''Add ability to check for permissions on users. 1023 '''Add ability to check for permissions on users.
1024 ''' 1024 '''
1025 _marker = [] 1025 _marker = []
1026 def hasPermission(self, permission, classname=_marker): 1026 def hasPermission(self, permission, classname=_marker,
1027 property=None, itemid=None):
1027 '''Determine if the user has the Permission. 1028 '''Determine if the user has the Permission.
1028 1029
1029 The class being tested defaults to the template's class, but may 1030 The class being tested defaults to the template's class, but may
1030 be overidden for this test by suppling an alternate classname. 1031 be overidden for this test by suppling an alternate classname.
1031 ''' 1032 '''

Roundup Issue Tracker: http://roundup-tracker.org/