[Zope] Re-posted - How to delete users in Membership product with Persistent User Source
Hi, Has anyone been able to use the delUserForm to delete users added within a PersistentUserSource in the PortalMembershipSystem object ? I am not sure if this piece of code in delUserForm preceding the HTML form snippet does the right job: dtml-let idList="[]" dtml-in "UserSource.getPersistentItemIDs()" sort dtml-call "idList.append(getItem(_['sequence-item']))" /dtml-in dtml-in idList sort=Importance reverse ... I can view the users but when I click on the form button to delete some users, I get I get Error Type: NotFound Error Value: None In the view I get, the user url points to .../acl_users/userid (for example /acl_users/david) and cannot be used to check the user object. Thanks for any usefull answer. Regards, Kamon __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source
Kamon Ayeva wrote: Hi, Has anyone been able to use the delUserForm to delete users added within a PersistentUserSource in the PortalMembershipSystem object ? Yes, quite frequently. I am not sure if this piece of code in delUserForm preceding the HTML form snippet does the right job: dtml-let idList="[]" dtml-in "UserSource.getPersistentItemIDs()" sort dtml-call "idList.append(getItem(_['sequence-item']))" /dtml-in dtml-in idList sort=Importance reverse ... I can view the users but when I click on the form button to delete some users, I get I get Error Type: NotFound Error Value: None What platform? What Zope version? What version of each related/required product? Is SiteAcces Installed? If So, what version? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source
The delUserForm calls 'deleteInstances' to do the job, yet 'deleteInstances' is not provided with the product, instead 'manage_deleteUsers' is. When I change 'deleteInstances' to 'manage_deleteUsers' in the code of delUserForm, things work out. Bill, it's probably a bug :) cheers Dirksen --- Bill Anderson [EMAIL PROTECTED] wrote: Kamon Ayeva wrote: Hi, Has anyone been able to use the delUserForm to delete users added within a PersistentUserSource in the PortalMembershipSystem object ? Yes, quite frequently. I am not sure if this piece of code in delUserForm preceding the HTML form snippet does the right job: dtml-let idList="[]" dtml-in "UserSource.getPersistentItemIDs()" sort dtml-call "idList.append(getItem(_['sequence-item']))" /dtml-in dtml-in idList sort=Importance reverse ... I can view the users but when I click on the form button to delete some users, I get I get Error Type: NotFound Error Value: None What platform? What Zope version? What version of each related/required product? Is SiteAcces Installed? If So, what version? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )