• Remember Mailing List

  • Problem with modifying old users after installing membrane

    from Jim Nelson on Jun 30, 2008 02:46 PM
    After installing membrane on one of our 3.1 sites, we found we can not delete or 
    modify the users added before membrane was installed.
    
    I get the following traceback:
    Traceback (innermost last):
       Module ZPublisher.Publish, line 119, in publish
       Module ZPublisher.mapply, line 88, in mapply
       Module ZPublisher.Publish, line 42, in call_object
       Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
       Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
       Module Products.CMFFormController.ControllerBase, line 231, in getNext
       Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
       Module ZPublisher.mapply, line 88, in mapply
       Module ZPublisher.Publish, line 42, in call_object
       Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
       Module Products.CMFFormController.Script, line 145, in __call__
       Module Products.CMFCore.FSPythonScript, line 140, in __call__
       Module Shared.DC.Scripts.Bindings, line 313, in __call__
       Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
       Module Products.CMFCore.FSPythonScript, line 196, in _exec
       Module None, line 39, in prefs_user_manage
        - <FSControllerPythonScript at /osana/main/prefs_user_manage>
        - Line 39
       Module <string>, line 4, in _facade
       Module plone.protect.utils, line 43, in _curried
       Module <string>, line 4, in _facade
       Module AccessControl.requestmethod, line 64, in _curried
       Module Products.CMFCore.MembershipTool, line 523, in deleteMembers
       Module <string>, line 6, in _facade
       Module plone.protect.utils, line 43, in _curried
       Module <string>, line 6, in _facade
       Module AccessControl.requestmethod, line 64, in _curried
       Module Products.PlonePAS.pas, line 62, in _doDelUsers
       Module Products.PlonePAS.pas, line 80, in _doDelUser
       Module Products.membrane.plugins.usermanager, line 295, in doDeleteUser
    RuntimeError: No adapter found for user: lori
    
    Thread Outline:
  • Re: Problem with modifying old users after installing membrane

    from ra on Jun 30, 2008 04:27 PM
    Jim Nelson wrote:
    > After installing membrane on one of our 3.1 sites, we found we can not 
    > delete or modify the users added before membrane was installed.
    
    what version of membrane are you using?  looking at membrane trunk, my line 
    295 doesn't match what the traceback implies it should be.
    
    anyway, looking at the code, it does seem to be incorrect.  seems as though 
    the plug-in needs to be more forgiving.  you should be able to work around it 
    by changing the doDeleteUser method to raise a KeyError (which PAS defines as 
    a swallowable exception) instead of a RuntimeError.  i'll work on getting this 
    into the trunk soon.
    
    -r
    
    > I get the following traceback:
    > Traceback (innermost last):
    >   Module ZPublisher.Publish, line 119, in publish
    >   Module ZPublisher.mapply, line 88, in mapply
    >   Module ZPublisher.Publish, line 42, in call_object
    >   Module Products.CMFFormController.FSControllerPageTemplate, line 90, 
    > in __call__
    >   Module Products.CMFFormController.BaseControllerPageTemplate, line 28, 
    > in _call
    >   Module Products.CMFFormController.ControllerBase, line 231, in getNext
    >   Module Products.CMFFormController.Actions.TraverseTo, line 38, in 
    > __call__
    >   Module ZPublisher.mapply, line 88, in mapply
    >   Module ZPublisher.Publish, line 42, in call_object
    >   Module Products.CMFFormController.FSControllerPythonScript, line 104, 
    > in __call__
    >   Module Products.CMFFormController.Script, line 145, in __call__
    >   Module Products.CMFCore.FSPythonScript, line 140, in __call__
    >   Module Shared.DC.Scripts.Bindings, line 313, in __call__
    >   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
    >   Module Products.CMFCore.FSPythonScript, line 196, in _exec
    >   Module None, line 39, in prefs_user_manage
    >    - <FSControllerPythonScript at /osana/main/prefs_user_manage>
    >    - Line 39
    >   Module <string>, line 4, in _facade
    >   Module plone.protect.utils, line 43, in _curried
    >   Module <string>, line 4, in _facade
    >   Module AccessControl.requestmethod, line 64, in _curried
    >   Module Products.CMFCore.MembershipTool, line 523, in deleteMembers
    >   Module <string>, line 6, in _facade
    >   Module plone.protect.utils, line 43, in _curried
    >   Module <string>, line 6, in _facade
    >   Module AccessControl.requestmethod, line 64, in _curried
    >   Module Products.PlonePAS.pas, line 62, in _doDelUsers
    >   Module Products.PlonePAS.pas, line 80, in _doDelUser
    >   Module Products.membrane.plugins.usermanager, line 295, in doDeleteUser
    > RuntimeError: No adapter found for user: lori
    > 
    > 
    > -- 
    > Archive: 
    > http://www.openplans.org/projects/remember/lists/remember/archive/2008/06/1214851594314 
    > 
    > To unsubscribe send an email with subject "unsubscribe" to 
    > remember@....  Please contact 
    > remember-manager@... for questions.
    >