[web2py] mobile responsive table

2018-11-28 Thread lbjc1978
I'd like to have this table to fit in any media screen including ipad and mobile phone. How do I do it. This is the code: {{extend 'layout.html'}} .btn{ border-radius: .28rem; } h3 { display: block; font-size: 1.17em; margin-top: 0.5em; margin-bottom: 1em; margin-lef

[web2py] plugin_jqmobile

2018-11-14 Thread lbjc1978
Following this topic. Are we still not using the plugin? I've tried it but it does not work. I need to have some pages (see below) to be mobile friendly for an app. {{extend 'layout.html'}} http://maxc

[web2py] MongoDB

2018-11-09 Thread lbjc1978
I keep getting this information on my terminal. WARNING:pyDAL:Attributes 'required', 'cache' and 'cacheable' are unsupported by MongoDB Enter code here... How can I solve it? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: Mongodb Error

2018-11-01 Thread lbjc1978
turns out to be a password issue. 'db = DAL('mongodb://localhost/connect_test')' works well On Tuesday, 30 October 2018 23:37:23 UTC+3, 黄祥 wrote: > > from the error traceback seems like a problem with a connection to > mongodb, wrong password or username, pls ensure the authentication to > mon

[web2py] Mongodb Error

2018-10-30 Thread lbjc1978
I'm trying to use MongoDB for the first time. I looked at this link as one of the guidance. but ended up with an error. My code below: from gluon import current from pymongo import MongoClien

[web2py] Auth issues when using ldap

2018-10-26 Thread lbjc1978
I am trying out the ldap authentication from an app but encountered this error: File "/home/mau/web2py/gluon/globals.py", line 421, in self._caller = lambda f: f() File "/home/mau/web2py/applications/schoop/controllers/default.py"

[web2py] No module named states

2018-10-26 Thread lbjc1978
I have a module with this: from gluon.contrib.states import * Getting the above error. Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You recei

[web2py] mobile friendly login page

2018-10-25 Thread lbjc1978
The default login page on the desktop looks absolutely good. The mobile page,see attached needs some workup. Is there a way to align the buttons? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Python loop brings an error

2018-09-08 Thread lbjc1978
AM trying out a now game that involves a continuous input of data with an instant display to the user of an image or data from the db. How ever, when trying out a small bit of code, before I developed it to full scale, I noticed something strange. This is the code: results = [] r_lst = [] rlst3

[web2py] Access new values in last rowid

2018-08-24 Thread lbjc1978
We are a team of newbies in web2py trying out something new. If we insert into a database an item, and let modules access the new values it does not work properly as expected. The code below: code = '' form = FORM(INPUT(_name='message'), INPUT(_type='submit')) if request.vars: r

[web2py] access id of newly inserted text

2018-08-20 Thread lbjc1978
I am using javascript to insert to database and it works well with jQuery('#myform').submit(function() { ajax('{{=URL('my_search_party')}}', ['message'], 'target'); return false; }); Controller code: def my_search_party(): form = S

[web2py] multiple controllers with one view

2018-08-19 Thread lbjc1978
I have two controllers in an app. One controller has functions that manage DAL tables and forms. The second has imported module that are sometimes called. They both use one view. I have tried to figure out ho to work this out but cant find ho to print results to view from the second controller.

[web2py] how to get request.vars.value to controller

2018-08-15 Thread lbjc1978
Am puzzled by this, that I cant post text from request.vars value to database and when refreshing, the text is there but I cant access this value to controller functions. This is my code: def progress_view(): form = SQLFORM(Post, formstyle='table3cols').process() if request.vars: