@classmethod
    def extract_pool_attr(cls, req):

        attr = {}
        if 'id' in request.params:
            attr['id'] = int(request.params['id'])
        if 'name' in request.params:
            attr['name'] = request.params['name']
        if 'description' in request.params:
            attr['description'] = request.params['description']
        if 'default_type' in request.params:
            attr['default_type'] = request.params['default_type']
        if 'ipv4_default_prefix_length' in request.params:
            attr['ipv4_default_prefix_length'] = int(request.params['ipv4_default_prefix_length'])
        if 'ipv6_default_prefix_length' in request.params:
            attr['ipv6_default_prefix_length'] = int(request.params['ipv6_default_prefix_length'])

        return attr
Pop up a node creation context menu at a given location.
dataset/ETHPy150Open SpriteLink/NIPAP/nipap-www/nipapwww/controllers/xhr.py/XhrController.extract_pool_attr--crossover with--dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_graphics_widgets.py/GraphicsViewWidget.showContextMenu