> -----Original Message-----
> From: Dylan Jay [mailto:[email protected]]
> Sent: Tuesday, 16 December 2008 12:31 PM
> To: [email protected]
> Subject: reindex after updating member properties
> 
> Hi,
> 
> I'm updating user properties as follows
>         membershipTool = getToolByName(self.context, 'portal_membership')
>         member = membershipTool.getMemberById(userId)
>         if newprops:
>             member.setMemberProperties(newprops)
> 
> The properties are being updated and indexed in the membrane catalog but
> not
> reindexed as normal content in portal_catalog. Anyone know if this is a
> bug
> or how I can workaround it?

I've managed a workaround with

            mbmember = membraneTool.getUserAuthProvider(login)
            if mbmember:
                mbmember.reindexObject()

but shouldn't membrane itself call reindexObject in its default properties
adaptor? (It doesn't at least in the version I'm using).

Also my workaround doesn't seem to always find the object but that might be
just an issue with my install.





--
Archive: 
http://www.openplans.org/projects/remember/lists/remember/archive/2008/12/1229396495325
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to