From 70137d45f94bcb35e65700f789e2a5739fbce2f8 Mon Sep 17 00:00:00 2001 From: Daniele Esposti Date: Sat, 13 Oct 2012 19:18:41 +0100 Subject: [PATCH] Fixed name clash with built-in types --- src/puremvc/patterns/facade.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/puremvc/patterns/facade.py b/src/puremvc/patterns/facade.py index c0b1aa4..52f40a1 100644 --- a/src/puremvc/patterns/facade.py +++ b/src/puremvc/patterns/facade.py @@ -251,7 +251,7 @@ def hasMediator(self, mediatorName): """ return self.view.hasMediator(mediatorName) - def sendNotification(self, notificationName, body=None, type=None): + def sendNotification(self, notificationName, body=None, noteType=None): """ Create and send an C{INotification}. @@ -260,9 +260,13 @@ def sendNotification(self, notificationName, body=None, type=None): @param notificationName: the name of the notiification to send @param body: the body of the notification (optional) - @param type: the type of the notification (optional) + @param noteType: the type of the notification (optional) """ - self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, type)) + self.notifyObservers( + puremvc.patterns.observer.Notification( + notificationName, body, noteType + ) + ) def notifyObservers(self, notification): """