From: Thierry Parmentelat Date: Fri, 10 Jul 2009 14:45:18 +0000 (+0000) Subject: rename 'BindRemoteObjectToPeer into BindObjectToPeer + remove print message' X-Git-Tag: PLCAPI-4.3-22~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=070c137a6d1ccba42acaa980dcc9aee2c03bd363;p=plcapi.git rename 'BindRemoteObjectToPeer into BindObjectToPeer + remove print message' --- diff --git a/PLC/Methods/BindRemoteObjectToPeer.py b/PLC/Methods/BindObjectToPeer.py similarity index 97% rename from PLC/Methods/BindRemoteObjectToPeer.py rename to PLC/Methods/BindObjectToPeer.py index 0be5a6a6..c9cf4e48 100644 --- a/PLC/Methods/BindRemoteObjectToPeer.py +++ b/PLC/Methods/BindObjectToPeer.py @@ -10,7 +10,7 @@ from PLC.Nodes import Nodes from PLC.Slices import Slices from PLC.Peers import Peers -class BindRemoteObjectToPeer(Method): +class BindObjectToPeer(Method): """ This method is a hopefully temporary hack to let the sfa correctly attach the objects it creates to a remote peer object. This is @@ -62,7 +62,6 @@ class BindRemoteObjectToPeer(Method): object = self.locate_object (object_type, object_id) adder_name = 'add_'+object_type add_function = getattr(type(peer),adder_name) - print 'object',object add_function(peer,object,remote_object_id) return 1 diff --git a/PLC/Methods/__init__.py b/PLC/Methods/__init__.py index d2a11f25..a68a7bd5 100644 --- a/PLC/Methods/__init__.py +++ b/PLC/Methods/__init__.py @@ -40,7 +40,7 @@ AddSliceToNodes AddSliceToNodesWhitelist AddTagType AuthCheck -BindRemoteObjectToPeer +BindObjectToPeer BlacklistKey BootCheckAuthentication BootGetNodeDetails