File Library - uploading file interface

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

File Library - uploading file interface

cbeler
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
Reply | Threaded
Open this post in threaded view
|

Re: File Library - uploading file interface

Lukas Renggli
> 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
Reply | Threaded
Open this post in threaded view
|

Re: File Library - uploading file interface

cbeler


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
Reply | Threaded
Open this post in threaded view
|

Re: File Library - uploading file interface

Damien Cassou-3
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
Reply | Threaded
Open this post in threaded view
|

Re: File Library - uploading file interface

cbeler
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
Reply | Threaded
Open this post in threaded view
|

Re: File Library - uploading file interface

Philippe Marschall
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