[Seaside] File Library - uploading file interface
Philippe Marschall
philippe.marschall at gmail.com
Thu Mar 1 21:06:57 UTC 2007
2007/2/28, Cédrick Béler <cbeler at enit.fr>:
> 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)...
Yes, not that we have #selectorsToInclude there is no reason anymore
to use script or style libraries.
> Do all files (.js and .css comprised) have to be subclass of WAFileLibrary ?
I don't quite understand that question. You can put any combination of
files of any kind into a file library. (a file library is per
definition a direct subclass of WAFileLibrary)
Cheers
Philippe
> Thanks
>
> Cédrick
>
>
>
> >
> >
> > 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 ;)
> >
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the Seaside
mailing list