mirror of the now-defunct rocklinux.org
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.

95 lines
3.3 KiB

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