The TurboGears utility module.
|
|
|
|
|
Enum(*names)
True immutable symbolic enumeration with qualified value access. |
source code
|
|
|
|
get_project_meta(name)
Get egg-info file with that name in the current project. |
source code
|
|
|
|
get_project_config()
Try to select appropriate project configuration file. |
source code
|
|
|
|
|
|
|
get_package_name()
Try to find out the package name of the current directory. |
source code
|
|
|
|
|
|
|
|
|
|
ensure_sequence(obj)
Construct a sequence from object. |
source code
|
|
|
|
to_kw(func,
args,
kw,
start=0)
Convert all applicable arguments to keyword arguments. |
source code
|
|
|
|
from_kw(func,
args,
kw,
start=0)
Extract named positional arguments from keyword arguments. |
source code
|
|
|
|
adapt_call(func,
args,
kw,
start=0)
Remove excess arguments. |
source code
|
|
|
|
call_on_stack(func_name,
kw,
start=0)
Check if a call to function matching pattern is on stack. |
source code
|
|
|
|
remove_keys(dict_,
seq)
Gracefully remove keys from dict. |
source code
|
|
|
|
has_arg(func,
argname)
Check whether function has argument. |
source code
|
|
|
|
arg_index(func,
argname)
Find index of argument as declared for given function. |
source code
|
|
|
|
inject_arg(func,
argname,
argval,
args,
kw,
start=0)
Insert argument into call. |
source code
|
|
|
|
inject_args(func,
injections,
args,
kw,
start=0)
Insert arguments into call. |
source code
|
|
|
|
inject_call(func,
injections,
*args,
**kw)
Insert arguments and call. |
source code
|
|
|
|
bind_args(**add)
Call with arguments set to a predefined value. |
source code
|
|
|
|
recursive_update(to_dict,
from_dict)
Recursively update all dicts in to_dict with values from from_dict. |
source code
|
|
|
|
combine_contexts(frames=None,
depth=None)
Combine contexts (globals, locals) of frames. |
source code
|
|
|
|
request_available()
Check if cherrypy.request is available. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
quote_cookie(value)
Escape chars in value that should not be put directly in a cookie. |
source code
|
|
|
|
unquote_cookie(value)
Unescape chars in a cookie value, the reverse of quote_cookie(value). |
source code
|
|
|
|
get_template_encoding_default(engine_name=None)
Return default encoding for template files (Kid, Genshi, etc.). |
source code
|
|
|
|
|
|
|
|
|
|
|