Hi
Now that FileLibrary is included in the main seaside package, I didn't find the seaside interface that allows to upload directly files in a given library 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 ? Thanks Cédrick _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> 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. On the class side of WAFileLibrary there are also some convenience methods to add files programmatically. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 ;) Thanks Cédrick _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Cédrick, can you enhance the Seaside-FAQ with this info please ?
2007/2/28, Cédrick Béler <[hidden email]>: > 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 ;) > > Thanks > > Cédrick > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Damien Cassou _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by cbeler
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 ? 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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/2/28, Cédrick Béler <[hidden email]>:
> 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 > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |