Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
2606c799
Commit
2606c799
authored
Apr 09, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document DTML security functions.
parent
ec4ff4e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
lib/python/Products/OFSP/help/dtml-funcs.stx
lib/python/Products/OFSP/help/dtml-funcs.stx
+30
-1
No files found.
lib/python/Products/OFSP/help/dtml-funcs.stx
View file @
2606c799
...
@@ -150,6 +150,35 @@ functions: DTML Functions
...
@@ -150,6 +150,35 @@ functions: DTML Functions
keys. This function is useful for constructing ordered select
keys. This function is useful for constructing ordered select
lists.
lists.
SecurityCalledByExecutable() -- Return a true if the current
object (e.g. DTML document or method) is being called by an
executable (e.g. another DTML document or method, a script or a
SQL method).
SecurityCheckPermission(permission, object) -- Check whether the
security context allows the given permission on the given
object. For example, 'SecurityCheckPermission("Add Documents,
Images, and Files", this())' would return true if the current user
was authorized to create documents, images, and files in the
current location.
SecurityGetUser() -- Return the current user object. This is
normally the same as the 'REQUEST.AUTHENTICATED_USER'
object. However, the 'AUTHENTICATED_USER' object is insecure since
it can be replaced.
SecurityValidate([object] [,parent] [,name] [,value]) -- Return
true if the value is accessible to the current user. 'object' is
the object the value was accessed in, 'parent' is the container of
the value, and 'name' is the named used to access the value (for
example, if it was obtained via 'getattr'). You may omit some of
the arguments, however it is best to provide all available
arguments.
SecurityValidateValue(object) -- Return true if the object is
accessible to the current user. This function is the same as
calling 'SecurityValidate(None, None, None, object)'.
str(object) -- Return a string containing a nicely printable
str(object) -- Return a string containing a nicely printable
representation of an object. For strings, this returns the string
representation of an object. For strings, this returns the string
itself.
itself.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment