Commit 1f73347c authored by Sebastien Robin's avatar Sebastien Robin

Folder.py: fixed undefined variable

parent 3d3ec3cb
...@@ -522,8 +522,8 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -522,8 +522,8 @@ class FolderMixIn(ExtensionClass.Base):
raise raise
activate_kw['group_method_id'] = kw['group_id'] = '' # no grouping activate_kw['group_method_id'] = kw['group_id'] = '' # no grouping
activate_kw['activity'] = 'SQLQueue' activate_kw['activity'] = 'SQLQueue'
activate(self, **activate_kw)._recurseCallMethod( self.getPortalObject().portal_activities.activateObject(self, **activate_kw
method_id, method_args, method_kw, restricted=restricted, **kw) )._recurseCallMethod(method_id, method_args, method_kw, restricted=restricted, **kw)
security.declarePublic('recurseCallMethod') security.declarePublic('recurseCallMethod')
def recurseCallMethod(self, method_id, *args, **kw): def recurseCallMethod(self, method_id, *args, **kw):
......
  • @kazuhiko , please check if this is correct. This started to fail after your change 3d3ec3cb .

  • Sorry for 'undefined variable' errors. To be consistent with my change 3d3ec3cb, it should be ratter :

    --- product/ERP5Type/Core/Folder.py
    +++ product/ERP5Type/Core/Folder.py
    @@ -522,7 +522,7 @@ class FolderMixIn(ExtensionClass.Base):
             raise
           activate_kw['group_method_id'] = kw['group_id'] = '' # no grouping
           activate_kw['activity'] = 'SQLQueue'
    -      activate(self, **activate_kw)._recurseCallMethod(
    +      self.activate(**activate_kw)._recurseCallMethod(
             method_id, method_args, method_kw, restricted=restricted, **kw)
    
       security.declarePublic('recurseCallMethod')

    But as Julien already posted several comments, we will introduce more changes after checking with @vpelletier .

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment