OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../kdebindings/kdepy.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- kdebindings-3.2.1/dcoppython/lib/pydcop.py.orig 2004-04-09 14:22:19.645982533 +0100
  18. +++ kdebindings-3.2.1/dcoppython/lib/pydcop.py 2004-04-09 14:23:00.486753945 +0100
  19. @@ -32,10 +32,10 @@
  20. return pcop.disconnect_dcop_signal(sender,senderObj,signal,receiverObj,slot)
  21. class DCOPApplication(object):
  22. - def __init__( self, name ):
  23. - self.name = name
  24. + def __init__( self, name ):
  25. + self.name = name
  26. - def __getattr__( self, item ):
  27. + def __getattr__( self, item ):
  28. if item == "__repr__":
  29. return object.__repr__
  30. if item == "__str__":
  31. @@ -44,15 +44,15 @@
  32. return object.__call__
  33. if item == "_objects_":
  34. return pcop.obj_list(self.name)
  35. - return DCOPObject( self.name, item )
  36. + return DCOPObject( self.name, item )
  37. def _object_(self, object):
  38. return DCOPObject( self.name, object )
  39. class DCOPObject(object):
  40. - def __init__( self, appname, name ):
  41. - self.appname = appname
  42. - self.name = name
  43. + def __init__( self, appname, name ):
  44. + self.appname = appname
  45. + self.name = name
  46. def __repr__( self ):
  47. return "DCOPObject(%s,%s)" % ( self.appname, self.name )
  48. @@ -60,7 +60,7 @@
  49. def __str__( self ):
  50. return "DCOPObject(%s,%s)" % ( self.appname, self.name )
  51. - def __getattr__( self, item ):
  52. + def __getattr__( self, item ):
  53. if item == "__repr__":
  54. return object.__repr__
  55. if item == "__str__":
  56. @@ -69,16 +69,16 @@
  57. return object.__call__
  58. if item == "_methods_":
  59. return pcop.method_list( self.appname, self.name )
  60. - return DCOPMethod( self.appname, self.name, item )
  61. + return DCOPMethod( self.appname, self.name, item )
  62. def _method_(self, method):
  63. return DCOPMethod( self.appname, self.name, method )
  64. class DCOPMethod(object):
  65. - def __init__( self, appname, objname, name ):
  66. - self.appname = appname
  67. - self.objname = objname
  68. - self.name = name
  69. + def __init__( self, appname, objname, name ):
  70. + self.appname = appname
  71. + self.objname = objname
  72. + self.name = name
  73. def __repr__( self ):
  74. return "DCOPMethod(%s,%s,%s)" % ( self.appname, self.objname, self.name )
  75. @@ -86,7 +86,7 @@
  76. def __str__( self ):
  77. return "DCOPMethod(%s,%s,%s)" % ( self.appname, self.objname, self.name )
  78. - def __call__( self, *args ):
  79. + def __call__( self, *args ):
  80. return pcop.dcop_call( self.appname, self.objname, self.name, args )
  81. class DCOPServer(object):