(name, groups=None)
return '/data/{}/{}'.format('/'.join(groups), name)
Returns the reference to the data node of the given question

        >>> XFormBuilder.get_data_ref('foo')
        '/data/foo'
        >>> XFormBuilder.get_data_ref('foo', ['bar'])
        '/data/bar/foo'
        >>> XFormBuilder.get_data_ref('foo', ['bar', 'baz'])
        '/data/bar/baz/foo'
Returns the reference to the data node of the given question
Returns the reference to the data node of the given question
def get_data_ref(name, groups=None):
        """
        Returns the reference to the data node of the given question

        >>> XFormBuilder.get_data_ref('foo')
        '/data/foo'
        >>> XFormBuilder.get_data_ref('foo', ['bar'])
        '/data/bar/foo'
        >>> XFormBuilder.get_data_ref('foo', ['bar', 'baz'])
        '/data/bar/baz/foo'

        """
        if groups is None:
            return '/data/' + name
        return '/data/{}/{}'.format('/'.join(groups), name)
def get_data_ref ( name , groups = None ) : if groups is None : return '/data/' + name return '/data/{}/{}' . format ( '/' . join ( groups ) , name )