Re: [Zope] ZClass with images

2000-12-11 Thread Aleksander Salwa

On Sat, 9 Dec 2000, Diego Rodrigo Neufert wrote:

> Anyone know how to put some images in  ZClass? I have done things like 
> putting ZClass with base class OFS:Image but with it I can only assing one 
> Image do the object... I need to assign two or tree images do the object.

Try to subclass OFS:Folder. In that folder you can put as many images as
you want.
I have 1 ZClass deriving from both Folder and DTMLMethod and it works
fine. (I had some trouble with setting view tabs properly, but finally I
solved it.)

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] ZClass with images

2000-12-10 Thread Michael Bernstein

Diego Rodrigo Neufert wrote:
> 
> Anyone know how to put some images in  ZClass? I have done things like
> putting ZClass with base class OFS:Image but with it I can only assing one
> Image do the object... I need to assign two or tree images do the object.

I've been thinking about something similar myself. I'd like
to create a ZClass/ZPatterns version of the Photo and
ZPhotoAlbum products (or at least a reasonable equivalent).

Specifically, I'd like to incorporate the functionality
that, upon instantiation of the object, creates the
neccesary sized versions and stores them. I'd like to use
ZPatterns to be able to switch the storage between the ZODB,
the file-system, or BLOBs in an RDBMS without altering the
rest of the application.

Any progress that you make would be very helpful to me.

Michael Bernstein.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )