This file is part of the web2py Web Framework Copyrighted by Massimo
Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3
(http://www.gnu.org/licenses/lgpl.html)
|
parse_semantic(version=' Version 1.99.0-rc.1+timestamp.2011.09.19.08.23.26 ' )
http://semver.org/ |
source code
|
|
|
parse_legacy(version=' Version 1.99.0 (2011-09-19 08:23:26) ' ) |
source code
|
|
|
|
|
read_file(filename,
mode=' r ' )
returns content from filename, making sure to close the file
explicitly on exit. |
source code
|
|
|
write_file(filename,
value,
mode=' w ' )
writes <value> to filename, making sure to close the file
explicitly on exit. |
source code
|
|
|
readlines_file(filename,
mode=' r ' )
applies .split(' ') to the output of read_file() |
source code
|
|
|
|
|
listdir(path,
expression=' ^.+$ ' ,
drop=True,
add_dirs=False,
sort=True)
like os.listdir() but you can specify a regex pattern to filter
files. |
source code
|
|
|
|
|
|
|
_extractall(filename,
path=' . ' ,
members=None) |
source code
|
|
|
tar(file,
dir,
expression=' ^.+$ ' ,
filenames=None)
tars dir into file, only tars file that match expression |
source code
|
|
|
|
|
w2p_pack(filename,
path,
compiled=False,
filenames=None) |
source code
|
|
|
|
|
w2p_unpack(filename,
path,
delete_tar=True) |
source code
|
|
|
|
|
w2p_unpack_plugin(filename,
path,
delete_tar=True) |
source code
|
|
|
|
|
|
|
get_session(request,
other_application=' admin ' )
checks that user is authorized to access other_application |
source code
|
|
|
set_session(request,
session,
other_application=' admin ' )
checks that user is authorized to access other_application |
source code
|
|
|
check_credentials(request,
other_application=' admin ' ,
expiration=3600,
gae_login=True)
checks that user is authorized to access other_application |
source code
|
|
|
|
|
copystream(src,
dest,
size,
chunk_size=100000)
this is here because I think there is a bug in shutil.copyfileobj |
source code
|
|
|
|
|
abspath(*relpath,
**base)
convert relative path to absolute path based (by default) on
applications_parent |
source code
|
|