returning more info from auth.wiki, thanks Paolo

This commit is contained in:
mdipierro
2013-01-30 12:48:08 -06:00
parent 0328ed49b9
commit ef06262393
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.01.30.12.29.40
Version 2.4.1-alpha.2+timestamp.2013.01.30.12.47.24
+6 -1
View File
@@ -5092,7 +5092,12 @@ class Wiki(object):
url = URL(args=('_edit', slug))
return dict(content=A('Create page "%s"' % slug, _href=url, _class="btn"))
else:
return dict(content=XML(self.fix_hostname(page.html)))
return dict(title=page.title,
slug=page.slug,
content=XML(self.fix_hostname(page.html)),
tags=page.tags,
created_on=page.created_on,
modified_on=page.modified_on)
elif current.request.extension == 'load':
return self.fix_hostname(page.html) if page else ''
else: