[ZCM] [ZC] 1271/ 2 Resolve "Module AccessControl.Owned, line 123, in getWrappedOwner - ValueError: unpack list of wrong size "

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Mar 29 16:08:25 EST 2004


Issue #1271 Update (Resolve) "Module AccessControl.Owned, line 123, in getWrappedOwner - ValueError: unpack list of wrong size "
 Status Resolved, Zope/bug+solution medium
To followup, visit:
  http://zope.org/Collectors/Zope/1271

==============================================================
= Resolve - Entry #2 by tseaver on Mar 29, 2004 4:08 pm

 Status: Pending => Resolved

Duplicate of #1255, which is already fixed on the HEAD,
the 2.7 branch, and the 2.6 branch:

  http://zope.org/Collectors/Zope/1255

________________________________________
= Request - Entry #1 by chrisabruce on Mar 24, 2004 7:47 pm


Uploaded:  "Owned.py"
 - http://zope.org/Collectors/Zope/1271/Owned.py/view
I am getting the following error while trying to add a ZClass
programmatically with proxy set to manger:

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module OFS.DTMLMethod, line 130, in __call__
   - <DTMLMethod instance at b30e6620>
   - URL: http://localhost:8080/register/addUser/manage_main
   - Physical Path: /register/addUser
  Module DocumentTemplate.DT_String, line 474, in __call__
  Module DocumentTemplate.DT_With, line 76, in render
  Module DocumentTemplate.DT_Util, line 201, in eval
   - __traceback_info__: UserFileFolder_add
  Module <string>, line 1, in <expression>
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 318, in _exec
  Module None, line 3, in UserFileFolder_add
   - <PythonScript at /Users/UserFolders/UserFileFolder_add>
   - Line 3
  Module AccessControl.Owned, line 123, in getWrappedOwner
ValueError: unpack list of wrong size


Here is the dtml:
<dtml-with "Users.UserFolders.manage_addProduct['UserFileFolder']">
<dtml-call "UserFileFolder_add(redirect=0)"></dtml-with>

Modified Attached file and added check for empty list.
==============================================================




More information about the Zope-Collector-Monitor mailing list