Skip to content

Commit

Permalink
Fixed name clash with built-in types
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Esposti committed Oct 13, 2012
1 parent a7c107b commit 70137d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/puremvc/patterns/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand All @@ -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):
"""
Expand Down

0 comments on commit 70137d4

Please sign in to comment.