Not sure why that flash was commented out...

This commit is contained in:
Ricky Zhou (周家杰) 2008-03-12 08:53:47 -04:00
parent aeeb3c638d
commit d4b8fb66da

View file

@ -281,8 +281,8 @@ class Group(controllers.Controller):
group = Groups.by_name(groupname)
if not canApplyGroup(person, group, target):
# turbogears.flash(_('%(user)s could not apply to %(group)s.') % \
# {'user': target.username, 'group': group.name })
turbogears.flash(_('%(user)s can not apply to %(group)s.') % \
{'user': target.username, 'group': group.name })
turbogears.redirect('/group/view/%s' % group.name)
return dict()
else: