Package coprs :: Module forms :: Class BasePackageForm
[hide private]
[frames] | no frames]

Class BasePackageForm

source code

Known Subclasses:

Class Variables [hide private]
  package_name_regex = r"^[-+_.a-zA-Z0-9]+$"
  package_name = wtforms.StringField("Package name", validators=...
  webhook_rebuild = wtforms.BooleanField(default= False, false_v...
  chroot_blacklist = wtforms.StringField("Chroot blacklist", fil...
  max_builds = wtforms.IntegerField("Max number of builds", desc...
Class Variable Details [hide private]

package_name

Value:
wtforms.StringField("Package name", validators= [wtforms.validators.Re\
gexp(re.compile(package_name_regex), message= "Please enter a valid pa\
ckage name in "+ package_name_regex)])

webhook_rebuild

Value:
wtforms.BooleanField(default= False, false_values= FALSE_VALUES)

chroot_blacklist

Value:
wtforms.StringField("Chroot blacklist", filters= [cleanup_chroot_black\
list], validators= [wtforms.validators.Optional(), validate_chroot_bla\
cklist,],)

max_builds

Value:
wtforms.IntegerField("Max number of builds", description= """Keep only\
 the specified number of the newest-by-id builds
        (garbage collector is run daily)""", render_kw= {'placeholder'\
: 'Optional - integer, e.g. 10, zero/empty disables'}, validators= [wt\
forms.validators.Optional(), wtforms.validators.NumberRange(min= 0, ma\
x= 100)], default= None,)