[Grok-dev] Re: absolute url for 'static' ?

Sebastian Ware sebastian at urbantalk.se
Mon Apr 28 04:47:15 EDT 2008

It turns out that this probably should be accomplished by using the  
(newish) Zodb Blob support, which will save blobs on the filesystem  
yet still support transactions etc. I'll try to get my head around it.  
Direct manipulation could obviously leave the files corrupted or at  
least in an inconsistent state.

When it comes to accessing the filesystem, Christian explained another  
way in the "accessing the parts directory" thread. So I guess what we  
need is a "Interacting with the filesystem and handling user uploaded  
files with Zodb Blobs" howto/tutorial. I'll send you what ever I come  
up with and maybe you can help me do some proof reading.

Mvh Sebastian

28 apr 2008 kl. 08.22 skrev Michael Haubenwallner:

> Martijn Faassen schrieb:
>> Sebastian Ware wrote:
>>> 26 apr 2008 kl. 22.10 skrev Martijn Faassen:
>>>> In python code in a view, I think you can just do this:
>>>> self.static['foo.css']()
>>> I can confirm this, and some other useful stuff in case you want  
>>> to to some manipulation of files in the static directory...
>> Just to be clear: by manipulation you mean find more about them,  
>> not actually change their contents or create new ones. I'd really  
>> recommend against doing that.
> I suggest adding all or a few of the patterns Sebastian submitted to  
> the 'static content' section in your Grok_overview.txt[1]
> Thanks,
> Michael
> [1] http://svn.zope.org/*checkout*/grok/trunk/doc/grok_overview.txt
> -- 
> http://www.zope.org/Members/d2m
> http:/planetzope.org
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list