view data/plugin/macro/FormFooter.py @ 617:07e8932e3594

add code from MacroMarket/FormCreate (form_create-1.7.tgz) - outdated code for moin 1.7/1.8
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Mar 2013 16:16:43 +0100
parents
children e6a6740166c8
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - FormFooter Macro

    

    @copyright: 2008 by Peter Bodi <petrdll@centrum.sk>
    @license: GNU GPL, see COPYING for details.
"""

from FormBase import FormBase

class FormFooter(FormBase):
        
    def build(self):
        self.output += self._build_input("hidden", "labels", {'value':';'.join(self.request.labels)})
        self.output += "</form>\n"
        
def execute(macro, args):
    return FormFooter(macro, args).render()