git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38f7a8a
)
added quote_string method()
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 11 Dec 2009 00:11:27 +0000
(
00:11
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 11 Dec 2009 00:11:27 +0000
(
00:11
+0000)
sfa/util/genitable.py
patch
|
blob
|
history
diff --git
a/sfa/util/genitable.py
b/sfa/util/genitable.py
index
32aa719
..
1920969
100644
(file)
--- a/
sfa/util/genitable.py
+++ b/
sfa/util/genitable.py
@@
-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.