|
|
|
|
|
| createBlobInContext(self,
id,
blob,
container) |
|
|
|
|
| FileFromData(self,
data,
filename='',
content_type=None) |
|
|
|
|
| ImageFromData(self,
data,
filename='',
content_type=None) |
|
|
|
|
| boolint(self,
c,
t=1,
f=0) |
|
|
|
|
| nvl(self,
a1,
a2,
n=None) |
|
|
|
|
|
|
|
| encrypt_password(self,
pw,
algorithm='md5',
hex=False) |
|
|
|
|
|
|
|
|
|
|
| string_maxlen(self,
s,
maxlen=20,
etc='...',
encoding=None) |
|
|
|
|
| url_quote(self,
string,
safe='/') |
|
|
|
|
| http_import(self,
url,
method='GET',
auth=None,
parse_qs=0) |
|
|
|
|
| url_append_params(self,
url,
dict,
sep='&') |
|
|
|
|
| url_inherit_params(self,
url,
REQUEST,
exclude=[],
sep='&') |
|
|
|
|
| id_quote(self,
s,
mapping={'\x20': '_','-': '_','/': '_',}) |
|
|
|
|
|
|
|
| js_quote(self,
text,
charset=None) |
|
|
|
|
| isPreviewRequest(self,
REQUEST) |
|
|
|
|
| getDataSizeStr(self,
len) |
|
|
|
|
| getMimeTypeIconSrc(self,
mt) |
|
|
|
|
|
|
|
| tree_parents(self,
l,
i='id',
r='idId',
v='',
deep=1,
reverse=1) |
|
|
|
|
| str_json(self,
i,
encoding='ascii',
errors='xmlcharrefreplace') |
|
|
|
|
|
|
|
|
|
|
|
|
|
| extractZipArchive(self,
f) |
|
|
|
|
| buildZipArchive(self,
files,
get_data=True) |
|
|
|
|
| set_response_headers(self,
fn,
mt='application/octet-stream') |
|
|
|
|
| getXmlHeader(self,
encoding='utf-8') |
|
|
|
|
| toXmlString(self,
v,
xhtml=False,
encoding='utf-8') |
|
|
|
|
| parseXmlString(self,
xml,
mediadbStorable=True) |
|
|
|
|
| xslProcess(self,
xsl,
xml) |
|
|
|
|
| processData(self,
processId,
data,
trans=None) |
|
|
|
|
|
|
|
| xmlNodeSet(self,
mNode,
sTagName='',
iDeep=0) |
|
|
|
|
|
|
|
| dt_html(self,
value,
REQUEST) |
|
|
|
|
| dt_py(self,
script,
kw={}) |
|
|
|
|
| getPlugin(self,
path,
options={}) |
|
|
|
|
| getLangFmtDate(self,
t,
lang=None,
fmt_str='SHORTDATETIME_FMT') |
|
|
|
|
| parseLangFmtDate(self,
s,
lang=None,
fmt_str=None,
recflag=None) |
|
|
|
|
| compareDate(self,
t0,
t1) |
|
|
|
|
| daysBetween(self,
t0,
t1) |
|
|
|
|
| sendMail(self,
mto,
msubject,
mbody,
REQUEST) |
|
|
|
|
| localfs_package_home(self) |
|
|
|
|
|
string or filestream_iterator
|
localfs_read(self,
filename,
mode='b',
REQUEST=None)
Reads file from local file-system. |
|
|
|
|
| localfs_write(self,
filename,
v,
mode='b',
REQUEST=None) |
|
|
|
|
| localfs_remove(self,
path,
deep=0) |
|
|
|
|
| localfs_readPath(self,
filename,
data=False,
recursive=False,
REQUEST=None) |
|
|
|
|
|
|
|
|
|
|
| intersection_list(self,
l1,
l2) |
|
|
|
|
| difference_list(self,
l1,
l2) |
|
|
|
|
| concat_list(self,
l1,
l2) |
|
|
|
|
|
|
|
| distinct_list(self,
l,
i=None) |
|
|
|
|
| sort_list(self,
l,
qorder=None,
qorderdir='asc',
ignorecase=1) |
|
|
|
|
| string_list(self,
s,
sep='\n') |
|
|
|
|
| tree_list(self,
l,
i='id',
r='idId',
v='',
deep=0) |
|
|
|
|
| filter_list(self,
l,
i,
v,
o='%') |
|
|
|
|
|
|
|
| sync_list(self,
l,
nl,
i) |
|
|
|
|
| aggregate_list(self,
l,
i) |
|
|
|
|
| operator_absattr(self,
v) |
|
|
|
|
| operator_gettype(self,
v) |
|
|
|
|
| operator_setitem(self,
a,
b,
c) |
|
|
|
|
| operator_getitem(self,
a,
b,
c=None,
ignorecase=True) |
|
|
|
|
| operator_delitem(self,
a,
b) |
|
|
|
|
| operator_setattr(self,
a,
b,
c) |
|
|
|
|
| operator_getattr(self,
a,
b,
c=None) |
|
|
|
|
| operator_delattr(self,
a,
b) |
|
|
|
|
|
|
|
|
|
|
| re_sub(self,
pattern,
replacement,
subject,
ignorecase=False) |
|
|
|
|
| re_search(self,
pattern,
subject,
ignorecase=False) |
|
|