Juan Hernandez has uploaded a new change for review.

Change subject: sdk: Manually remove action broker
......................................................................

sdk: Manually remove action broker

The current code generator creates a broker class for the "Action"
schema type.  This doesn't make sense, as actions are represented by
methods not by classes.  This patch manually remove that class in order
to reduce diffs with the code generated by the next version of the code
generator.

Change-Id: If02d79178a0f15c4d051af36aa331c6dbb7455c0
Signed-off-by: Juan Hernandez <[email protected]>
---
M src/ovirtsdk/infrastructure/brokers.py
1 file changed, 0 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/63/37863/1

diff --git a/src/ovirtsdk/infrastructure/brokers.py 
b/src/ovirtsdk/infrastructure/brokers.py
index 14a2aed..f7f32cd 100644
--- a/src/ovirtsdk/infrastructure/brokers.py
+++ b/src/ovirtsdk/infrastructure/brokers.py
@@ -34,27 +34,6 @@
 from ovirtsdk.infrastructure.errors import RequestError
 
 
-class Action(params.Action, Base):
-    def __init__(self, superclass, context):
-        Base.__init__(self, context)
-        self.superclass = superclass
-
-        #SUB_COLLECTIONS
-    def __new__(cls, superclass, context):
-        if superclass is None: return None
-        obj = object.__new__(cls)
-        obj.__init__(superclass, context)
-        return obj
-
-    def __getProxy(self):
-        proxy = context.manager[self.context].get('proxy')
-        if proxy:
-            return proxy
-        #This may happen only if sdk was explicitly disconnected
-        #using .disconnect() method, but resource instance ref. is
-        #still available at client's code.
-        raise DisconnectedError
-
 class Bookmark(params.Bookmark, Base):
     def __init__(self, superclass, context):
         Base.__init__(self, context)


-- 
To view, visit http://gerrit.ovirt.org/37863
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If02d79178a0f15c4d051af36aa331c6dbb7455c0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to