def execute(pagename, request): """ Temporary glue code for current moin action system """ if request.method != 'POST': return False, u'' # Editaction allows for meta editing actions to be used for # editing target page editaction = request.values.get('editfunc', '') # Edit actions assumed to be all in lower case editaction = editaction.lower() if editaction == 'editmetaform': return MetaFormEdit.execute(request, pagename) elif editaction == 'editmeta': return editmeta.execute(request, pagename) return NewPage(request, pagename).render()
def execute(pagename, request): MetaFormEdit.execute(pagename, request)