From: Tony Mack Date: Fri, 11 Dec 2009 00:11:27 +0000 (+0000) Subject: added quote_string method() X-Git-Tag: sfa-0.9-7~152 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ad8bc75351cb4074ee43f0fc9e069ba5556fd943;p=sfa.git added quote_string method() --- diff --git a/sfa/util/genitable.py b/sfa/util/genitable.py index 32aa7199..19209695 100644 --- 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() + def quote_string(self, value): + return str(self.quote(value)) + def quote(self, value): """ Returns quoted version of the specified value.