[Checkins] SVN: Product.ZSQLAlchemy/trunk/ import of boilerplate
code
Andreas Jung
andreas at andreas-jung.com
Thu Feb 1 06:00:35 EST 2007
Log message for revision 72288:
import of boilerplate code
Changed:
A Product.ZSQLAlchemy/trunk/README.txt
A Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py
A Product.ZSQLAlchemy/trunk/__init__.py
A Product.ZSQLAlchemy/trunk/pt/
A Product.ZSQLAlchemy/trunk/pt/add.pt
A Product.ZSQLAlchemy/trunk/pt/xx
A Product.ZSQLAlchemy/trunk/version.txt
-=-
Added: Product.ZSQLAlchemy/trunk/README.txt
===================================================================
--- Product.ZSQLAlchemy/trunk/README.txt 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/README.txt 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1,6 @@
+ZSQLAlchemy
+
+(C) 2007, ZOPYX Ltd & Co. KG
+D-72070 Tuebingen, Germany
+
+ZSQLAlchemy is published under the Zope Public License 2.1 (ZPL 2.1)
Added: Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py
===================================================================
--- Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1,43 @@
+
+"""
+ZSQLAlchemy
+
+$Id: TextIndexNG3.py 1754 2007-01-27 10:38:25Z ajung $
+"""
+
+from Globals import InitializeClass
+from OFS.SimpleItem import SimpleItem
+from AccessControl import ClassSecurityInfo
+from OFS.PropertyManager import PropertyManager
+from Products.PageTemplates.PageTemplateFile import PageTemplateFile
+
+class ZSQLAlchemy(SimpleItem, PropertyManager):
+
+ meta_type = 'ZSQLAlchemy'
+ connection_url = ''
+
+ manage_options = SimpleItem.manage_options + \
+ PropertyManager.manage_options
+
+ _properties=({'id':'connection_url',
+ 'type':'string',
+ 'mode':'wrd'},)
+
+ security = ClassSecurityInfo()
+
+
+InitializeClass(ZSQLAlchemy)
+
+
+manage_addZSQLAlchemyForm = PageTemplateFile( "pt/add.pt", globals(), __name__ = 'manage_addZSQLAlchemyForm')
+
+def manage_addZSQLAlchemy(self, id, REQUEST=None):
+ """ """
+
+ zs = ZSQLAlchemy(id)
+ self._setObject(id, zs)
+
+ if REQUEST:
+ REQUEST.RESPONSE.redirect(self.absolute_url() + '/manage_workspace')
+ else:
+ return zs
Added: Product.ZSQLAlchemy/trunk/__init__.py
===================================================================
--- Product.ZSQLAlchemy/trunk/__init__.py 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/__init__.py 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1,15 @@
+
+import os, sys
+
+import ZSQLAlchemy
+
+def initialize(context):
+ context.registerClass(
+ ZSQLAlchemy.ZSQLAlchemy,
+ permission='Add ZSQLAlchemy',
+# icon='pt/index.gif',
+ constructors=(ZSQLAlchemy.manage_addZSQLAlchemyForm,
+ ZSQLAlchemy.manage_addZSQLAlchemy),
+ )
+
+
Added: Product.ZSQLAlchemy/trunk/pt/add.pt
===================================================================
--- Product.ZSQLAlchemy/trunk/pt/add.pt 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/pt/add.pt 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1,32 @@
+
+<p class="form-help">
+Add a ZSQLAlchemy instance
+</p>
+
+
+<form action="manage_addZSQLAlchemy" method="post" enctype="multipart/form-data" name="addform">
+<table cellspacing="0" cellpadding="2" border="1">
+ <tr>
+ <td>
+ <div class="form-label">
+ Id
+ </div>
+ </td>
+ <td>
+ <input type="text" name="id" size="40" />
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ </td>
+ <td colspan="2">
+ <div class="form-element">
+ <input class="form-element" type="submit" name="submit"
+ value=" Add " />
+ </div>
+ </td>
+ </tr>
+</table>
+</form>
+
Added: Product.ZSQLAlchemy/trunk/pt/xx
===================================================================
--- Product.ZSQLAlchemy/trunk/pt/xx 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/pt/xx 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1 @@
+from Products.PageTemplates.PageTemplateFile import PageTemplateFile
Added: Product.ZSQLAlchemy/trunk/version.txt
===================================================================
--- Product.ZSQLAlchemy/trunk/version.txt 2007-02-01 10:51:10 UTC (rev 72287)
+++ Product.ZSQLAlchemy/trunk/version.txt 2007-02-01 11:00:35 UTC (rev 72288)
@@ -0,0 +1 @@
+0.1
More information about the Checkins
mailing list