fixed problem with missing wiki_media.filename
This commit is contained in:
@@ -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
@@ -4774,7 +4774,8 @@ class Wiki(object):
|
|||||||
db = auth.db
|
db = auth.db
|
||||||
page = db.wiki_page(slug=slug)
|
page = db.wiki_page(slug=slug)
|
||||||
if not (page and self.can_edit(page)): return self.not_authorized(page)
|
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' % \
|
SPAN('@////%i/%s.%s' % \
|
||||||
(id,IS_SLUG.urlify(row.title.split('.')[0]),
|
(id,IS_SLUG.urlify(row.title.split('.')[0]),
|
||||||
row.filename.split('.')[-1]))
|
row.filename.split('.')[-1]))
|
||||||
|
|||||||
Reference in New Issue
Block a user