[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-dev
Subject: Re: [Zope-dev] How to build indexes in the MemberCatalog of Membership Component?
From: Steve Alexander <steve () cat-box ! net>
Date: 2001-02-27 8:40:48
[Download RAW message or body]
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
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic