[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/sqlscript/browser/ Removed unused imports

Dmitry Vasiliev dima at hlabs.spb.ru
Tue Oct 11 03:39:19 EDT 2005


Log message for revision 39037:
  Removed unused imports
  

Changed:
  U   Zope3/trunk/src/zope/app/sqlscript/browser/configure.zcml
  U   Zope3/trunk/src/zope/app/sqlscript/browser/sqlscript.py

-=-
Modified: Zope3/trunk/src/zope/app/sqlscript/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/sqlscript/browser/configure.zcml	2005-10-10 19:50:34 UTC (rev 39036)
+++ Zope3/trunk/src/zope/app/sqlscript/browser/configure.zcml	2005-10-11 07:39:18 UTC (rev 39037)
@@ -8,20 +8,20 @@
       title="SQL Script"
       description="A content-based script to execute dynamic SQL."
       class="zope.app.sqlscript.SQLScript"
-      permission="zope.ManageContent"   
+      permission="zope.ManageContent"
       view="zope.app.sqlscript.SQLScript"
-      /> 
+      />
 
   <browser:addform
       schema="zope.app.sqlscript.interfaces.ISQLScript"
       label="Add a SQL Script"
-      content_factory=".sqlscript.SQLScript"
+      content_factory="..sqlscript.SQLScript"
       keyword_arguments="connectionName source arguments"
       name="zope.app.sqlscript.SQLScript"
       permission="zope.ManageContent"
       template="add.pt"
       class=".sqlscript.SQLScriptAdd"
-      /> 
+      />
 
   <browser:editform
       schema="zope.app.sqlscript.interfaces.ISQLScript"
@@ -30,7 +30,7 @@
       label="Edit an SQL script"
       permission="zope.ManageContent"
       template="edit.pt"
-      class=".sqlscript.SQLScriptEdit" 
+      class=".sqlscript.SQLScriptEdit"
       />
 
   <browser:pages
@@ -59,7 +59,7 @@
 
     <browser:page
         name="Caching.html"
-        attribute="form"  
+        attribute="form"
         menu="zmi_views" title="Caching"
         />
     <browser:page

Modified: Zope3/trunk/src/zope/app/sqlscript/browser/sqlscript.py
===================================================================
--- Zope3/trunk/src/zope/app/sqlscript/browser/sqlscript.py	2005-10-10 19:50:34 UTC (rev 39036)
+++ Zope3/trunk/src/zope/app/sqlscript/browser/sqlscript.py	2005-10-11 07:39:18 UTC (rev 39037)
@@ -15,15 +15,13 @@
 
 $Id$
 """
-from zope.app.form.browser.add import AddView
 from zope.app.form.browser.submit import Update
 from zope.app.rdb.interfaces import DatabaseException
-from zope.app.container.interfaces import IAdding
 from zope.app import zapi
 
-from zope.app.sqlscript.sqlscript import SQLScript
 from zope.app.sqlscript.interfaces import ISQLScript
 
+
 class SQLScriptTest(object):
     """Test the SQL inside the SQL Script
     """
@@ -109,7 +107,7 @@
         ...         return None
         ...     def nextURL(self):
         ...         return "www.zeomega.com"
-        
+
         >>> class V(SQLScriptAdd, Base):
         ...     pass
         >>> 
@@ -135,12 +133,12 @@
 
 class SQLScriptEdit(object):
     """Provide interface to Edit and Test  SQL Script
-    """        
+    """
 
     def update(self):
         """Set the Update variable for Change and Test
         >>> from zope.publisher.browser import TestRequest
-        
+
         >>> rqst = TestRequest()
         >>> class Base(object):
         ...     def __init__(self, request):
@@ -161,7 +159,6 @@
         >>> 'UPDATE_SUBMIT' in rqst
         False
         >>>
-        
 
         >>> d = {'change_test': True}
         >>> rqst1 = TestRequest(form = d)
@@ -177,7 +174,7 @@
         'test.html'
         >>> rqst1.response.getStatus()
         302
-           
+
         >>> d = {'change_test': True}
         >>> rqst2 = TestRequest(form = d)
         >>> dc2 = V(rqst2)
@@ -187,7 +184,7 @@
         >>> 'UPDATE_SUBMIT' in rqst2
         True
         >>> rqst2.response.getHeader('location')
-        
+
         >>> rqst2.response.getStatus()
         599
         """



More information about the Zope3-Checkins mailing list