Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Bug Report / missing super() call in puremvc.patterns.command.MacroCommand.__init__ on: March 13, 2013, 09:32:12
Version:
https://github.com/PureMVC/puremvc-python-standard-framework
commit 942bec84220fbc601e8064104199881271ad54c9

Problem:
The constructor method puremvc.patterns.command.MacroCommand.__init__() does not call
super(MacroCommand,self).__init__().

This causes puremvc.patterns.observer.Notifier.__init__() not to be executed. As a consequence a new MacroCommand lacks the attribute "facade". This causes AttributeError exceptions later on, if one uses the method "sendNotification".

Here is a patch to fix this issue: https://github.com/akruis/puremvc-python-standard-framework/commit/6cc93cf4bf86995336198782f9ba73779c3c4434
2  PureMVC Manifold / Bug Report / Re: Facade.getInstance should be a classmethod instead of a staticmethod on: March 13, 2013, 09:04:35
Just for the records: if anyone needs it, an implementation of the changes proposed in this discussion is available from
https://github.com/akruis/puremvc-python-standard-framework/commit/9c94474f5fb57e30a052efab3ad8ef64bbbff7dc
Pages: [1]