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 / Standard Version / Python 3 port on: December 18, 2009, 04:16:05
Hi all,
I ported puremvc to python 3. There weren't too many things to change but it didn't work with the 2to3 script.

Here are the changes I had to make:
  * Classes don't inherit from object anymore.
  * One iterator has to be explicitly converted to a list.
  * I also implemented the classes in interface.py as abc classes. This is not strictly necessary but from now on it will raise errors if some class inherits an interface but doesn't implement it.

Maybe we also should make more use of decorators since we now don't have to be backward compatible with python <2.5, but I didn't want to change too much at once.

The changes can be found on github: http://github.com/bastikr/python-puremvc/commits/python3

 - Sebastian
2  PureMVC Manifold / Standard Version / Easier testing on: December 18, 2009, 04:07:45
Hi all,
Many other python libraries provide some kind of testing command in their setup.py file. That means you just type:

>> python setup.py test

and all tests will be performed. The nice thing is that the path is automatically set to the right version of puremvc on your computer and so it is easy to have e.g. a stable one installed and another development version somewhere in the filesystem and can test the right one with just on command.

The modification of the setup.py file and a small modification in the unittest/main.py file can be found on github: http://github.com/bastikr/python-puremvc/tree/master/trunk/

If this feature is wanted I can also send some kind of patch.

 - Sebastian
3  PureMVC Manifold / Bug Report / Bugs in interface.py on: December 18, 2009, 03:57:30
Hi all,
There are some bugs in interface.py:
  * All methods raise "NotImplemented" instead of "NotImplementedError()"
  * There are two methods called "retreieve" instead of "retrieve"
Since these interfaces are not defined as abstract base classes these bugs are not really relevant but it won't hurt to fix them.

 - Sebastian

p.s.: Please let me know if I should make patch.
p.s. 2: Branch with fixes at github: http://github.com/bastikr/python-puremvc/tree/master/trunk/
Pages: [1]