Author:
Fabio Erculiani <lxnay@sabayonlinux.org>
Contact:
lxnay@sabayonlinux.org
Copyright:
Fabio Erculiani
License:
GPL-2
Entropy Framework object disk serializer module.
This module contains Entropy Python object serialization
functions and disk dumpers.
Serialized objects are stored to disk with proper permissions by
default into path given by entropy.const's
etpConst['dumpstoragedir'].
Permissions are set using entropy.const's const_setup_perms and
const_setup_file functions.
Objects are serialized using Python's cPickle/pickle modules,
thus they must be "pickable". Please read Python Library
reference for more information.
|
None
|
dumpobj(name,
my_object,
complete_path=False,
ignore_exceptions=True)
Dump pickable object to file |
source code
|
|
|
file object
|
|
|
any Python pickable object
|
|
|
any Python pickable object
|
|
|
string
|
|
|
any Python pickable object or None
|
|
|
int
|
|
|
bool
|
|