[web2py] Re: Select filled with years

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 1:23:16 PM UTC-7, Dave S wrote: > > > > On Sunday, April 16, 2017 at 9:11:37 PM UTC-7, Winter Kryz wrote: >> >> Thanks, but how can I do the loop thing. I'm new on web2py so I don't >> know how to do that. >> >> Can you explain me please? >> >> > > I have a models/my

Re: [web2py] testing applications

2017-04-17 Thread Marlysson Silva
You can use the webcliente and after construct the web2pyenv with data of webclient if this is possible.. -- 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) ---

[web2py] Re: Use length of list:reference field in query

2017-04-17 Thread Sharjeel Ali Shaukat
Its help me alot Thanks -- 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 received this message because you are subscribed to the Google Groups "web2py

[web2py] Re: Use length of list:reference field in query

2017-04-17 Thread Mujeeb Farees
Thank you for answering, this worked for me. I want to avoid loops after query, so I used *users_gt_2* approach. On Monday, April 17, 2017 at 7:10:38 PM UTC+5, Anthony wrote: > > list:-type fields are stored as strings with items being delimited by the > "|" character, so you can do a query that

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2017-04-17 Thread webmaster
Please mark this as "Best Answer". It uses web2py's internal password reset mechanism. Just gave it a fairly thorough testing. I really appreciate the people who gave help in this thread and a couple others about resetting passwords. This should mostly suffice until we get a real solution (

[web2py] Using validate_and_insert with a computed field

2017-04-17 Thread Chris
Hello, I've got a users table with a computed field: db.define_table( auth.settings.table_user_name, [...] Field('calculated_field', requires=IS_NOT_EMPTY(), compute=lambda(r): calculate_field(r)), And a bit of code that uses validate_and_insert() to insert a row:

[web2py] Re: table already exists; 'Rows' object has no attribute 'fields'

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 3:58:38 PM UTC-7, pbreit wrote: > > Sqlite. These are fresh installs with just a table defined and no other > edits. > > I've noticed that I can get it to work if I quickcreate the new app, call > it up in a browser so the initial tables get created, add my own mode

[web2py] Re: table already exists; 'Rows' object has no attribute 'fields'

2017-04-17 Thread pbreit
Sqlite. These are fresh installs with just a table defined and no other edits. I've noticed that I can get it to work if I quickcreate the new app, call it up in a browser so the initial tables get created, add my own models and the call it up again. On Monday, April 17, 2017 at 1:29:09 PM UT

[web2py] Re: use case: user login on android

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 1:20:20 PM UTC-7, Oasis Agano wrote: > > No extra modifications inside the web2py controller? I want to > authenticate users available in a web2py application through an android app > > I don't know of anything particularly unusual, but I haven't done android apps s

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 1:16:49 PM UTC-7, Oasis Agano wrote: > > You mean that it doesnt require modifying core Web2py code? or adding > other codes inside your controller? because what i want is actually logging > in and storing a token returned by w2p. > > It is already part of web2py co

[web2py] Re: table already exists; 'Rows' object has no attribute 'fields'

2017-04-17 Thread Dave S
On Sunday, April 16, 2017 at 12:31:04 AM UTC-7, pbreit wrote: > > I'm a long time web2py user running into some problems I haven't seen > before and cannot resolve. > > First, I am getting this error a lot even when I create a brand new > project from scratch: > > OperationalError: table "auth_us

[web2py] Re: CKEditor CDN

2017-04-17 Thread Dave S
On Sunday, April 16, 2017 at 7:19:53 PM UTC-7, Alex Glaros wrote: > > "basic" works to fix sanitation problem > > https://cdn.ckeditor.com/4.6.2/basic/ckeditor.js";> > Glad you got it working. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Select filled with years

2017-04-17 Thread Dave S
On Sunday, April 16, 2017 at 9:11:37 PM UTC-7, Winter Kryz wrote: > > Thanks, but how can I do the loop thing. I'm new on web2py so I don't know > how to do that. > > Can you explain me please? > > I have a models/mymodel.py that has something like: db.define_table('mytable',

[web2py] Re: use case: user login on android

2017-04-17 Thread Oasis Agano
No extra modifications inside the web2py controller? I want to authenticate users available in a web2py application through an android app On Monday, April 17, 2017 at 10:07:24 PM UTC+2, Dave S wrote: > > > > On Monday, April 17, 2017 at 4:08:29 AM UTC-7, Oasis Agano wrote: >> >> Can Someone writ

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Oasis Agano
You mean that it doesnt require modifying core Web2py code? or adding other codes inside your controller? because what i want is actually logging in and storing a token returned by w2p. On Monday, April 17, 2017 at 10:05:53 PM UTC+2, Dave S wrote: > > > > On Monday, April 17, 2017 at 4:18:48 AM

[web2py] Re: use case: user login on android

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 4:08:29 AM UTC-7, Oasis Agano wrote: > > Can Someone write a slice on how to connect an android app to a web2py > server, using java and py > Android end just has to do GET and POST, innit? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 4:18:48 AM UTC-7, Oasis Agano wrote: > > Hello, > Can someone create a web2pyslice explaining how to do it and what to > change in web2py gluon in order to connect an android native app to it. > 4 years later people(e.g: me, my colleagues...) are still facing the sam

[web2py] Re: Highlighting the fields that user can't leave blank

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 11:02:46 AM UTC-7, Marcelo Huerta wrote: > > El miércoles, 12 de abril de 2017, 9:51:25 (UTC-3), Anthony escribió: >> >> First, don't use Crud, as it has been deprecated. Just use SQLFORM. >> > > I guess the book should reflect this, then. > It still says «One of the

[web2py] Re: Highlighting the fields that user can't leave blank

2017-04-17 Thread Marcelo Huerta
El miércoles, 12 de abril de 2017, 9:51:25 (UTC-3), Anthony escribió: > > First, don't use Crud, as it has been deprecated. Just use SQLFORM. > I guess the book should reflect this, then. It still says «One of the recent additions to web2py is the Create/Read/Update/Delete (CRUD) API on top of SQ

[web2py] Could I use SQLFORM.factory to update 2 tables in a single form

2017-04-17 Thread Rudy
Hi there, I am building an accounting system. When I create a quotation, if the item is in 'subscription' category, i want to use SQLFORM.factory(db.item, db.subscription_item) to generate a create form for submitting the necessary values. Now i want to edit these 2 tables(item and subscriptio

[web2py] best way to disable "Save Password" alert in browser

2017-04-17 Thread lucas
hello one and all, related to this other post: https://groups.google.com/forum/#!topic/web2py/FFKTOAzz59E which I was able to get working cross-browser great. however, I am trying to also massage the html/javascript of the page to disable the "Save Password" alert/notice in the browser. the

[web2py] Re: Use length of list:reference field in query

2017-04-17 Thread Anthony
list:-type fields are stored as strings with items being delimited by the "|" character, so you can do a query that counts the number of pipe characters (minus 1, because the string starts with a "|" character), and select records with a count greater than two. The functions to use may vary dep

[web2py] Re: Should I modify response.headers in order to get nginx's uwsgi_cache work properly?

2017-04-17 Thread Lisandro
I've been dealing with this problem for some time now. Some weeks ago I posted a question in stackoverflow, but I didn't find a solution yet: http://stackoverflow.com/questions/43052276/nginx-why-isnt-uwsgi-cache-working-with-this-headers Also I've been working with a sysop who knows better than

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Oasis Agano
Hello, Can someone create a web2pyslice explaining how to do it and what to change in web2py gluon in order to connect an android native app to it. 4 years later people(e.g: me, my colleagues...) are still facing the same issue and i think it can be helpful to the community. kr, Oasis On Wednes

[web2py] Re: use case: user login on android

2017-04-17 Thread Oasis Agano
Can Someone write a slice on how to connect an android app to a web2py server, using java and py On Wednesday, December 9, 2015 at 12:47:19 PM UTC+2, noam cohen wrote: > > > > > Hi > I need

[web2py] Use length of list:reference field in query

2017-04-17 Thread Mujeeb Farees
I know the auth_user table should have a company field for the case below. But this is just a sample data, the actual data is different. *Company Table* | *id* | *name* | *users* | | 1 | Com1 | |1|2| | | 2 | Com2 | |3|4|5| | The users field is of list:reference type that r

Re: [web2py] Re: pdf output of web2py-book app

2017-04-17 Thread Al Ex
Yes, I saw them. At the end I am trying to get along with convert_book.py (which is in web2py_book/private). Thank you From: Marlysson Silva Reply: web2py@googlegroups.com Date: April 10, 2017 at 22:57:04 To: web2py-users Subject: [web2py] Re: pdf output of web2py-book app Here have so