class settings(dbsettings.Group): boolean = dbsettings.BooleanValue(default=True) boolean_false = dbsettings.BooleanValue(default=False) integer = dbsettings.IntegerValue(default=1) string = dbsettings.StringValue(default="default") list_semi_colon = dbsettings.MultiSeparatorValue(default=['one','two']) list_comma = dbsettings.MultiSeparatorValue(separator=',',default=('one','two')) date = dbsettings.DateValue(default=datetime.date(2012, 3, 14)) time = dbsettings.TimeValue(default=datetime.time(12, 3, 14)) datetime = dbsettings.DateTimeValue(default=datetime.datetime(2012, 3, 14, 12, 3, 14))
class SetTopBoxOptions(dbsettings.Group): auto_create = dbsettings.BooleanValue( _('Auto criação de settopbox no login'), default=False) auto_add_channel = dbsettings.BooleanValue( _('Cria automaticamente o vinculo entre settopbox e canal'), default=False ) auto_enable_recorder_access = dbsettings.BooleanValue( _('Automaticamente libera o acesso nas gravações do canal'), default=False ) use_mac_as_serial = dbsettings.BooleanValue( _('Caso não seja fornecido via post, utiliza o MAC como serial'), default=True )
class PeopleDetectorAlgorithmSettingGroup(dbsettings.Group): implementation = dbsettings.StringValue( description='People image tracking algorithm implementation', required=False, default='hog', choices=PEOPLE_DETECTOR_IMPL_CHOICES) rect_line_width = dbsettings.PositiveIntegerValue( description='People tracking rectangle line width (px)', required=True, default=2) rect_line_color = RGBValue( description='People tracking rectangle color (RGB)', required=True, default=['0', '0', '255'], separator=',') output_enhanced_image = dbsettings.BooleanValue( description='Save image enhanced with people tracking data', required=True, default=True) image_output_path = dbsettings.StringValue( help_text='Output path for image enhanced with people tracking data', required=True, default='/tmp/scamera/people_tracking/')
class TestSettings(dbsettings.Group): boolean = dbsettings.BooleanValue() integer = dbsettings.IntegerValue() string = dbsettings.StringValue() list_semi_colon = dbsettings.MultiSeparatorValue() list_comma = dbsettings.MultiSeparatorValue(separator=',') date = dbsettings.DateValue() time = dbsettings.TimeValue() datetime = dbsettings.DateTimeValue()
class SetTopBoxDefaultConfig(dbsettings.Group): password = STBPassValue( _('Senha do cliente'), help_text='Senha equipamento do cliente', default=None) recorder = dbsettings.BooleanValue( _('Acesso à Gravações habilitado'), default=False) parental = dbsettings.StringValue( _('Controle parental'), choices=CHOICES_PARENTAL, default=-1)
class SiteSettings(dbsettings.Group): enabled = dbsettings.BooleanValue('Send email after purchase', default=False) sender = dbsettings.StringValue('address to send emails from') subject = dbsettings.StringValue() products_per_page = dbsettings.PositiveIntegerValue( 'Number of products to be displayed on a page', default=20) remove_cart = dbsettings.PositiveIntegerValue( 'Remove cart after how many days of inactivity', default=1)
class TestSettings(dbsettings.Group): boolean = dbsettings.BooleanValue() integer = dbsettings.IntegerValue() string = dbsettings.StringValue() list_semi_colon = dbsettings.MultiSeparatorValue() list_comma = dbsettings.MultiSeparatorValue(separator=',') date = dbsettings.DateValue() time = dbsettings.TimeValue() datetime = dbsettings.DateTimeValue() string_choices = dbsettings.StringValue(choices=(("String1", "First String Choice"), ("String2", "Second String Choice")))
class Shop(dbsettings.Group): shop_name = dbsettings.StringValue(_("shop name")) shop_name_2 = dbsettings.StringValue(_("shop name 2"), required=False) address = dbsettings.TextValue(_("address")) extra_info = dbsettings.StringValue(_("extra information"), required=False) vat_no = dbsettings.StringValue(_("vat number"), required=False) terms_of_sale = dbsettings.TextValue(_("terms of sale")) payment = dbsettings.BooleanValue(_("enable payment")) merchant_number = dbsettings.StringValue(_("merchant id"), required=False) order_thanks = dbsettings.TextValue(_("Thank you text"), required=False)
class ClashSettings2(dbsettings.Group): clash2 = dbsettings.BooleanValue()
class ClashSettings1(dbsettings.Group): clash1 = dbsettings.BooleanValue()
class settings(dbsettings.Group): enabled = dbsettings.BooleanValue()
class MLOptions(dbsettings.Group): """DB settings for the machine learning""" enable = dbsettings.BooleanValue( 'automatically resolve response tasks by machine learning') confidence_min = dbsettings.PositiveIntegerValue( 'minimum percent confidence level to automatically resolve')
class FOIAOptions(dbsettings.Group): """DB settings for the FOIA app""" enable_followup = dbsettings.BooleanValue( 'whether to send automated followups or not') enable_weekend_followup = dbsettings.BooleanValue( 'whether to send automated followups or not on the weekends')
class TestSettings(dbsettings.Group): boolean = dbsettings.BooleanValue() integer = dbsettings.IntegerValue() string = dbsettings.StringValue()