Thanks Martijn and Matt for your ideas!
@Matt: can you explain with more detail the question about
REQUEST.response.write()? If the written content is as long as a file like
prototype is not a very heavy solution?
The contents of the zexp file are only js files and images (static content)
and I'm using Zope2
What about the functionality of the freemind view? What do you think about?
2008/1/11, Matt Hollingsworth <[EMAIL PROTECTED]>:
> This sounds like the same problem I presented earlier. Are you using zope
> 2.x? If so, then it will only take you ~30 minutes to code something that
> makes use of REQUEST.response.write(). That's what I ended up doing; I
> wrote a simple class that would mount a directory on the file system and
> just serve the files that are in that directory. If you make use of
> globals()["__file__"], you can make the class independent of absolute
> If you are using zope 3 (I'm not sure if you can easily get this
> functionality out of five + zope2.x, since this deals with the
> someone else would have to answer that), look at this site:
> Basically, it appears you can just return a file reference and let the
> publisher deal with the rest.
> A filesystem-based solution, as opposed to a ZODB way of doing this sort
> thing, seems to be the best way to go as far as I'm concerned.
> If you are, indeed, using zope2.x, and want to go the response.write()
> look at OFS/Image.py for an example of the serving logic if you want to
> avoid putting everything in memory.
> There may be better ways to do this sort of thing, but at least this is
> way of going about it that worked nicely for me!
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Sent: Friday, January 11, 2008 6:33 AM
> To: Zope user list
> Subject: [Zope] The best way
> Hi, all!
> If you have download the ZSM product you could see I put on it a zexp
> file with prototype and some other js file and a css file plus images
> This was only a prototype solution to bring you the chance to see how
> my ideas are but I think this is not a definitive solution
> Now my question:
> Which is the best zope way to serve this kind of files trying to avoid
> any other product dependence?
> Thanks a lot!
> Mis Cosas
> Zope maillist - Zope@zope.org
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-dev )
Zope Smart Manager
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -