'Generates a trivial view of the specified ``view_type``.
The generated view is empty but ``name`` is set as its root\'s ``@string``.
If ``parent`` is not falsy, generates an extension view (instead of
a root view) replacing the parent\'s ``@string`` by ``name``
:param str name: ``@string`` value for the view root
:param str view_type:
:param bool parent:
:return: generated arch
:rtype: str'

def arch_for(self, name, view_type='form', parent=None):

    if (not parent):
        element = E(view_type, string=name)
    else:
        element = E(view_type, E.attribute(name, name='string'), position='attributes')
    return etree.tostring(element)
