fixed issue 1152, gae sql varchar limit, and fixed typo in fpdf
This commit is contained in:
@@ -28,7 +28,7 @@ class HTML2FPDF(HTMLParser):
|
||||
|
||||
def __init__(self, pdf, image_map = None):
|
||||
HTMLParser.__init__(self)
|
||||
self.image_map = self.image_map or lambda src: src
|
||||
self.image_map = image_map or (lambda src: src)
|
||||
self.style = {}
|
||||
self.pre = False
|
||||
self.href = ''
|
||||
|
||||
+1
-1
@@ -3970,7 +3970,7 @@ class DatabaseStoredFile:
|
||||
self.filename = filename
|
||||
self.mode = mode
|
||||
if not self.web2py_filesystem:
|
||||
self.db.executesql("CREATE TABLE IF NOT EXISTS web2py_filesystem (path VARCHAR(512), content LONGTEXT, PRIMARY KEY(path) ) ENGINE=InnoDB;")
|
||||
self.db.executesql("CREATE TABLE IF NOT EXISTS web2py_filesystem (path VARCHAR(255), content LONGTEXT, PRIMARY KEY(path) ) ENGINE=InnoDB;")
|
||||
DatabaseStoredFile.web2py_filesystem = True
|
||||
self.p=0
|
||||
self.data = ''
|
||||
|
||||
Reference in New Issue
Block a user