Beispiel #1
0
 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))
Beispiel #2
0
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
    )
Beispiel #3
0
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/')
Beispiel #4
0
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()
Beispiel #5
0
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)
Beispiel #6
0
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)
    
    
Beispiel #7
0
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")))
Beispiel #8
0
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)
Beispiel #9
0
class ClashSettings2(dbsettings.Group):
    clash2 = dbsettings.BooleanValue()
Beispiel #10
0
class ClashSettings1(dbsettings.Group):
    clash1 = dbsettings.BooleanValue()
Beispiel #11
0
 class settings(dbsettings.Group):
     enabled = dbsettings.BooleanValue()
Beispiel #12
0
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')
Beispiel #13
0
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')
Beispiel #14
0
Datei: tests.py Projekt: ewe2/G2
class TestSettings(dbsettings.Group):
    boolean = dbsettings.BooleanValue()
    integer = dbsettings.IntegerValue()
    string = dbsettings.StringValue()