[web2py] Label in Form

2016-05-08 Thread R U
I am fairly new to all things coding and the learning has been slow. My question is how to insert a label or legend in a form when making the form from the model. If that is not possible I will need to make the form in the controller. the problem I run into there is how to create a boolean. The

[web2py] image in a jumbotron

2016-07-26 Thread R U
Sorry to bother with something so trivial but this problem is not getting solved by me I cannot get an image to show. I am using python anywhere the image is stored in static/images as DVimg.JPG Then in views/default/index.html I have the following. some big text la la blah and blah

[web2py] form in bootstrap modal

2017-09-14 Thread R U
I have embedded a form inside of a bootstrap modal. If the form is filled in correctly it redirects. If there are errors the modal closes and the main page goes back to how it first looked. Only when I click on the "Sign up Here" button does it reveal that there were errors and what the errors a

[web2py] override record in db

2017-10-31 Thread R U
I am curious of how to override an existing record in a database via a form. Take for example a simple input of db = DAL('sqlite://storage.sqlite') db.define_table('person', Field('email', requires=IS_EMAIL()), Field('Your_Zipcode', requires=IS_NOT_EMPTY()), If the same email address is e

[web2py] loop bootstrap grid

2018-12-11 Thread R U
I am trying to loop a dict in a bootstrap grid where the key is on top of the value(this does work); the key value pairs should sit side by side in neat rows of 3 as in col-sm-3* (this does not happen)* *Problem*: the print is either to the left or to the right with only one div per row; they stac

[web2py] check boxes with is_in_set

2016-12-08 Thread R U
hi all, I understand this might be too much in the realm of "please write my code for me" with that in mind let me ask. Is it possible to use -- is_in_set -- to create a list of check boxes instead of a drop-down? what I am doing is: two types of users. both have access to the same list. user t

[web2py] list of dates into database

2017-04-18 Thread R U
I am trying to insert many dates into a field. Currently I am only getting 1 date inserted. my overall goal is to insert many (semi random) dates into the database; each user will have his/her own unique list. Then later iterate over the list having the date trigger some event if it equals today'

[web2py] function contingent on registration

2017-05-19 Thread R U
I would like to add a list of dates into my data base when the user signs up. from datetime import date, datetime, timedelta import random from random import randint dog = randint(3,25) def perdelta(start, end, delta): curr = start while curr < end: yield curr curr += delta