[Checkins] SVN: Products.SQLAlchemyDA/trunk/__init__.py added

Andreas Jung andreas at andreas-jung.com
Sun Apr 29 10:14:42 EDT 2007


Log message for revision 74897:
  added
  

Changed:
  U   Products.SQLAlchemyDA/trunk/__init__.py

-=-
Modified: Products.SQLAlchemyDA/trunk/__init__.py
===================================================================
--- Products.SQLAlchemyDA/trunk/__init__.py	2007-04-29 14:08:19 UTC (rev 74896)
+++ Products.SQLAlchemyDA/trunk/__init__.py	2007-04-29 14:14:41 UTC (rev 74897)
@@ -6,9 +6,20 @@
 # and ZOPYX Ltd. & Co. KG, Tuebingen, Germany
 ##########################################################################
 
+try:
+    import z3c.sqlalchemy
+except ImportError:
+    raise ImportError('The z3c.sqlalchemy is not installed properly')
 
-import z3c.sqlalchemy
+from config import ADD_SA_WRAPPER_PERMISSION
 
 
 def initialize(context):
-    pass
+
+    from da import SAWrapper, manage_addSAWrapper, manage_addSAWrapperForm
+
+    context.registerClass(SAWrapper, 
+                          constructors=(manage_addSAWrapperForm, manage_addSAWrapper),
+                          permission=ADD_SA_WRAPPER_PERMISSION)                          
+        
+  



More information about the Checkins mailing list