Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
PureMVC MultiCore Framework for Python (Ported)
--------------------------------------------------------------------------
Release Date: 10/25/2012
Release Date: 20/02/2013
Platform: Python 2.5+
Version: 1
Revision: 0
Minor: 0
Minor: 1
Authors: Toby de Havilland <toby.de.havilland@puremvc.org>
Daniele Esposti <expo@expobrain.net>
--------------------------------------------------------------------------
1.0 - * Official PureMVC.org release
1.0.1 - * Renamed 'noteType' keyword in Notification's constructor to 'type'
for consistency

1.0.0 - * Official PureMVC.org release

0.3.2 - * Added unit test for non-null values in Proxy's constructor
* Fixes in unit tests code to support Python 2.5

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from distutils.core import setup

setup(name='PureMVC Multicore Python',
version='1.0.0',
version='1.0.1',
description='PureMVC Multicore Python Framework',
author='Toby de Havilland, Daniele Esposti',
author_email='toby.de.havilland@puremvc.org, expo@expobrain.net',
Expand Down
4 changes: 2 additions & 2 deletions src/puremvc/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class INotifier(object):
@see: L{INotification<puremvc.interfaces.INotification>}
"""

def sendNotification(self, notificationName, body=None, noteType=None):
def sendNotification(self, notificationName, body=None, type=None):
"""
Send a C{INotification}.

Expand All @@ -39,7 +39,7 @@ def sendNotification(self, notificationName, body=None, noteType=None):

@param notificationName: the name of the notification to send
@param body: the body of the notification (optional)
@param noteType: the type of the notification (optional)
@param type: the type of the notification (optional)
"""
raise NotImplementedError(self)

Expand Down
6 changes: 3 additions & 3 deletions src/puremvc/patterns/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def hasMediator(self, mediatorName):
"""
return self.view.hasMediator(mediatorName)

def sendNotification(self, notificationName, body=None, noteType=None):
def sendNotification(self, notificationName, body=None, type=None):
"""
Create and send an C{INotification}.

Expand All @@ -282,9 +282,9 @@ def sendNotification(self, notificationName, body=None, noteType=None):

@param notificationName: the name of the notiification to send
@param body: the body of the notification (optional)
@param noteType: the type of the notification (optional)
@param type: the type of the notification (optional)
"""
self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, noteType))
self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, type))

def notifyObservers(self, notification):
"""
Expand Down
12 changes: 6 additions & 6 deletions src/puremvc/patterns/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def __init__(self, *args, **kwds):
"""
self.multitonKey = None

def sendNotification(self, notificationName, body=None, noteType=None):
def sendNotification(self, notificationName, body=None, type=None):
"""
Create and send an C{INotification}.

Expand All @@ -159,10 +159,10 @@ def sendNotification(self, notificationName, body=None, noteType=None):

@param notificationName: the name of the notification to send
@param body: the body of the notification (optional)
@param noteType: the type of the notification (optional)
@param type: the type of the notification (optional)
"""
if self.facade:
self.facade.sendNotification(notificationName, body, noteType)
self.facade.sendNotification(notificationName, body, type)

def initializeNotifier(self, key):
"""
Expand Down Expand Up @@ -226,13 +226,13 @@ class Notification(puremvc.interfaces.INotification):
@see: L{Observer<puremvc.patterns.observer.Observer>}
"""

def __init__(self, name, body=None, noteType=None):
def __init__(self, name, body=None, type=None):
"""
Constructor.

@param name: name of the C{Notification} instance. (required)
@param body: the C{Notification} body. (optional)
@param noteType: the type of the C{Notification} (optional)
@param type: the type of the C{Notification} (optional)
"""

"""The name of the notification instance"""
Expand All @@ -242,7 +242,7 @@ def __init__(self, name, body=None, noteType=None):
self.body = body

"""The type of the notification instance"""
self.type = noteType
self.type = type

def __repr__(self):
"""
Expand Down