Files @ 0f15f88e69c1
Branch filter:

Location: kallithea/rhodecode/lib/vcs/utils/fakemod.py

Mads Kiilerich
changelog: don't select all checkboxes in the middle

The changesets in the log might not be linearly connected and intermediate
changesets might not be a part of the operation the range is used for.

Some way of highlighting the two selected changesets and some radio button
functionality would however be nice.
import imp


def create_module(name, path):
    """
    Returns module created *on the fly*. Returned module would have name same
    as given ``name`` and would contain code read from file at the given
    ``path`` (it may also be a zip or package containing *__main__* module).
    """
    module = imp.new_module(name)
    module.__file__ = path
    execfile(path, module.__dict__)
    return module