[go: up one dir, main page]

Menu

/mcomix/callback.py Commit Log


Commit Date  
[r1060] (4.5 kB) by oddegamra

Print traceback when callback fails.

From: Benoit Pierre <benoit.pierre@...>

2014-07-25 16:39:42 View
Download
[r1009] (4.4 kB) by oddegamra

Fix Callback decorator to use the correct base object.

From: Benoit Pierre <benoit.pierre@...>

2014-05-22 16:36:07 View
Download
[r486] (4.3 kB) by oddegamra

Changed project structure after moving mcomixstarter.py out of mcomix package.

Having the init script in the project package lead to tons of pain over
time, such as import errors from sub-packages, hard to track double
imports of packages with different namespace, and circular imports
trying to import a package with two different names. So, the script that
bootstraps MComix is not located outside of the mcomix package. This
should not impact users much - normally, they should use the wrapper
provided by setup.py.

If you are a package maintainer, and symlinked e.g. /usr/bin/mcomix to
mcomix/mcomixstarter.py in the past, please use the wrapper generated
by setup.py now instead. mcomix/run.py can NOT be started directly with
the Python interpreter (I removed +x from its attributes and added an
explicit call to sys.exit).

2011-11-01 16:45:51 View
Download
[r303] (4.3 kB) by oddegamra

Replace print_ with calls to log.warning/log.error.

This removes the need for having to add a new built-in function
print_(). Filtering based on error level is probably also
desireable.

2011-05-10 17:38:53 View
Download
[r178] (4.3 kB) by oddegamra

Removed ununsed import.

2011-04-11 13:56:37 View
Download
[r171] (4.3 kB) by oddegamra

Add callback decorator.

This class can be wrapped around any function/method
as decorator. Afterwards, the function will always be executed
in the main thread, that is, if another thread calls it,
it will first be queued in Gobject's main loop before
being actually run.

Other than that, wrapped functions can also serve as targets
for the Observer pattern. Add a function with method += callback.
This callback will now be called each time the original function
has been called.

2011-04-10 15:05:57 View
Download