[Zope-dev] How to build indexes in the MemberCatalog of Membership Component?
Steve Alexander
steve@cat-box.net
Tue, 27 Feb 2001 08:40:48 +0000
Bill Anderson wrote:
>
> I use, and recommend the use of a ZPattern trigger. You can get it by
> downloading the DataSkins product. This way, whenever a member is
> modified, it automatially updates/creates it's entry in the catalog.
> Just be sure to specify MemberCatalog :)
To expand on what Bill said:
Stick this in a SkinScript method in your Membership folder, on the Data Plug-Ins tab of err... Users perhaps? User Sources?
You should be able to work it out. (I don't have a live LoginManager to hand right now.)
WHEN OBJECT ADDED CALL
MemberCatalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/'))
WHEN OBJECT DELETED CALL MemberCatalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/'))
WHEN OBJECT CHANGED CALL MemberCatalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/')),
MemberCatalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/'))
--
Steve Alexander
Software Engineer
Cat-Box limited