Glad it's working for you now.

I'm afraid I did lead you astray a bit in one area: the upload_form
widget.  Looking back, how you had it originally (creating it in
__init__ and attaching it to self) was ok.  For some reason I thought
the widget fields were specific to the user, but that's not correct.
It's not wrong the way it is now, but it could be more effecient (as
is, the widget is created on each request, which isn't really
necessary).  Another pattern you see in cases like this (without
dynamic widget fields) is the widget created outside of the controller
(in the global namespace) instead of in __init__.

Anyways, just wanted to let you know there was a more effecient way, so
when you come back to that code later you won't be wondering why the
heck I told you to do it that way. :-)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to