possibly fixed a problem with SQLCustomType, thanks Daniel
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.3 (2011-12-06 21:15:07) dev
|
||||
Version 1.99.3 (2011-12-08 08:35:52) dev
|
||||
|
||||
@@ -242,7 +242,7 @@ regex_code = re.compile('('+META+')|(``(?P<t>.*?)``(:(?P<c>\w+))?)',re.S)
|
||||
regex_maps = [
|
||||
(re.compile('[ \t\r]+\n'),'\n'),
|
||||
(re.compile('[ \t\r]+\n'),'\n'),
|
||||
(re.compile('\*\*(?P<t>[^\s\*]+( +[^\s\*]+)*)\*\*'),'<b>\g<t></b>'),
|
||||
(re.compile('\*\*(?P<t>[^\s\*]+( +[^\s\*]+)*)\*\*'),'<strong>\g<t></strong>'),
|
||||
(re.compile("''(?P<t>[^\s']+( +[^\s']+)*)''"),'<i>\g<t></i>'),
|
||||
(re.compile('^#{6} (?P<t>[^\n]+)',re.M),'\n\n<<h6>\g<t></h6>\n'),
|
||||
(re.compile('^#{5} (?P<t>[^\n]+)',re.M),'\n\n<<h5>\g<t></h5>\n'),
|
||||
|
||||
+2
-2
@@ -5492,8 +5492,8 @@ class SQLCustomType(object):
|
||||
self.validator = validator
|
||||
self._class = _class or type
|
||||
|
||||
def startswith(self, dummy=None):
|
||||
return False
|
||||
def startswith(self, text=None):
|
||||
return self.type.startswith(self,text)
|
||||
|
||||
def __getslice__(self, a=0, b=100):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user