[web2py] py4web GAE db datastore connection

2020-03-18 Thread Jacinto Parga
Hi, I have deployed an app in GAE and works fine with these db settings in settings.py: # db settings APP_FOLDER = os.path.dirname(__file__) APP_NAME = os.path.split(APP_FOLDER)[-1] # DB_FOLDER:Sets the place where migration files will be created # and is the store location f

[web2py] Rocket error

2020-03-18 Thread 'Annet' via web2py-users
In web2py 2.18.5 on Mac OS X Catalina I get the following error in the terminal: ERROR:Rocket.Errors.Thread-10:Traceback (most recent call last): File "/Users/me/web2py/gluon/rocket.py", line 1288, in run self.run_app(conn) File "/Users/me/web2py/gluon/rocket.py", line 1781, in run_app

[web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Hello, I'm trying to customize the SQLFORM to look like textarea/inputwith text area floating left and submit button to the right and not bottom. I'm using the LOAD signature. I also want to hide the filed name (labelled as Questions see attached). Currently with this code, I cant hide the

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
Hi You can try with this db.posts.question.label = ' ' label attr replace field name El mié., 18 de mar. de 2020 a la(s) 09:51, Maurice Waka ( mauricew...@gmail.com) escribió: > Hello, > > I'm trying to customize the SQLFORM to look like textarea/inputwith > text area floating left and s

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Thanks. I put the code in the model.py code. It works. How about float button to right? Regards On Wed, Mar 18, 2020 at 4:00 PM Javier Pepe wrote: > Hi > > You can try with this > > db.posts.question.label = ' ' > > label attr replace field name > > > > El mié., 18 de mar. de 2020 a la(s) 09:5

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
in the manual http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms {{=form.custom.begin}} {{=form.custom.widget.question}}{{=form.custom.submit}} {{=form.custom.end}} El mié., 18 de mar. de 2020 a la(s) 10:09, Maurice Waka ( mauricew...@gmail.com) escribió: > Thank

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
I'm getting a none value. See attached. On Wed, Mar 18, 2020 at 4:14 PM Javier Pepe wrote: > in the manual > > http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms > > {{=form.custom.begin}} > {{=form.custom.widget.question}}{{=form.custom.submit}} > {{=form.custom

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
This is my code in the model.py db.define_table('posts', Field('author', 'reference auth_user', default=auth.user_id, writable=False, readable=False), Field("message", 'string', requires=IS_NOT_EMPTY(), length=512, label=T('questions'),widget=widget(_placeholder='Ty

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
I got something but still not working: buttons = [INPUT(_type="submit"),INPUT(_type="button",_onclick="history.go(-1);return False")] On Wed, Mar 18, 2020 at 4:24 PM Maurice Waka wrote: > This is my code in the model.py > > db.define_table('posts', > Field('author', 'reference a

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Javier Pepe
Change db.posts.question by db.posts.message El mié., 18 de mar. de 2020 a la(s) 10:24, Maurice Waka ( mauricew...@gmail.com) escribió: > This is my code in the model.py > > db.define_table('posts', > Field('author', 'reference auth_user', > default=auth.user_id, writable=False,

Re: [web2py] customizing SQLFORM

2020-03-18 Thread Maurice Waka
Thanks. This worked: {{=form.custom.begin}} {{=form.custom.widget.message}} {{=form.custom.submit}} {{=form.custom.end}} On Wed, Mar 18, 2020 at 4:40 PM Javier Pepe wrote: > Change > > db.posts.question by db.posts.message > > El mié., 18 de mar. de 2020 a la(s) 10:24, Maurice Waka ( >

[web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
I have used this example and noticed that with more items submitted, the textarea keeps moving down. How can I keep it sticky at the bottom of the page as the items scroll with more submissions. This is my code. {{for

Re: [web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
I found something promising here . On Wed, Mar 18, 2020 at 7:48 PM Maurice Waka wrote: > I have used this > > example and noticed that with more items submitted, the textarea keeps > m

Re: [web2py] sticky footer:How to make it stick

2020-03-18 Thread Jim S
I think you have something messed up with the code you posted. Specifically, the for loop and the two {{pass}} statements. It is important to pay attention to how the python statements in your html will affect the matching closing elements in the generated html. I'd look at a fix something lik

Re: [web2py] sticky footer:How to make it stick

2020-03-18 Thread Maurice Waka
Thank you. It now works for me. On Wed, Mar 18, 2020 at 11:05 PM Jim S wrote: > I think you have something messed up with the code you posted. > Specifically, the for loop and the two {{pass}} statements. > > It is important to pay attention to how the python statements in your html > will affec