Changeset 1113 for ZMS/trunk/ZMSMetaobjManager.py
- Timestamp:
- 17.07.2010 22:41:53 (22 months ago)
- File:
-
- 1 edited
-
ZMS/trunk/ZMSMetaobjManager.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/ZMSMetaobjManager.py
r1096 r1113 29 29 from Products.PageTemplates import ZopePageTemplate 30 30 from Products.PythonScripts import PythonScript 31 from Products.ZSQLMethods import SQL32 31 from cStringIO import StringIO 33 32 import ZPublisher.HTTPRequest … … 856 855 PythonScript.manage_addPythonScript( container, newObId) 857 856 elif newType == 'Z SQL Method': 858 connection_id = self.SQLConnectionIDs()[0][0] 859 arguments = '' 860 template = '' 861 SQL.manage_addZSQLMethod( container, newObId, newName, connection_id, arguments, template) 857 try: 858 from Products.ZSQLMethods import SQL 859 connection_id = self.SQLConnectionIDs()[0][0] 860 arguments = '' 861 template = '' 862 SQL.manage_addZSQLMethod( container, newObId, newName, connection_id, arguments, template) 863 except: 864 pass 862 865 # Rename Zope-Object. 863 866 elif oldId != newId:
Note: See TracChangeset
for help on using the changeset viewer.
