jnpr/space/collection.py
def _create_named_resource(self, key, meta_object, xml_root):
        """
        Helper method to create a named resource under this collection.
        """
        type_name = meta_object['resource_type']
        xml_data = xml_root.find(meta_object['xml_name']) \
            if xml_root is not None else None
        from jnpr.space.resource import Resource
        resrc = Resource(type_name=type_name,
                         rest_end_point=self._rest_end_point,
                         xml_data=xml_data,
                         parent=self)
        resrc.id = key
        return resrc

        Helper method to create a named resource under this collection.
        
Helper method to create a named resource under this collection.
Helper method to create a named resource under this collection .
def _create_named_resource(self, key, meta_object, xml_root):
        type_name = meta_object['resource_type']
        xml_data = xml_root.find(meta_object['xml_name']) \
            if xml_root is not None else None
        from jnpr.space.resource import Resource
        resrc = Resource(type_name=type_name,
                         rest_end_point=self._rest_end_point,
                         xml_data=xml_data,
                         parent=self)
        resrc.id = key
        return resrc
def _create_named_resource ( self , key , meta_object , xml_root ) : type_name = meta_object [ 'resource_type' ] xml_data = xml_root . find ( meta_object [ 'xml_name' ] ) if xml_root is not None else None from jnpr . space . resource import Resource resrc = Resource ( type_name = type_name , rest_end_point = self . _rest_end_point , xml_data = xml_data , parent = self ) resrc . id = key return resrc
Helper method to create a named resource under this collection.
Helper method to create a named resource under this collection .
"""
        Helper method to create a named resource under this collection.
        """
self
key
meta_object
xml_root