I have added some IMO pretty useful functionality to form.py, the  
form.File class, namely:

file_url=[url]  :  the url passed here will be put in a hyperlink  
under the file-selection box, so you can click on it and see the file  
associated with the file upload box
file_name=[name]   :   if a file_url is passed, this name will be used  
as the name in the hyperlink
remove_box=[bool]   :  if true, and if a file_url was also passed, it  
will make a checkbox appear under the hyperlink, that is meant as a  
convenient hook to delete the associated file

So to summarize, if you use the file input class to handle permanent  
files associated in a db etc, this functionality saves you a lot of  
time and provides a nice clean way for you to handle viewing and  
removing said file.
Djangos site admin has support for showing the link to the file, but  
no support for the remove_box.

Can the project owners please let me know if they'd be interested in a  
patch for this functionality?

Alec

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to