You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by mx...@apache.org on 2017/06/04 09:08:11 UTC

incubator-ariatosca git commit: renamed wrapping/instrumentation classes [Forced Update!]

Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-262-Inconsistent-node-attributes-behavior 40a8ad407 -> 225971037 (forced update)


renamed wrapping/instrumentation classes


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/22597103
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/22597103
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/22597103

Branch: refs/heads/ARIA-262-Inconsistent-node-attributes-behavior
Commit: 225971037b7ba9d09f9cca15a9342cc2de0e3f58
Parents: 4be164d
Author: max-orlov <ma...@gigaspaces.com>
Authored: Sun Jun 4 11:30:52 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Sun Jun 4 12:08:06 2017 +0300

----------------------------------------------------------------------
 aria/storage/collection_instrumentation.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/22597103/aria/storage/collection_instrumentation.py
----------------------------------------------------------------------
diff --git a/aria/storage/collection_instrumentation.py b/aria/storage/collection_instrumentation.py
index 680103e..cb6c81a 100644
--- a/aria/storage/collection_instrumentation.py
+++ b/aria/storage/collection_instrumentation.py
@@ -282,6 +282,10 @@ class _WrappedModel(object):
 def instrument(instrumentation, original_model, mapi):
     for instrumented_cls in instrumentation:
         if isinstance(original_model, instrumented_cls):
-            return _InstrumentedModel(original_model, mapi, instrumentation)
+            return type('Instrumented{0}'.format(original_model.__class__.__name__),
+                        (_InstrumentedModel, ),
+                        {})(original_model, mapi, instrumentation)
 
-    return _WrappedModel(original_model, instrumentation, mapi=mapi)
+    return type('Wrapped{0}'.format(original_model.__class__.__name__),
+                (_WrappedModel, ),
+                {})(original_model, instrumentation, mapi=mapi)