In trying out turbogears on a linux platform, I've been trying to use
the file browser widget to upload directory paths (not the files
themselves), but from examining the info passed via the iPython dbg()
mechanism, even tho it's listed in the file browser widget correctly
(say "/home/guest/docs"), it gets passed and parsed as:
FieldStorage('BACKUP1', 'docs', '')
ie, the leading directory path is missing. First: what provides
"FieldStorage"? The cgi module, I'm guessing? Second, how do you
unpack it into a dict or something usable? Third, is there a
mechanism to set the widgets.FileField browser widget to pick up the
fully qualified path name? I've been browsing the widgets.FileField
class, but I can't seem to get the syntax.
Or, more likely, if I'm using the wrong approach, please feel free to
point me to TFM I should R.
I think I could grab this info out of a simple text input widget, but
I'd like to force the client to use the file browser to cut down on
typing errors. (the point is to select a number of directories to back
up, and on Windows, with spaces, etc, this will be a major issue).
thanks!
Harry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---