Esempio n. 1
0
class RegistrationForm(Form):
    email = StringField('Email Address', [validators.Length(min=6, max=50),validators.DataRequired(), Email()])
    password = PasswordField('New Password', [
        validators.DataRequired(),
        validators.EqualTo('confirm', message='Passwords must match'), validators.Length(min=6, max=50)
    ])
    confirm = PasswordField('Repeat Password')
    choices = dbAccessChoices()    
    requestAccess= sf(choices[1],choices=choices)
class addPointForm(Form):
    lat = StringField('Latitude', [validators.DataRequired()])
    long = StringField('Longitude', [validators.DataRequired()])
    choices = [('Papier', 'Papier'), ('Restmuel', 'Restmuel'),
               ('Organisch', 'Organisch'), ('Wertsteff', 'Wertsteff'),
               ('Glass', 'Glass'), ('Restmuel', 'Restmuel'),
               ('Other', 'Other'), ('Mixed', 'Mixed')]

    trashType = sf(u'Mixed', choices=choices)
Esempio n. 3
0
class addPointForm(Form):
    lat = FloatField(
        'Latitude',
        [validators.DataRequired(),
         validators.NumberRange(min=-90, max=90)])
    lon = FloatField(
        'Longitude',
        [validators.DataRequired(),
         validators.NumberRange(min=-180, max=180)])
    choices = dbTrashChoices()
    trashType = sf(choices[0], choices=choices)
Esempio n. 4
0
class addPointForm(Form):
    lat = FloatField('Latitude', [validators.DataRequired()])
    lon = FloatField('longitude', [validators.DataRequired()])
    supermarket_name = StringField('Supermarket name',
                                   [validators.DataRequired()])
    phone = StringField('Phone number')
    email = StringField('Email')
    web = StringField('Web')
    contact_person = StringField('Contact person at the supermarket')
    first_contact = StringField('First contact person at the supermarket')
    last_contact = StringField('Last contact person at the supermarket')
    outdoor_person = StringField('Outdoor person assigned to this supermarket')
    choices = dbCustChoices()
    choice = sf(choices[0], choices=choices)
Esempio n. 5
0
class touristForm(Form):
    city = StringField('Tourist city')
    tops = dbProductChoices()
    top1 = sf(tops[0], choices=tops)
    top2 = sf(tops[0], choices=tops)
    top3 = sf(tops[0], choices=tops)
    lastTrips = dbCountryChoicesEmpty()
    last_trip = sf(lastTrips[0], choices=lastTrips)
    next_trip = sf(lastTrips[0], choices=lastTrips)
    age = StringField('Tourist age')
    maxbudget = StringField('Tourist budget')
    vegeterian = dbVegChoices()
    veg = sf(vegeterian[0], choices=vegeterian)
    countries = dbCountryChoices()
    country = sf(countries[0], choices=countries)
    genders = dbMaleChoices()
    gender = sf(genders[0], choices=genders)
Esempio n. 6
0
class RegistrationForm(Form):
    email = StringField(
        'Email Address',
        [validators.Length(min=6, max=50),
         validators.DataRequired()])
    password = PasswordField('New Password', [
        validators.DataRequired(),
        validators.EqualTo('confirm', message='Passwords must match'),
        validators.Length(min=6, max=50)
    ])
    confirm = PasswordField('Repeat Password')
    """
    profession = RadioField(
        'Your Profession',
        choices=[('Registrador','Registrador'), ('Notario','Notario'), ('Ing. tecnico topografo','Ing. tecnico topografo',),
        ('Ing. en geodesia','Ing. en geodesia'), ('Ing. en geomatica','Ing. en geomatica'), 
        ('Master en geomatica y geoinformacion','Master en geomatica y geoinformacion'),
        ('Arquitecto','Arquitecto'),
        ('Ing. Caminos','Ing. Caminos'),
        ('Ing. agronomo','Ing. agronomo'),
        ('Ing. Agricola','Ing. Agricola'), ('Otro','Otro')]
    """

    choices = [('Registrador', 'Registrador'), ('Notario', 'Notario'),
               (
                   'Ing. tecnico topografo',
                   'Ing. tecnico topografo',
               ), ('Ing. en geodesia', 'Ing. en geodesia'),
               ('Ing. en geomatica', 'Ing. en geomatica'),
               ('Master en geomatica y geoinformacion',
                'Master en geomatica y geoinformacion'),
               ('Arquitecto', 'Arquitecto'), ('Ing. Caminos', 'Ing. Caminos'),
               ('Ing. agronomo', 'Ing. agronomo'),
               ('Ing. Agricola', 'Ing. Agricola'), ('Otro', 'Otro')]

    profession = sf(u'Registrador', choices=choices)
Esempio n. 7
0
class addPointForm(Form):
    lat = FloatField('Latitude', [validators.DataRequired()])
    lon = FloatField('longitude', [validators.DataRequired()])
    choices = dbTrashChoices()
    trashType = sf(choices[0], choices=choices)