abw / apps / autobuild /

#! /usr/bin/env python

from uliweb.form import *
from uliweb.i18n import ugettext as _

class ChangeLogForm(Form):
    form_buttons = Submit(value='提交查询', _class="button")
    form_title = '提交查询'
    status = StringField(label='status(merged/open/abandoned):',html_attrs={'size':8})
    branch = StringField(label='branch(i.e.:a60_dev):',html_attrs={'size':16})
    limit = IntField(label='limit(i.e.:500):',html_attrs={'size':8})

class EditBuildInfoForm(Form):
    note = StringField(label='build note',name='note')
    keep = BooleanField(label=_('keep this file from clean'),name='keep',id='string_keep')

if __name__ == '__main__':
    f = ChangeLogForm(data={"status":"merged","branch":"a60_dev"},html_attrs={"size":8})
    print f
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.