[Seaside] File Library - uploading file interface
cbeler at enit.fr
Wed Feb 28 16:57:24 UTC 2007
Ok, this is also really well explained in the class comment :( :)
Do the subclasses WAScriptLibrary and WAStyleLibrary are obsolete now ?
because, I was trying to add files to this kind of library, and for
them, I had no upload possibility (only view and download)...
Do all files (.js and .css comprised) have to be subclass of WAFileLibrary ?
> Lukas Renggli a écrit :
>>> To add new files, I added a method in the corresponding library ?
>>> I didn't find any convenience method for adding files ? Do they exists
>>> somewhere ?
>> Sure, go to /seaside/config to the 'Dispatcher Editor'. Select
>> 'configure' in of the 'files' entry. There you get a list of all
>> available libraries in your system. Select the one you want to modify
>> and upload files as needed.
> Oh yes... I see now...
> That was because I clicked on Ramon's library (I use his image) and
> the 3 first library don't have the imput field to add a file !
>> On the class side of WAFileLibrary there are also some convenience
>> methods to add files programmatically.
> can't believe I missed that ! must be still asleep ;)
More information about the Seaside