← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dc-plugin-sdk/trunk] Rev 18: Update .py files to use "raise NotImplementedError"

 

------------------------------------------------------------
revno: 18
committer: Fredrik Ullner <ullner@xxxxxxxxx>
branch nick: dc-plugin-sdk
timestamp: Mon 2014-05-19 23:16:33 +0200
message:
  Update .py files to use "raise NotImplementedError"
modified:
  Libraries/PyPlugin.DataTypes/IDCPlugin.py
  Libraries/PyPlugin.DataTypes/IDCPluginSink.py


--
lp:dc-plugin-sdk
https://code.launchpad.net/~dcplusplus-team/dc-plugin-sdk/trunk

Your team Dcplusplus-team is subscribed to branch lp:dc-plugin-sdk.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dc-plugin-sdk/trunk/+edit-subscription
=== modified file 'Libraries/PyPlugin.DataTypes/IDCPlugin.py'
--- Libraries/PyPlugin.DataTypes/IDCPlugin.py	2014-05-06 20:38:46 +0000
+++ Libraries/PyPlugin.DataTypes/IDCPlugin.py	2014-05-19 21:16:33 +0000
@@ -4,53 +4,53 @@
 
 class IDCPlugin:
     """ Properties """
-    def GetInfo(self): NotImplementedError
-    def SetInfo(self, data): NotImplementedError
+    def GetInfo(self): raise NotImplementedError
+    def SetInfo(self, data): raise NotImplementedError
 
-    def GetSink(self): NotImplementedError
-    def SetSink(self, data): NotImplementedError
+    def GetSink(self): raise NotImplementedError
+    def SetSink(self, data): raise NotImplementedError
     
     """ Methods """
-    def Initialize(self, install, runtime): NotImplementedError
+    def Initialize(self, install, runtime): raise NotImplementedError
 
-    def Uninitialize(self): NotImplementedError
+    def Uninitialize(self): raise NotImplementedError
 
     """ Hooks """
 
     """ Chat """
-    def OnChatIncoming(self, hubData, data, refBreak): NotImplementedError
-    def OnChatOutgoing(self, hubData, data, refBreak): NotImplementedError
-    def OnChatIncomingPM(self, userData, data, refBreak): NotImplementedError
+    def OnChatIncoming(self, hubData, data, refBreak): raise NotImplementedError
+    def OnChatOutgoing(self, hubData, data, refBreak): raise NotImplementedError
+    def OnChatIncomingPM(self, userData, data, refBreak): raise NotImplementedError
 
     """ Timer """
-    def OnTimerSecond(self, data, refBreak): NotImplementedError
-    def OnTimerMinute(self, data, refBreak): NotImplementedError
+    def OnTimerSecond(self, data, refBreak): raise NotImplementedError
+    def OnTimerMinute(self, data, refBreak): raise NotImplementedError
 
     """ Hubs """
-    def OnHubOnline(self, hubData, refBreak): NotImplementedError
-    def OnHubOffline(self, hubData, refBreak): NotImplementedError
+    def OnHubOnline(self, hubData, refBreak): raise NotImplementedError
+    def OnHubOffline(self, hubData, refBreak): raise NotImplementedError
 
     """ Users """
-    def OnUserOnline(self, userData, refBreak): NotImplementedError
-    def OnUserOffline(self, userData, refBreak): NotImplementedError
+    def OnUserOnline(self, userData, refBreak): raise NotImplementedError
+    def OnUserOffline(self, userData, refBreak): raise NotImplementedError
 
     """ Network """
-    def OnNetworkHubDataIn(self, hubData, data, refBreak): NotImplementedError
-    def OnNetworkHubDataOut(self, hubData, data, refBreak): NotImplementedError
-    def OnNetworkClientDataIn(self, connectionData, data, refBreak): NotImplementedError
-    def OnNetworkClientDataOut(self, connectionData, data, refBreak): NotImplementedError
-    def OnNetworkUDPDataIn(self, udpData, data, refBreak): NotImplementedError
-    def OnNetworkUDPDataOut(self, udpData, data, refBreak): NotImplementedError
+    def OnNetworkHubDataIn(self, hubData, data, refBreak): raise NotImplementedError
+    def OnNetworkHubDataOut(self, hubData, data, refBreak): raise NotImplementedError
+    def OnNetworkClientDataIn(self, connectionData, data, refBreak): raise NotImplementedError
+    def OnNetworkClientDataOut(self, connectionData, data, refBreak): raise NotImplementedError
+    def OnNetworkUDPDataIn(self, udpData, data, refBreak): raise NotImplementedError
+    def OnNetworkUDPDataOut(self, udpData, data, refBreak): raise NotImplementedError
 
     """ Queue """
-    def OnQueueAdded(self, queueData, refBreak): NotImplementedError
-    def OnQueueMoved(self, queueData, refBreak): NotImplementedError
-    def OnQueueRemoved(self, queueData, refBreak): NotImplementedError
-    def OnQueueFinished(self, queueData, refBreak): NotImplementedError
+    def OnQueueAdded(self, queueData, refBreak): raise NotImplementedError
+    def OnQueueMoved(self, queueData, refBreak): raise NotImplementedError
+    def OnQueueRemoved(self, queueData, refBreak): raise NotImplementedError
+    def OnQueueFinished(self, queueData, refBreak): raise NotImplementedError
 
     """ UI """
-    def OnUICreated(self, data, refBreak): NotImplementedError
-    def OnUIChatTags(self, userData, tagData, refBreak): NotImplementedError
-    def OnUIChatDisplay(self, userData, stringData, refBreak): NotImplementedError
-    def OnUIChatCommand(self, hubData, data, refBreak): NotImplementedError
-    def OnUIChatCommandPM(self, userData, data, refBreak): NotImplementedError
+    def OnUICreated(self, data, refBreak): raise NotImplementedError
+    def OnUIChatTags(self, userData, tagData, refBreak): raise NotImplementedError
+    def OnUIChatDisplay(self, userData, stringData, refBreak): raise NotImplementedError
+    def OnUIChatCommand(self, hubData, data, refBreak): raise NotImplementedError
+    def OnUIChatCommandPM(self, userData, data, refBreak): raise NotImplementedError

=== modified file 'Libraries/PyPlugin.DataTypes/IDCPluginSink.py'
--- Libraries/PyPlugin.DataTypes/IDCPluginSink.py	2014-05-17 19:25:36 +0000
+++ Libraries/PyPlugin.DataTypes/IDCPluginSink.py	2014-05-19 21:16:33 +0000
@@ -4,65 +4,65 @@
 class IDCPluginSink:
 
     """ Core """
-    def GetApplicationName(self): NotImplementedError
+    def GetApplicationName(self): raise NotImplementedError
     
-    def SetApplicationName(self, name): NotImplementedError
+    def SetApplicationName(self, name): raise NotImplementedError
 
     """ Log """
-    def LogMessage(self, message): NotImplementedError
+    def LogMessage(self, message): raise NotImplementedError
 
     """ Config """
-    def GetInstallPath(self): NotImplementedError
+    def GetInstallPath(self): raise NotImplementedError
     
-    def GetPath(self, pathType): NotImplementedError
+    def GetPath(self, pathType): raise NotImplementedError
 
-    def GetStringConfig(self, name): NotImplementedError
-    def SetStringConfig(self, name, value): NotImplementedError
-    
-    def GetBoolConfig(self, name): NotImplementedError
-    def SetBoolConfig(self, name, value): NotImplementedError
-    
-    def GetInt32Config(self, name): NotImplementedError
-    def SetInt32Config(self, name, value): NotImplementedError
-    
-    def GetInt64Config(self, name): NotImplementedError
-    def SetInt64Config(self, name, value): NotImplementedError
-    
-    def GetLanguage(self): NotImplementedError
+    def GetStringConfig(self, name): raise NotImplementedError
+    def SetStringConfig(self, name, value): raise NotImplementedError
+    
+    def GetBoolConfig(self, name): raise NotImplementedError
+    def SetBoolConfig(self, name, value): raise NotImplementedError
+    
+    def GetInt32Config(self, name): raise NotImplementedError
+    def SetInt32Config(self, name, value): raise NotImplementedError
+    
+    def GetInt64Config(self, name): raise NotImplementedError
+    def SetInt64Config(self, name, value): raise NotImplementedError
+    
+    def GetLanguage(self): raise NotImplementedError
 
     """ Connection """
-    def SendUDPData(self, ipAddress, port, data, amount): NotImplementedError
-    def SendProtocolCommandConnection(self, connectionData, command): NotImplementedError
-    def TerminateConnection(self, connectionData, graceLess): NotImplementedError
-    def GetConnectionUser(self, connectionData): NotImplementedError
+    def SendUDPData(self, ipAddress, port, data, amount): raise NotImplementedError
+    def SendProtocolCommandConnection(self, connectionData, command): raise NotImplementedError
+    def TerminateConnection(self, connectionData, graceLess): raise NotImplementedError
+    def GetConnectionUser(self, connectionData): raise NotImplementedError
 
     """ Hub """
-    def AddHub(self, url, nick, password): NotImplementedError
-    def FindHub(self, url): NotImplementedError
-    def RemoveHub(self, hubData): NotImplementedError
-    def EmulateProtocolCommandHub(self, hubData, command): NotImplementedError
-    def SendProtocolCommand(self, hubData, command): NotImplementedError
-    def SendMessage(self, hubData, message, thirdPerson): NotImplementedError
-    def LocalMessage(self, hubData, message, messageType): NotImplementedError
-    def SendPrivateMessage(self, userData, message, thirdPerson): NotImplementedError
-    def FindUser(self, cid, hubURL): NotImplementedError
+    def AddHub(self, url, nick, password): raise NotImplementedError
+    def FindHub(self, url): raise NotImplementedError
+    def RemoveHub(self, hubData): raise NotImplementedError
+    def EmulateProtocolCommandHub(self, hubData, command): raise NotImplementedError
+    def SendProtocolCommand(self, hubData, command): raise NotImplementedError
+    def SendMessage(self, hubData, message, thirdPerson): raise NotImplementedError
+    def LocalMessage(self, hubData, message, messageType): raise NotImplementedError
+    def SendPrivateMessage(self, userData, message, thirdPerson): raise NotImplementedError
+    def FindUser(self, cid, hubURL): raise NotImplementedError
 
     """ Queue """
-    def AddList(self, userData, silent): NotImplementedError
-    def AddDownload(self, hashData, size, target): NotImplementedError
-    def FindDownload(self, target): NotImplementedError
-    def RemoveDownload(self, queueData): NotImplementedError
-    def SetPriority(self, queueData, priority): NotImplementedError
-    def Pause(self, queueData): NotImplementedError
+    def AddList(self, userData, silent): raise NotImplementedError
+    def AddDownload(self, hashData, size, target): raise NotImplementedError
+    def FindDownload(self, target): raise NotImplementedError
+    def RemoveDownload(self, queueData): raise NotImplementedError
+    def SetPriority(self, queueData, priority): raise NotImplementedError
+    def Pause(self, queueData): raise NotImplementedError
 
     """ Tagger """
-    def GetText(self, tagData): NotImplementedError
-    def AddTag(self, tagData, startPlace, endPlace, tagId, attributes): NotImplementedError
-    def ReplaceTagText(self, tagData, startPlace, endPlace, replacement): NotImplementedError
+    def GetText(self, tagData): raise NotImplementedError
+    def AddTag(self, tagData, startPlace, endPlace, tagId, attributes): raise NotImplementedError
+    def ReplaceTagText(self, tagData, startPlace, endPlace, replacement): raise NotImplementedError
 
     """ UI """
-    def AddCommand(self, name): NotImplementedError
-    def RemoveCommand(self, name): NotImplementedError
-    def PlaySoundInUI(self, path): NotImplementedError
-    def Notify(self, title, message): NotImplementedError
+    def AddCommand(self, name): raise NotImplementedError
+    def RemoveCommand(self, name): raise NotImplementedError
+    def PlaySoundInUI(self, path): raise NotImplementedError
+    def Notify(self, title, message): raise NotImplementedError