logging handler
|
|
|
|
string
|
|
list
|
travAndColl(obj,
toonerel,
collect,
collectname)
Walk a series of to one rels collecting collectname into
collect |
source code
|
|
object
|
|
integer or None
|
|
object or None
|
|
class
|
|
string
|
|
list
|
getSubObjects(base,
filter=None,
descend=None,
retobjs=None)
Do a depth-first search looking for objects that the function
filter returns as True. |
source code
|
|
list
|
getSubObjectsMemo(base,
filter=None,
descend=None,
memo={})
Do a depth-first search looking for objects that the function
filter returns as True. |
source code
|
|
list
|
|
string
|
|
string
|
|
object
|
createHierarchyObj(root,
name,
factory,
relpath="",
llog=None)
Create a hierarchy object from its path we use relpath to skip
down any missing relations in the path and factory is the constructor
for this object. |
source code
|
|
object
|
|
string
|
basicAuthUrl(username,
password,
url)
Add the username and password to a url in the form
http://username:password@host/path |
source code
|
|
string
|
|
tuple
|
|
tuple
|
|
string
|
zdecode(context,
value)
Convert a string using the decoding found in
zCollectorDecoding |
source code
|
|
re match object
|
|
re match object
|
|
boolean
|
cmpClassNames(obj,
classnames)
Check to see if any of an object's base classes are in a list of
class names. |
source code
|
|
string
|
|
|
|
string
|
|
string
|
|
|
|
|
zopePath(*args)
Similar to zenPath() except that this constructs a path based on
ZOPEHOME rather than ZENHOME. |
source code
|
|
string
|
|
string
|
|
integer
|
|
boolean
|
|
string
|
|
string
|
|
boolean
|
ipsort(a,
b)
Compare (cmp()) a + b's IP addresses These addresses may contain
subnet mask info. |
source code
|
|
unsigned int
|
|
|
|
function
|
|
function
|
json(f)
Decorator that serializes the return value of the decorated
function as JSON. |
source code
|
|
function
|
formreq(f)
Decorator to pass in request.form information as arguments to a
method. |
source code
|
|
str
>>> readable_time(1)
'1 second'
>>> readable_time(60)
'1 minute'
>>> readable_time(60*60*3+12)
'3 hours'
>>> readable_time(60*60*3+12, 2)
'3 hours 12 seconds'
|
|
str
>>> relative_time(time.time() - 60*10)
'10 minutes ago'
>>> relative_time(time.time() - 60*10-3, precision=2)
'10 minutes 3 seconds ago'
>>> relative_time(time.time() - 60*60*24*10, precision=2)
'1 week 3 days ago'
>>> relative_time(time.time() - 60*60*24*365-1, precision=2)
'1 year 1 second ago'
>>> relative_time(time.time() + 1 + 60*60*24*7*2)
'in 2 weeks'
|
relative_time(t,
precision=1,
cmptime=None)
Return a human-readable string describing time relative to
cmptime (defaulted to now). |
source code
|
|
|
|
string
|
|