- DeleteSessionData(context, key)
-
Delete one of the key/value pairs stored in the session data
- GetAllDocumentDefinitionPaths(context, path=None)
-
Get the resource (path) given a user or group name
- GetCurrentUser(context)
-
Get the resource (path) for the current user
- GetCurrentUserName(context)
-
Get the name (not the resource) of the current user
- GetUserOrGroupByName(context, name)
-
Given a user name, return the user resource path
- HasSession(context)
-
See if this connection is in a session
- HashString(context, rawString)
-
Return a hash for a string
DEPRECATED - use f:sha-hash()
- NormalizeUri(context, uri, base=None)
-
Resolve a relative URI against a given base, in effect just
turning it into a proper repository URI (ftss://...) if no base
is given for a relative path
- RepoPathToUriFunc(context, path)
-
Convert a full repository URI e.g. ("ftss:///spam/eggs") to a
repository path (e.g. "/spam/eggs")
- SessionData(context, key)
-
Session data is stored under a session ID (a UUID string) and takes the
form of zero or more key-value pairs. Each key is a unique string, and each
value is either a string or a node-set.
This XSLT extension function coerces the given key to its string-value
and returns from the current session the node-set that is associated with
that key. If the key does not exist in the current session, or if there is
no current session, then an empty node-set is returned. There is no way to
distinguish between an empty node-set as an indication of such an error and
an empty node-set as the legitimate value for the given key.
- SessionInvalidate(context)
-
Destroy the current session
- UriToRepoPath(context, uri)
-
Convert a repository path (e.g. "/spam/eggs") to a proper repository URI
e.g. ("ftss:///spam/eggs")