Trees | Indices | Help |
|
---|
|
ZMS standard utility module
This module provides helpful functions and classes for use in Python Scripts. It can be accessed from Python with the statement "import Products.zms.standard"
Classes | |
initutil |
Functions | |||
str
|
|
||
str
|
|
||
str
|
|
||
tuple
|
|
||
|
|||
str
|
|
||
str
|
|
||
list
|
|
||
str
|
|
||
str
|
|
||
int
|
|
||
|
|||
str
|
|
||
|
|||
|
|||
|
|||
|
|||
any
|
|
||
|
|||
|
|||
Bool
|
|
||
Bool
|
|
||
|
|||
str
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
str
|
|
||
str
|
|
||
str
|
|
||
|
|||
|
|||
int
|
|
||
|
|||
struct_time
|
|
Variables | |
security = ModuleSecurityInfo('Products.zms.standard')
|
|
umlautMapping = {u'ä': 'ae', u'ö': 'oe', u'ü': 'ue', u'Ä': 'Ae
|
Function Details |
Replace umlauts in s using given mapping.
|
Returns string with specified maximum-length. If original string exceeds maximum-length '...' is appended at the end.
|
All unsafe characters must always be encoded within a URL.
See Also: http://www.ietf.org/rfc/rfc1738.txt |
Guess the type of a file based on its filename and the data.
|
Returns a string with the hexadecimal representation of integer m.
|
Converts a hexadecimal-string m to an integer.
|
Available encryption-schemes.
|
Encrypts given password.
|
Encrypts given string with entities by random algorithm.
|
Random integer in given range.
|
Returns prefix from identifier (which is the non-numeric part at the beginning).
|
Returns its first argument if it is not equal to third argument (None), otherwise it returns its second argument.
|
Send Http-Request and return Response-Body.
|
Performs a search-and-replace across subject, replacing all matches of regex in subject with replacement. The result is returned by the sub() function. The subject string you pass is not modified.
|
Scan through string looking for a location where the regular expression pattern produces a match, and return a corresponding MatchObject instance. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string.
|
Return all non-overlapping matches of pattern in string, as a list of strings. The string is scanned left-to-right, and matches are returned in the order found. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result unless they touch the beginning of another match
|
Bei Python 2.2 ist der Typ der Objekte des Moduls "time" nicht mehr "tuple", sondern "time.struct_time". Es verhaelt sich aber weiterhin abwaertskompatibel zu einem tuple. This is no problem for Zope since Zope uses its own, more flexible, type DateTime. Nevertheless ZMS relies on the datatype "tuple" as DateTime has the limitation that no date prior to 1970-01-01 can be used! |
Compares two dates t0 and t1 and returns result. +1: t0 < t1 0: t0 == t1 -1: t0 > t1 @rtype: C{int} |
Variables Details |
umlautMapping
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 14 22:42:18 2017 | http://epydoc.sourceforge.net |