'Sets public root node so that it is of form "/foo".'

def ProcessPublicRootNode(self, node):

    new_root = node.text
    if new_root:
        if ('*' in new_root):
            self.errors.append('public-root    cannot    contain    wildcards')
            return
        if new_root.endswith('/'):
            new_root = new_root[:(-1)]
        if (not new_root.startswith('/')):
            new_root = ('/' + new_root)
        self.app_engine_web_xml.public_root = new_root
