fixed problem with missing wiki_media.filename
This commit is contained in:
1 parent
8540b1b113
commit
e499c1d5a4
2 files changed
+2
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-09-17 11:43:22) stable
|
Version 2.0.9 (2012-09-17 11:47:03) stable
|
||||||
@@ -4775,6 +4775,7 @@ class Wiki(object):
|
|||||||
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