]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/modules/__init__.py
Starts preparing the app for module based html injection.
[osqa.git] / forum / modules / __init__.py
index 023b46406220894d72e9849e0e195fc2a5428610..14c56e875ff8eea2e50f3da1f926db2174a51969 100644 (file)
@@ -25,9 +25,13 @@ def get_modules_script(script_name):
     for m in MODULE_LIST:
         try:
             all.append(__import__('%s.%s' % (m.__name__, script_name), globals(), locals(), [m.__name__]))
-        except Exception, e:
-            #print m.__name__ + ":" + str(e)
+        except ImportError, e:
+            #repr(type(e)) + m.__name__ + ":" + str(e)
             pass
+        except:
+            pass
+            #import sys, traceback
+            #traceback.print_exc(file=sys.stdout)
 
     return all
 
@@ -101,3 +105,5 @@ def module_templates_loader(name, dirs=None):
     raise TemplateDoesNotExist, name 
 
 module_templates_loader.is_usable = True
+
+from decorators import decorate