Hi

I'm writing a plugin to do a drag and drop upload of a series of files. It's a plugin because I'll think it can be reused in many other context than the one i'm developing now.

I'm following http://web2py.com/books/default/chapter/29/12 and I need to load some css and javascript for my plugin so i created the /view/plugin_plugin_file_upload/post.load /with :

{{
response.files.append(URL('static', 
'plugin_file_upload/css/bootstrap/image/gallery.min.css'))
response.files.append(URL('static', 
'plugin_file_upload/css/jquery.fileupload-ui.css'))
response.files.append(URL('static', 
'plugin_file_upload/css/jquery.fileupload-ui-noscript.css'))
}}
{{=form}}

but all the css are not loaded at all. If i put them in the page in which the plugin is used then they will be loaded but this breaks the fact that those css belongs to the plugin and not to the container of the plugin.

How can I address this issue ?

--
Vincenzo Ampolo
http://goshawknest.wordpress.com/
http://vincenzo-ampolo.net/

--



Reply via email to