Skip to content

Commit f8b86dd

Browse files
author
Daniele Esposti
committed
Fixed parameter name in notification's constructor
1 parent feb875c commit f8b86dd

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/puremvc/interfaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class INotifier(object):
2828
@see: L{INotification<puremvc.interfaces.INotification>}
2929
"""
3030

31-
def sendNotification(self, notificationName, body=None, noteType=None):
31+
def sendNotification(self, notificationName, body=None, type=None):
3232
"""
3333
Send a C{INotification}.
3434
@@ -39,7 +39,7 @@ def sendNotification(self, notificationName, body=None, noteType=None):
3939
4040
@param notificationName: the name of the notification to send
4141
@param body: the body of the notification (optional)
42-
@param noteType: the type of the notification (optional)
42+
@param type: the type of the notification (optional)
4343
"""
4444
raise NotImplementedError(self)
4545

src/puremvc/patterns/facade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def hasMediator(self, mediatorName):
273273
"""
274274
return self.view.hasMediator(mediatorName)
275275

276-
def sendNotification(self, notificationName, body=None, noteType=None):
276+
def sendNotification(self, notificationName, body=None, type=None):
277277
"""
278278
Create and send an C{INotification}.
279279
@@ -282,9 +282,9 @@ def sendNotification(self, notificationName, body=None, noteType=None):
282282
283283
@param notificationName: the name of the notiification to send
284284
@param body: the body of the notification (optional)
285-
@param noteType: the type of the notification (optional)
285+
@param type: the type of the notification (optional)
286286
"""
287-
self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, noteType))
287+
self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, type))
288288

289289
def notifyObservers(self, notification):
290290
"""

src/puremvc/patterns/observer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def __init__(self, *args, **kwds):
149149
"""
150150
self.multitonKey = None
151151

152-
def sendNotification(self, notificationName, body=None, noteType=None):
152+
def sendNotification(self, notificationName, body=None, type=None):
153153
"""
154154
Create and send an C{INotification}.
155155
@@ -159,10 +159,10 @@ def sendNotification(self, notificationName, body=None, noteType=None):
159159
160160
@param notificationName: the name of the notification to send
161161
@param body: the body of the notification (optional)
162-
@param noteType: the type of the notification (optional)
162+
@param type: the type of the notification (optional)
163163
"""
164164
if self.facade:
165-
self.facade.sendNotification(notificationName, body, noteType)
165+
self.facade.sendNotification(notificationName, body, type)
166166

167167
def initializeNotifier(self, key):
168168
"""
@@ -226,13 +226,13 @@ class Notification(puremvc.interfaces.INotification):
226226
@see: L{Observer<puremvc.patterns.observer.Observer>}
227227
"""
228228

229-
def __init__(self, name, body=None, noteType=None):
229+
def __init__(self, name, body=None, type=None):
230230
"""
231231
Constructor.
232232
233233
@param name: name of the C{Notification} instance. (required)
234234
@param body: the C{Notification} body. (optional)
235-
@param noteType: the type of the C{Notification} (optional)
235+
@param type: the type of the C{Notification} (optional)
236236
"""
237237

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

244244
"""The type of the notification instance"""
245-
self.type = noteType
245+
self.type = type
246246

247247
def __repr__(self):
248248
"""

0 commit comments

Comments
 (0)