utils Package

autoreload Module

opennode.utils.autoreload.code_changed()[source]
opennode.utils.autoreload.jython_reloader(main_func, args, kwargs)[source]
opennode.utils.autoreload.main(main_func, args=None, kwargs=None, **more_options)[source]
opennode.utils.autoreload.python_reloader(main_func, args, kwargs, check_in_thread=True)[source]

If check_in_thread is False, main_func will be run in a separate thread, and the code checker in the main thread. This was the original behavior of this module: I (Michael Elsdoerfer) changed the default to be the reverse: Code checker in thread, main func in main thread. This was necessary to make the thing work with Twisted (http://twistedmatrix.com/trac/ticket/4072).

opennode.utils.autoreload.reloader_thread(softexit=False)[source]

If soft_exit is True, we use sys.exit(); otherwise os_exit will be used to end the process.

opennode.utils.autoreload.restart_with_reloader()[source]

conf_ref_gen Module

opennode.utils.conf_ref_gen.is_comment(l)[source]
opennode.utils.conf_ref_gen.is_group(l)[source]
opennode.utils.conf_ref_gen.main()[source]

finddata Module

opennode.utils.finddata.find_package_data(where='.', package='', exclude=('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak'), exclude_directories=('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info'), only_in_packages=True, show_ignored=False)[source]

Return a dictionary suitable for use in package_data in a distutils setup.py file.

The dictionary looks like:

{'package': [files]}

Where files is a list of all the files in that package that don’t match anything in exclude.

If only_in_packages is true, then top-level directories that are not packages won’t be included (but directories under packages will).

Directories matching any pattern in exclude_directories will be ignored; by default directories with leading ., CVS, and _darcs will be ignored.

If show_ignored is true, then all the files that aren’t included in package data are shown on stderr (for debugging purposes).

Note patterns use wildcards, or can be exact paths (including leading ./), and all searching is case-insensitive.

version Module

Table Of Contents

Previous topic

zodb Package

This Page