[web2py] Re: Basic question about app compile

2017-09-21 Thread Jordan Ladora
i see- thanks! On Thursday, September 21, 2017 at 10:10:27 AM UTC-6, Anthony wrote: > > On Thursday, September 21, 2017 at 11:25:38 AM UTC-4, Jordan Ladora wrote: >> >> >> Thank you both very much for the help. I didn't find that thread you >> mentioned, Anthony, before I posted my question

Re: [web2py] Re: 'validate_and_insert' throws error each time on latest version where it was fine before on prev version

2017-09-21 Thread Jordan Ladora
My bad - I was confused there. Forgot to post this earlier, but you were totally right; it's only happening when not logged in. Thanks again for your patience & help. -j On Tuesday, June 6, 2017 at 2:41:56 PM UTC-6, Jordan Ladora wrote: > > Thank you for checking that. > > Yeah, I'm still

[web2py] Re: form in bootstrap modal

2017-09-21 Thread runruh11
aww chapter 12 how I have avoided thee. Thanks Leonel I will give it a go. On Wednesday, September 20, 2017 at 3:23:11 AM UTC-7, Leonel Câmara wrote: > > One way to do it is to load the form in the modal's body using > $.web2py.component when the user triggers the action that opens it, then >

[web2py] Re: Basic question about app compile

2017-09-21 Thread Anthony
On Thursday, September 21, 2017 at 11:25:38 AM UTC-4, Jordan Ladora wrote: > > > Thank you both very much for the help. I didn't find that thread you > mentioned, Anthony, before I posted my question yesterday. Thanks for > mentioning all that. > > Incidentally, is there any way to install the

[web2py] Re: Build query without DB connection

2017-09-21 Thread Anthony
You might try something like this in your module: dummy_db = DAL('sqlite:memory', do_connect=False, migrate_enabled=False) def define_tables(db): db.define_table('mytable', Field('field1'), Field('field2')) define_tables(dummy_db) query1 = dummy_db.mytable.field1 == 'some value' query2 =

[web2py] Re: Basic question about app compile

2017-09-21 Thread Jordan Ladora
Thank you both very much for the help. I didn't find that thread you mentioned, Anthony, before I posted my question yesterday. Thanks for mentioning all that. Incidentally, is there any way to install the compiled & packed app without appadmin? For security & compactness I run

[web2py] move database to mongodb

2017-09-21 Thread 黄祥
it seems move existing code that use a rdms (sqlite, mysql, postgresql) to mongodb need an extra effort. e.g. *DAL connection from book* >>> db = DAL('mongodb://user:password@localhost/connect_test') *Error:* ... OperationFailure: command SON([('authenticate', 1), ('user', u'user'), ('nonce',

[web2py] checkbox don't appear

2017-09-21 Thread Lars
Hi, I want to display a form with the following code : def display_line(): T = current.T try: return TR( TD(id), TD(file_name), TD(file_size), TD(file_type), TD(INPUT(_type='submit', _name=T('Rename'), _value=T('Rename'

[web2py] Re: couchdb anybody?

2017-09-21 Thread 黄祥
tested in web2py 2.15.4, ubuntu xenial 64 (vagrant), couchdb install via apt install couchdb, test in http browser (http://127.0.0.1:5984) : {"couchdb":"Welcome","uuid":"xxx","version":"1.6.0","vendor":{"name":"Ubuntu","version":"15.10"}} *private/appconfig.ini* uri =

[web2py] Re: Show sqlform when button is clicked

2017-09-21 Thread Mujeeb Farees
I used JQuery instead and did the following, *View* Home Add Home {{=form}} $( document ).ready(function() { $('form').hide(); }); function displayHomeForm() { $('#chooseHome').hide();

[web2py] Re: Build query without DB connection

2017-09-21 Thread Brendan Barnwell
On Wednesday, September 20, 2017 at 10:31:04 PM UTC-7, Massimo Di Pierro wrote: > > In web2py, and in general in code that runs multithreaded you should not > define variables in modules at top level and then import them because they > are cached and then shared by multiple threads. That is not