[Zope-Checkins] CVS: Products/DCOracle2 - DABase.py:1.7

Chris Withers cvs-admin at zope.org
Mon Nov 3 09:08:26 EST 2003


Update of /cvs-repository/Products/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv32149

Modified Files:
	DABase.py 
Log Message:
remove unimplemented and broken cruft.


=== Products/DCOracle2/DABase.py 1.6 => 1.7 ===
--- Products/DCOracle2/DABase.py:1.6	Mon Nov  3 08:56:42 2003
+++ Products/DCOracle2/DABase.py	Mon Nov  3 09:08:25 2003
@@ -107,50 +107,23 @@
     info=None
         
     def tpValues(self):
-        #if hasattr(self, '_v_tpValues'): return self._v_tpValues
         r=[]
-        # self._v_tables=tables=TableBrowserCollection()
-        #tables=tables.__dict__
-        c=self._v_database_connection
-        try:
+        if hasattr(self,'_v_database_connection'):
+            c=self._v_database_connection
             for d in c.tables(rdb=0):
+                name=d['TABLE_NAME']
+                b=TableBrowser()
+                b.__name__=name
+                b._d=d
+                b._c=c
                 try:
-                    name=d['TABLE_NAME']
-                    b=TableBrowser()
-                    b.__name__=name
-                    b._d=d
-                    b._c=c
-                    # b._columns=c.columns(name)
-                    try: b.icon=table_icons[d['TABLE_TYPE']]
-                    except: pass
-                    r.append(b)
-                    # tables[name]=b
-                except:
-                    # print d['TABLE_NAME'], sys.exc_type, sys.exc_value
+                    b.icon=table_icons[d['TABLE_TYPE']]
+                except KeyError:
+                    # might not be there
                     pass
-
-        finally: pass #print sys.exc_type, sys.exc_value
-        #self._v_tpValues=r
+                r.append(b)
         return r
 
-    def __getitem__(self, name):
-        if name=='tableNamed':
-            if not hasattr(self, '_v_tables'): self.tpValues()
-            return self._v_tables.__of__(self)
-        raise KeyError, name
-
-    def manage_wizard(self, tables):
-        " "
-
-    def manage_join(self, tables, select_cols, join_cols, REQUEST=None):
-        """Create an SQL join"""
-
-    def manage_insert(self, table, cols, REQUEST=None):
-        """Create an SQL insert"""
-
-    def manage_update(self, table, keys, cols, REQUEST=None):
-        """Create an SQL update"""
-
     def ZDCO2DEBUG(self, REQUEST=None):
         """Print DCOracle 2 debugging information"""
         import DCOracle2
@@ -161,9 +134,6 @@
         """Print Oracle Version Table"""
         import DCOracle2
         return self._v_database_connection.db.Version().items()
-
-class TableBrowserCollection(Acquisition.Implicit):
-    "Helper class for accessing tables via URLs"
 
 class Browser(Base):
     def __getattr__(self, name):




More information about the Zope-Checkins mailing list