added quote_string method()
authorTony Mack <tmack@cs.princeton.edu>
Fri, 11 Dec 2009 00:11:27 +0000 (00:11 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 11 Dec 2009 00:11:27 +0000 (00:11 +0000)
sfa/util/genitable.py

index 32aa719..1920969 100644 (file)
@@ -124,6 +124,9 @@ class GeniTable(list):
         self.db.do(query_str, db_fields)
         self.db.commit()
 
         self.db.do(query_str, db_fields)
         self.db.commit()
 
+    def quote_string(self, value):
+        return str(self.quote(value))
+
     def quote(self, value):
         """
         Returns quoted version of the specified value.
     def quote(self, value):
         """
         Returns quoted version of the specified value.