Hello!

I am battling with File find widget to get the name of the selected  
file. As stated in the answer from 4th of July 2007 
(http://groups.google.am/group/turbogears/browse_thread/thread/579c58cb3740a092 
) I should define mymethod to get the file name.

Is the proper way:
1. creating class readFile(WidgetsList) with FindFile widget in  
controllers.py
2. defining mymethod to get file name?


I've tried to use FindFile widget directly in the kid template but it  
displays only widgets properties.
Here is what I've created in the controllers.py:

class Root(controllers.RootController):
        ffield=FileField(name="podatek")

        @expose(template=".templates.welcome")
        def index(self):
                return dict(ffieldw=self.ffield)

        @expose(template=".templates.prikaz")
        def prikazi(self,ffield):
                return dict(fname=ffield)


Boštjan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to