You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by bo...@apache.org on 2015/09/16 16:26:27 UTC
[02/11] qpid-proton git commit: NO-JIRA: Wrapper should keep track of
the Record
NO-JIRA: Wrapper should keep track of the Record
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/7263c0e4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/7263c0e4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/7263c0e4
Branch: refs/heads/master
Commit: 7263c0e4dfff728ce6425d5a25d59f5ded2d9be7
Parents: 1e2fbe1
Author: Bozo Dragojevic <bo...@digiverse.si>
Authored: Fri Jul 17 01:39:37 2015 +0200
Committer: Bozo Dragojevic <bo...@digiverse.si>
Committed: Wed Sep 16 15:40:04 2015 +0200
----------------------------------------------------------------------
proton-c/bindings/python/proton/wrapper.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7263c0e4/proton-c/bindings/python/proton/wrapper.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/wrapper.py b/proton-c/bindings/python/proton/wrapper.py
index d3923cf..4bfe2b3 100644
--- a/proton-c/bindings/python/proton/wrapper.py
+++ b/proton-c/bindings/python/proton/wrapper.py
@@ -55,8 +55,10 @@ class Wrapper(object):
else:
attrs = EMPTY_ATTRS
init = False
+ record = None
self.__dict__["_impl"] = impl
self.__dict__["_attrs"] = attrs
+ self.__dict__["_record"] = record
if init: self._init()
def __getattr__(self, name):
@@ -64,7 +66,7 @@ class Wrapper(object):
if name in attrs:
return attrs[name]
else:
- raise AttributeError(name)
+ raise AttributeError(name + " not in _attrs")
def __setattr__(self, name, value):
if hasattr(self.__class__, name):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org