Noufal wrote: > I'm working on TG app that has an Adobe flex frontend in one of the > pages. It has a facility to upload a file. This works fine when the > method that receives the uploaded file doesn't have an @identity > decorator applied to it. > However, when the @identity decorator is applied to the method, it > crashes with this message > > TypeError: not indexable > Error location in template file '/home/foo/Chimera/chimera/templates/ > login.kid' > between line 112, column 12 and line 113, column 12: > <div py:for="name,values in original_parameters.items()" > py:str ...
I suspect that this is the same problem as you get with Flash-based uploaders, which do not transfer the sesssion cookie and so the identity framework can not determine the current identity and redirects the request fromm the flex uploader to the login page, which does not handle file fields correctly and causes the error you get. Specifically as a workaround for this problem, we introduced the possibility to get the session key from a request parameter in TG 1.0,6. For more information see here: http://docs.turbogears.org/1.0/UsingVisitFramework#tracking-visits-with-request-parameters Here's the ticket for the implementation of this issue, which also links to the mailing list discussion about the Falsh Uploader gotchas. http://trac.turbogears.org/ticket/1927 Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

