[Zope-dev] CatalogAware question

2001-12-13 Thread Dirk Datzert
Hi, I want to make ZNavigator CatalogAware and thought that I only had to put CatalogAware as the first class-parent like this: def ZNavigator ( CatalogAware , ... ): ... def NavItem ( CatalogAware , ...): ... Am I right or wrong ? I want to catalog every property into

[Zope-dev] CatalogAware Products and PropertyManager

2001-12-13 Thread Dirk Datzert
Hi, has anybody written a some hotfix-like product which makes the PropertyManager more CatalogAware ? I knew now that adding, changing, deleting properties of a CatalogAware object will not reindex the object, but I want to say that this would be a central point of interest of me. If

Re: [Zope-dev] CatalogAware Products and PropertyManager

2001-12-13 Thread Matt Hamilton
On Thu, 13 Dec 2001, Dirk Datzert wrote: Hi, has anybody written a some hotfix-like product which makes the PropertyManager more CatalogAware ? I knew now that adding, changing, deleting properties of a CatalogAware object will not reindex the object, but I want to say that this would be

[Zope-dev] CatalogAware

2001-06-26 Thread Toby Dickenson
On Tue, 26 Jun 2001 09:31:02 -0400, Chris McDonough [EMAIL PROTECTED] wrote: Right.. if you don't use CatalogAware, however, and don't unindex before reindexing an object, you should see a huge bloat savings, because the only things which are supposed to be updated then are indexes and metadata

Re: [Zope-dev] CatalogAware

2001-01-08 Thread Chris Withers
Michael Bernstein wrote: that's definitely a 'bad' thing :-( Why is that bad? A custom object management UI ('Postings' and 'Moderation' tabs) seems appropriate for Squishdot. I wouldn't want to manage postings from the standard management interface. Hmmm... it does mean you can't cut,

Re: [Zope-dev] CatalogAware

2001-01-08 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: No, I'm creating two different applications, an image archive and a book catalog. Both need to handle large numbers of items. The standard management interface does not scale to the number of objects involved from a usability

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Your example is correct as far as it goes, but as I understand it, you are not really specifying the default catalog per se, but the default catalog *name*. snip This is true, and one of the reasons why I (and maybe only I ;-) consider CatalogAware somewhat less

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Aha! You're saying that catalog_object and uncatalog_object are methods of the catalog, so when the catalog contains the objects directly, it's all that's neccessary, correct? Yes :-) uncatalog_object to be called on it (I'm not sure what method reindex_object

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Now I'm wondering how to duplicate the behaviour of Postings being contained within Squishdot, but not appearing in the 'Contents' tab. that's definitely a 'bad' thing :-( Why duplicate anyway? You writing a replacement? ;-) cheers, Chris

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Christopher Petrilli
On 1/5/01 7:16 AM, "Chris Withers" [EMAIL PROTECTED] wrote: uncatalog_object to be called on it (I'm not sure what method reindex_object causes to be called). unindex_object followed by index_object. I'm not convinced it's necessary, as no-one has said that uncataloging is a necessary step

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: Now I'm wondering how to duplicate the behaviour of Postings being contained within Squishdot, but not appearing in the 'Contents' tab. that's definitely a 'bad' thing :-( Why is that bad? A custom object management UI ('Postings' and

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Erik Enge
[Chris Withers] | The point behind CatalogAware was, as I understand it, that the object | inheriting from CatalogAware wouldn't have to worry about managing its | own indexing. Sadly, that didn't work out... I haven't been following this discussion, so my question may be redundant, and if it

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Chris Withers
Erik Enge wrote: Are you saying that, as a general rule, inheriting from CatalogAware and using index_object, reindex_object and unindex_object does not work? It probably does, but if you're a catalog yourself anyway, as Squishdot is, it just more overhead rather than calling your own

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Michael Bernstein
Chris Withers wrote: Erik Enge wrote: Are you saying that, as a general rule, inheriting from CatalogAware and using index_object, reindex_object and unindex_object does not work? It probably does, but if you're a catalog yourself anyway, as Squishdot is, it just more overhead

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Erik Enge
[Michael Bernstein] | When called, they find the nearest (acquisition-wise) ZCatalog | (named Catalog by default), I think you can specify the ZCatalog it should index itself in by putting the default_catalog attribute in your class. I think, that this object (in pseudo) would index itself

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Michael Bernstein
Erik Enge wrote: [Michael Bernstein] | When called, they find the nearest (acquisition-wise) ZCatalog | (named Catalog by default), I think you can specify the ZCatalog it should index itself in by putting the default_catalog attribute in your class. Your example is correct as far as

Re: [Zope-dev] CatalogAware

2001-01-03 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: If you are writing your own cataloging and uncataloging code, then I think that it could be. G The cataloguing code in Squishdot amounts to about 4 lines, all of which are calls to standard ZCatalog interface methods as

Re: [Zope-dev] CatalogAware

2001-01-03 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: I guess it's just a matter of only reinventing the wheels you have to, and writing less code as a result. I'm pretty sure Squishdot is re-inventing no wheels ;-) If you are writing your own cataloging and uncataloging code, then I think

Re: [Zope-dev] CatalogAware

2001-01-02 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: Hmm. Aren't postings CatalogAware? If they're not, shouldn't they be? Why? ;-) Squishdot manages the cataloging, re-cataloging and un-cataloging of its own postings. I don't think CatalogAware would make that process any simpler or

[Zope-dev] catalogaware dtml document

2000-05-21 Thread Sin Hang Kin
Is it possible (worth?) to make dtml-document catalogue aware by default? Or to allow the creater to decide this behavior by setting a property? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev