It is impossible to delete a member using the UI provided by the current Membership product (0.7.8). To resolve this problem, I had to make a number of changes to the delUserForm dtml method. Since not being able to delete users seriously compromises the usefulness of this product, I am posting this bug report to the Zope list. I'd be curious to hear what kind of problems others have run into with Membership. 1. change: <dtml-in "defaultRack.getPersistentItemIDs()" sort> to: <dtml-in "UserSource.getPersistentItemIDs()" sort> 2. change: <form action="deleteInstances" method="post"> to: <form action="manage_deleteUsers" method="post"> 3. change: <input type=submit name="manage_deleteUsers:method" value="Delete selected ToDos"> to: <input type=submit value="Delete selected Users"> Here is the original delUserForm method: ======================================================================== <dtml-var standard_html_header> <dtml-if "AUTHENTICATED_USER.hasRole(this(),['Manager'])"> <dtml-let idList="[]"> <dtml-in "defaultRack.getPersistentItemIDs()" sort> <dtml-call "idList.append(getItem(_['sequence-item']))"> </dtml-in> <dtml-in idList sort=Importance reverse> <dtml-if sequence-start> <form action="deleteInstances" method="post"> <table cellspacing=0 cellpadding=3 border=1> <tr> <th>Name</th> <th>Select</th> </tr> </dtml-if> <tr <dtml-if sequence-even>BGCOLOR="#CCFFCC"</dtml-if>> <td><a href="<dtml-var id url_quote>"><dtml-var title_or_id></a></td> <td><input type=checkbox name="ids:list" value="&dtml-id;"></td> </tr> <dtml-if sequence-end> <tr><td colspan=6 align=center><input type=submit name="manage_deleteUsers:method" value="Delete selected ToDos"></td></tr> </form> </table> </dtml-if> <dtml-else> No ToDO Items present. <br> </dtml-in> </p> </dtml-let> <dtml-else> <h2> Access Denied </h2> <p> You do not have access to this function.</p> </dtml-if permission> <dtml-var standard_html_footer> -- Ed Goppelt
On 12 Feb 2001 21:14:59 -0500, Edmund Goppelt wrote:
It is impossible to delete a member using the UI provided by the current Membership product (0.7.8).
Ed, this has already been fixed in the development version, and was reported to zope-dev some time ago. Just FYI, that is where much of the discussion regarding the ZMC takes place. Bill Anderson ZMC: http://zmc.immortalitysystems.net
participants (2)
-
Bill Anderson -
Edmund Goppelt