[web2py] Re: On validation question

2019-01-10 Thread Yann Dulondel
Thank Anthony, logical now you give this simple solution. Yann Le jeudi 10 janvier 2019 03:11:15 UTC+1, Anthony a écrit : > > Just don't make that check part of your onvalidation function. You can > add to form.errors at any time, so do it after the validation: > > form = SQLFORM(...).process

[web2py] Getting SQL syntax error during import as CSV file in gird - 2.17.2

2019-01-10 Thread sandeep patel
Hello, I am surprised, why I am getting an SQL syntax error in 2.17.2 while that is well working in 2.16.1. This error getting when I import CSV file form gird. Has any new SQL reserved Keyword added to Web2py 2.17.2? Ticket ID 127.0.0.1.2019-01-10.14-01-36.65d7947a-df35-4a9c-89c2-c3575c69821

[web2py] getting auth.settings.login_next = URL('function') to work

2019-01-10 Thread mostwanted
I would really appreciate it if someone would explain to me in very simple English & in a very straight & forward manner how to get *auth.settings.login_next = URL('function')* to work! Mine is not working and i have looked at every thread that explains it particularly this one https://groups

[web2py] Re: getting auth.settings.login_next = URL('function') to work

2019-01-10 Thread Anthony
auth.settings.login_next is just a default -- it is overridden if there is a _next variable in the URL query string (which will be the case if the user arrives at login page via the auth.navbar() menu). For options to change this behavior, see https://groups.google.com/d/msg/web2py/wKd5QN5R5fs/

[web2py] Search using search widget return not autorized

2019-01-10 Thread Yann Dulondel
Hi, I want to pass a value to a function for using it in a query I made links with this code in the calling grid links = [lambda row: A(T('View flexi list'),_href=URL(show_flexlist,args=[row.id,0],user_signature=True)),lambda row: A(T('View flexi list'),_href=URL(show_flexlist,args=[row.id,

[web2py] MARKMIN extend with css ".card.bg-warning"

2019-01-10 Thread Daniel Vogel
Hello Is it possible to extend the MARKMIN syntax with two classes? Web2py version 2.17.2 This works: `` This text use css card ``:card Now with two classes, isn't working: `` This text use css card ``:card.bg-warning Rendered as: This text use css card .bg-warning Thanks Daniel -- Reso

[web2py] How to prevent google from indexing .load files

2019-01-10 Thread Stephan
Hello there, my question maybe touches rather how to structure a project probably. Anyway: I have an App that lists a portfolio and involves pagination. In order to avoid the whole page from being loaded every time the next portfolio item set (page) is called, I am reloading the portfolio compo

[web2py] [PyDAL] AttributeError '_thread._local' object has no attribute '_pydal_connection_somerandomnumber'

2019-01-10 Thread kvanzuijlen
Hello, We are trying to use PyDAL 17.11 on a PostgreSQL database in combination with falcon on gunicorn. When we instantiate the db connection in the on_get or on_post methods it is successful. Now we want to minimize the number of db connections by instantiating the connection in the __init__

[web2py] Recover images web2py

2019-01-10 Thread Lucas Manoel
i have a image uploaded, how do i recover it on html? Any idea? -- 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

[web2py] web2py docker

2019-01-10 Thread Lucas Manoel
I created a image on docker that have web2py How do i put my application at applications web2py folder? -- 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) --- Y

[web2py] Re: getting auth.settings.login_next = URL('function') to work

2019-01-10 Thread mostwanted
Thanks you for your patience Anthony to keep repeating the same thing over & over for some of us, my code is finally working, I think the magic is with *request.vars._next = None* because right after adding that line everything started happening as it should, I am able to redirect. Much apprec

[web2py] Re: Recover images web2py

2019-01-10 Thread Anthony
Assuming you have used a DAL upload field to upload and store the file, you can use response.download() to retrieve and return the file. See http://web2py.com/books/default/chapter/29/04/the-core#response. The welcome app includes a /default/download action that uses response.download() for thi

[web2py] Load / no ajax / custom div

2019-01-10 Thread Vlad
I am using Load function (ajax=False) which creates a div it's using to load the context in. Is there an easy way to specify this div to be of a certain class? (I want to add "d-flex" class to it, to use flex in the html/container I am loading) -- Resources: - http://web2py.com - http://web2p

[web2py] Re: Load / no ajax / custom div

2019-01-10 Thread Anthony
You can pass in arguments as with other HTML helpers: LOAD(..., _class='d-flex') Anthony On Thursday, January 10, 2019 at 4:05:43 PM UTC-5, Vlad wrote: > > I am using Load function (ajax=False) which creates a div it's using to > load the context in. > > Is there an easy way to specify this di

Re: [web2py] Re: Load / no ajax / custom div

2019-01-10 Thread Eliezer (Vlad) Tseytkin
Oh no, I missed that **attr in small print in the signature of Load Thank you! On Thu, Jan 10, 2019, 5:14 PM Anthony You can pass in arguments as with other HTML helpers: > > LOAD(..., _class='d-flex') > > Anthony > > On Thursday, January 10, 2019 at 4:05:43 PM UTC-5, Vlad wrote: >> >> I am usin

[web2py] Re: On validation question

2019-01-10 Thread Dave S
On Wednesday, January 9, 2019 at 6:11:15 PM UTC-8, Anthony wrote: > > Just don't make that check part of your onvalidation function. You can > add to form.errors at any time, so do it after the validation: > > form = SQLFORM(...).process(onvalidation=onvalidation) > if form.accepted: >

[web2py] Re: How to prevent google from indexing .load files

2019-01-10 Thread Dave S
On Thursday, January 10, 2019 at 9:09:41 AM UTC-8, Stephan wrote: > > Hello there, > my question maybe touches rather how to structure a project probably. > Anyway: > > I have an App that lists a portfolio and involves pagination. In order to > avoid the whole page from being loaded every time

Re: [web2py] Happy New Year

2019-01-10 Thread 黄祥
oot, just suggestion since web2py is full stack web framework *ref:* https://github.com/kamranahmedse/developer-roadmap best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: web2py docker

2019-01-10 Thread 黄祥
> > How do i put my application at applications web2py folder? > not sure what do you want to achieve - if you want to distribute your docker image with web2py app inside, must put your web2py app under applications folder in dockerfile file, so when the user execute docker run your web2py app

[web2py] Problem with a link that displaying wrong information upon clicking

2019-01-10 Thread mostwanted
My task I want to believe is fairly simple but something is wrong in my code, I am attempting to incorporate something I learned from Anthony into a small idea I have but its going side ways. I have names from a database displayed as links, what i want is for the details of those names to be di

[web2py] Re: Slightly on-topic -- CMSs

2019-01-10 Thread Dave S
On Tuesday, January 8, 2019 at 8:14:27 PM UTC-8, Dave S wrote: > > I'd like to ask a couple questions of those of you running a Content > Management System in conjunction with web2py applications. > > 1. What do you consider important in a CMS? > 2. Who's in charge? (no, not names, what roles