diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-10-25 16:50:33 -0400 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-12-03 10:55:44 -0500 |
commit | a2d383a5a6beb9639a44331a33dc4f6025464ff3 (patch) | |
tree | 9b28caa1388d2281a94a0415dfcb2555cf239d8e /src | |
parent | 0778d47b25c6094079faa4403b33735c50e96ddb (diff) |
Add properties to get handle attributes
Diffstat (limited to 'src')
-rw-r--r-- | src/server/handle.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/handle.py b/src/server/handle.py index ec31b9a..cd05fa7 100644 --- a/src/server/handle.py +++ b/src/server/handle.py @@ -46,6 +46,11 @@ class Handle(object): def __ne__(self, other): return not self.__eq__(other) + id = property(get_id) + type = property(get_type) + name = property(get_name) + + class NoneHandle(Handle): def __init__(self): Handle.__init__(self, 0, HANDLE_TYPE_NONE, '') |