#3 — Error using ATWorkGroup
by
Jim Biggs
—
last modified
Feb 21, 2009 08:40 PM
| State | Resolved |
|---|---|
| Version: | 2.0 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Low |
| Submitted by | Jim Biggs |
| Submitted on | Aug 21, 2006 |
| Responsible | Max M Rasmussen |
| Target release: |
—
|
After installing ATWorkGroup, I get the following error message when I click directly on the "Members" tab of the root Plone Portal:
Site Error
An error was encountered while publishing this resource.
TypeError
Sorry, a site error occurred.
Traceback (innermost last):
* Module ZPublisher.Publish, line 194, in publish_module_standard
* Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish
* Module ZPublisher.Publish, line 146, in publish
* Module Zope2.App.startup, line 222, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.PythonScripts.PythonScript, line 323, in _exec
* Module None, line 2, in index_html
<PythonScript at /Plone/Members/index_html>
Line 2
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.CacheSetup.patch_cmf, line 56, in PT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /Plone/member_search_form used for /Plone/Members>
* Module TAL.TALInterpreter, line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 780, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 780, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 691, in do_loop_tal
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 507, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:ATWorkgroup/skins/ATWorkgroup/portlet_Workgroup_groups.pt
Line 40, Column 12
Expression: <PythonExpr workgrouptool.getAccesibleGroupsForMember(member_id)>
Names:
{'container': <PloneSite at /Plone>,
'context': <ATBTreeFolder at /Plone/Members>,
'default': <Products.PageTemplates.TALES.Default instance at 0x0151D918>,
'here': <ATBTreeFolder at /Plone/Members>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x063305A8>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x0150CE90>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x063305A8>,
'request': <HTTPRequest, URL=http://localhost/Members/index_html>,
'root': <Application at >,
'template': <FSPageTemplate at /Plone/member_search_form used for /Plone/Members>,
'traverse_subpath': [],
'user': <PloneUser 'jbiggs3'>}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: workgrouptool.getAccesibleGroupsForMember(member_id)
* Module Python expression "workgrouptool.getAccesibleGroupsForMember(member_id)", line 1, in <expression>
* Module Products.ATWorkgroup.workgrouptool, line 345, in getAccesibleGroupsForMember
* Module Products.ATWorkgroup.workgrouptool, line 334, in getGroupsForMember
* Module Products.ATWorkgroup.workgrouptool, line 254, in _members2Ids
TypeError: iteration over non-sequence (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: iteration over non-sequence)
Troubleshooting Suggestions
* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to error log.
If the error persists please contact the site maintainer. Thank you for your patience.
- Steps to reproduce:
- install ATWorkGroup
add member
click on "Members" tab of root Plone Portal
Added by
Max M Rasmussen
on
Aug 21, 2006 07:54 PM
This is a minor bug. yes. It only happens for administrators, and is caused by the problem of getting a members id by aquisition, when being in the Members folder. There is no "official" method for this, and the one I have made is a bit hackish and uses the path. But it is hard for it to see the difference between these paths: "<SITE>/Members/maxm" & "<SITE>/Members/member_search".
Issue state:
unconfirmed
→
open
Severity:
Medium
→
Low
Responsible manager:
(UNASSIGNED)
→
maxm
Added by
Jim Biggs
on
Aug 21, 2006 08:04 PM
This bug persists for administrators and other Portal Members. It even persists after ATWorkGroup is uninstalled from both Plone and Zope.
Will there be a fix for this bug in a future release?
I like your product and its concept. I believe it is very useful.
Regards... Jim
Added by
Mark Denham
on
Aug 23, 2006 03:19 PM
I find it happens for everyone, admins, members and annon.
A work round is to delete the portlet_workgroup_group from the right_slot on the Members folder.
Depending on the number of members you could delete the search form index_html and use a smart folder as the default view to list the users. Set the right_slot property for the smart folder to blank and you can then set the Members folder right_slot back to here/portlet_Workgroup_groups/macros/portlet and you are good to go.
Added by
(anonymous)
on
Sep 25, 2006 12:23 AM
I agree it happens for administrator and for regular users. I'll try that work around.
Added by
Max M Rasmussen
on
Nov 14, 2006 07:40 PM
It should be fixed now in the thunk.
Issue state:
open
→
resolved
Added by
(anonymous)
on
Jun 04, 2007 06:00 PM
It isn't fixed, it still occurs for administrators and other users for the function getAccesibleGroupMembers. Is there no hope for this product?
No responses can be added.
If you can, please log in before submitting a reaction.
