Here's where I have put the 2 extra lines: at the end of the method:
# Inform all the plugins that a request has been made for the
current
# visit. This gives plugins the opportunity to track click-
path or
# retrieve the visitor's identity.
try:
for plugin in _plugins:
plugin.record_request( visit )
except cherrypy.InternalRedirect, e:
# Can't allow an InternalRedirect here because CherryPy is
dumb,
# instead change cherrypy.request.object_path to the url
desired.
cherrypy.request.object_path= e.path
for k,v in cherrypy.request.params.iteritems():
cherrypy.request.params[k]=v.encode('utf-8')
By the way In my case I'm not decorating a method by using
@identity.require(identity.not_anonymous()) but using
require = identity.in_group("mygroup") at the start of a
SecureResource controller class.But I did have te same kind of error
before modifying turbogears\visit\api.py
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---