wip: UI refactoring

* javascript cleanup

see #204
This commit is contained in:
Antoine Nguyen
2012-04-20 18:34:36 +02:00
parent 934d1e6b7f
commit 29069ee3b1
7 changed files with 68 additions and 286 deletions
+4
View File
@@ -11,6 +11,7 @@ core application and additional components.
from functools import wraps
import inspect
import re
from django.conf import settings
events = [
"CanCreate",
@@ -114,6 +115,9 @@ class observe(object):
return []
if not ext.enabled:
return []
elif not modname in settings.INSTALLED_APPS:
return []
return f(*args)
map(lambda evt: register(evt, wrapped_f), self.evtnames)