Expose /group/view in json

This commit is contained in:
Ricky Zhou (周家杰) 2008-03-13 21:28:39 -04:00
parent b773e22cf4
commit 6cf5c25e1e

View file

@ -120,7 +120,7 @@ class Group(controllers.Controller):
@identity.require(turbogears.identity.not_anonymous())
@validate(validators=GroupView())
@error_handler(error)
@expose(template="fas.templates.group.view")
@expose(template="fas.templates.group.view", allow_json=True)
def view(self, groupname):
'''View group'''
username = turbogears.identity.current.user_name