Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 19:10, Fred Yankowski wrote: > On Wed, Sep 17, 2003 at 06:25:47PM -0400, Tres Seaver wrote: > > I have wanted to add a binding to the TALES namespace to allow access to > > the "skin object" for some time: the current values in the namespace > > are: > > > > 'content' --

Re: [Zope-dev] Will restrictedTraverse() load every obj into memory?

2003-09-17 Thread Andy McKay
Yes, thats what the catalog is for. [EMAIL PROTECTED] wrote: Hello, I have a function that returns the object when given a path. def path2Object(path): obj = context,restrictedTraverse(path) return obj My concern is whether restrictedTraverse(path) will load into memory every object it t

[Zope-dev] Will restrictedTraverse() load every obj into memory?

2003-09-17 Thread zhimin
Hello, I have a function that returns the object when given a path. def path2Object(path): obj = context,restrictedTraverse(path) return obj My concern is whether restrictedTraverse(path) will load into memory every object it traverses through and thus increase memory usage, especially i

[Zope-dev] More Beginner doubts

2003-09-17 Thread Emiliano Marmonti
Thanks Andrew, I'll try it. Now I'm testing inside Zope and everything looks well, except for: self.cat.addIndex('id','FieldIndex' ) self.cat.addIndex('name' ,'FieldIndex' ) self.cat.addIndex('observaciones','FieldIndex' ) get_transaction().commi

Re: [Zope-dev] Beginner doubts

2003-09-17 Thread Andrew Bennetts
On Wed, Sep 17, 2003 at 04:07:01PM -0300, Emiliano Marmonti wrote: [...] > File "C:\Archivos de programa\Zope\lib\python\App\Product.py", line > 44, in ? > from Factory import Factory > ImportError: cannot import name Factory > > -- end of python > > My problem is that if I cou

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Fred Yankowski
On Wed, Sep 17, 2003 at 06:25:47PM -0400, Tres Seaver wrote: > I have wanted to add a binding to the TALES namespace to allow access to > the "skin object" for some time: the current values in the namespace > are: > > 'content' -- the skin object's aq_parent That definition matches the reali

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 17:38, Fred Yankowski wrote: > My original question concerned a detail of how the CMF Caching Policy > Manager interprets the 'Predicate' of a caching policy: it seems to > interpret any 'content' object in that predicate as a reference to the > *parent* object of the object

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Fred Yankowski
On Wed, Sep 17, 2003 at 10:03:15AM -0400, Tres Seaver wrote: > On Wed, 2003-09-17 at 07:26, Chris Withers wrote: > > Fred Yankowski wrote: > > >>> > > >>> python: content.meta_type == 'Filesystem Image' > > >> > > >>Do you have any content with this metatype? > > > > > > There is nothing in the po

[Zope-dev] Beginner doubts

2003-09-17 Thread Emiliano Marmonti
Hello all I'm newbie with Zope, ZODB and so on. First of all I have choiced Zope as application server and ZODB because I have to implement a bibliographical project that handles a lot of hierarchichal data, with need and will add in few months all the workflow related to send documents to a revie

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 07:26, Chris Withers wrote: > Fred Yankowski wrote: > >>> > >>> python: content.meta_type == 'Filesystem Image' > >> > >>Do you have any content with this metatype? > > > > There is nothing in the portal_catalog with that meta_type. But there > > are lots of objects with t

Re: [Zope-dev] Etag support in page templates

2003-09-17 Thread Chris Withers
Jamie Heilman wrote: > Solution A) Solution B) The correct answer, of course, is to do both... Sorry, but not everyone fronts Zope with a proxy (yes, of coruse they should Jamie, but you have to understand not everyone is qutie as godlike as wants to get going as quickly as possible so they ca

Re: [Zope-dev] Etag support in page templates

2003-09-17 Thread Chris Withers
Jens Vagelpohl wrote: +1 Along with that the "MS Author Via" header garbage should at least be governed by some configuration flag. + as many things as I'm allowed ;-) Then I can finally stop patching production servers that serve up MS office files for download... Chris _

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Chris Withers
Fred Yankowski wrote: python: content.meta_type == 'Filesystem Image' Do you have any content with this metatype? There is nothing in the portal_catalog with that meta_type. But there are lots of objects with that type: most everything in portal_skins/plone_images/, for example. Oh, I getcha now

[Zope-dev] Re: Still i18n:attributes DeprecationWarning on Zope head!

2003-09-17 Thread Chris Withers
Godefroid Chapelle wrote: Sidnei and I have corrected branch 2.7. Currently, DeprecationWarnings are meant to stay on HEAD. Indeed, this is a good thing... Those Deprecation Warnings are emitted from TAL/TALGenerator.py. Feel free to replace the message by something more explicit to you. I know