#1 — problem adding tasks

by Jodok Batlogg last modified Jan 08, 2009 02:41 PM
State Resolved
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by Jodok Batlogg
Submitted on Feb 07, 2006
Responsible Jodok Batlogg
Target release:




when i try to add a task inside a story i get the following:


Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 98, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 42, in _call
  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.CMFCore.FSPageTemplate, line 134, in pt_render
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <FSControllerPageTemplate at /lovelysystems/extranet/plone/base_edit used for /lovelysystems/extranet/plone/projects/media.coop/demo-platform-mq/2>
  Module TAL.TALInterpreter, line 206, in __call__
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 690, in do_defineMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 742, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 690, in do_defineMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 734, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 690, in do_defineMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 742, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 653, in do_loop_tal
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 677, in do_condition
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 677, in do_condition
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 424, in do_optTag_tal
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 734, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 477, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: file:Archetypes/skins/archetypes/widgets/multiselection.pt
   - Line 113, Column 12
   - Expression: <PythonExpr field.Vocabulary(here)>
   - Names:
      {'container': <PloneSite at /lovelysystems/extranet/plone>,
       'context': <Task at /lovelysystems/extranet/plone/projects/media.coop/demo-platform-mq/2>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x2aaaaf5c7878>,
       'here': <Task at /lovelysystems/extranet/plone/projects/media.coop/demo-platform-mq/2>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x2aaab6cd7b48>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x2aaaaf5c7cf8>,
       'nothing': None,
       'options': {'args': (),
                   'state': <Products.CMFFormController.ControllerState.ControllerState object at 0x2aaab6abe7d0>},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x2aaab6cd7b48>,
       'request': <HTTPRequest, URL=https://extranet.lovelysystems.com/[…]/base_edit>,
       'root': <Application at >,
       'template': <FSControllerPageTemplate at /lovelysystems/extranet/plone/base_edit used for /lovelysystems/extranet/plone/projects/media.coop/demo-platform-mq/2>,
       'traverse_subpath': [],
       'user': lovelysystems}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: field.Vocabulary(here)
  Module Python expression "field.Vocabulary(here)", line 1, in <expression>
  Module Products.Archetypes.Field, line 432, in Vocabulary
  Module Products.Archetypes.utils, line 145, in mapply
  Module Products.eXtremeManagement.content.Task, line 155, in _get_assignees
  Module Products.eXtremeManagement.content.Project, line 121, in getMembers
AttributeError: getGroupPrefix
Added by Jodok Batlogg on Feb 07, 2006 08:02 PM
Severity: ImportantMedium
Responsible manager: batlogg(UNASSIGNED)
it's a PAS issue, the following fixed helped:

Index: Project.py
===================================================================
--- Project.py (revision 3642)
+++ Project.py (working copy)
@@ -118,7 +118,13 @@
         """
         grp = getToolByName(self, 'portal_groups')
         mem = getToolByName(self, 'portal_membership')
- prefix=self.acl_users.getGroupPrefix()
+ # PAS doesn't use prefixes at all
+ try:
+ import Products.PlonePAS
+ except ImportError:
+ prefix=self.acl_users.getGroupPrefix()
+ else:
+ prefix=''
         list1 = []
         for user, roles in self.get_local_roles():
             if role in roles:
Added by Jodok Batlogg on Feb 15, 2006 07:38 PM
Issue state: unconfirmedopen
Responsible manager: (UNASSIGNED)batlogg
fixed in trunk
Added by Jodok Batlogg on Feb 15, 2006 07:39 PM
Issue state: openresolved
poi wants me to do one more transition

No responses can be added.