Ignore:
Timestamp:
17.07.2010 22:41:53 (22 months ago)
Author:
zmsdev
Message:

Added support for Zope-2.13.0a2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/ZMSMetaobjManager.py

    r1096 r1113  
    2929from Products.PageTemplates import ZopePageTemplate 
    3030from Products.PythonScripts import PythonScript 
    31 from Products.ZSQLMethods import SQL 
    3231from cStringIO import StringIO 
    3332import ZPublisher.HTTPRequest 
     
    856855            PythonScript.manage_addPythonScript( container, newObId) 
    857856          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 
    862865        # Rename Zope-Object. 
    863866        elif oldId != newId: 
Note: See TracChangeset for help on using the changeset viewer.