fixed problem with missing wiki_media.filename

This commit is contained in:
mdipierro
2012-09-17 11:47:07 -05:00
parent c83bdbd14e
commit 642a9c5c94
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-17 11:43:22) stable
Version 2.0.9 (2012-09-17 11:47:03) stable
+2 -1
View File
@@ -4774,7 +4774,8 @@ class Wiki(object):
db = auth.db
page = db.wiki_page(slug=slug)
if not (page and self.can_edit(page)): return self.not_authorized(page)
self.auth.db.wiki_media.id.represent = lambda id,row:\
self.auth.db.wiki_media.id.represent = lambda id,row: \
id if not row.filename else \
SPAN('@////%i/%s.%s' % \
(id,IS_SLUG.urlify(row.title.split('.')[0]),
row.filename.split('.')[-1]))