possibly fixed a problem with SQLCustomType, thanks Daniel

This commit is contained in:
Massimo Di Pierro
2011-12-08 08:36:03 -06:00
parent 902b5947a7
commit bb437dd2e3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-12-06 21:15:07) dev
Version 1.99.3 (2011-12-08 08:35:52) dev
+1 -1
View File
@@ -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
View File
@@ -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