[web2py] Login through modal

2016-06-24 Thread billmackalister
Here is my login. [comment] How would I make this login to appear in a modal and redirect to index.html? -- 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: Could I specific two different locations for 'include' in layout.html?

2016-06-24 Thread 黄祥
i think it can do in web2py e.g. *views/default/contact_us.html* {{right_sidebar_enabled = True}} {{block right_sidebar}} {{include 'templates/right_sidebar.html'}} {{end}} {{extend 'layout.html'}} {{include 'templates/form.html'}} best regards, stifan -- Resources: - http://web2py.com - http

[web2py] Re: Size of SQLFORM.grid items

2016-06-24 Thread Anthony
It's an argument of SQLFORM.grid. -- 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 Group

[web2py] Re: Dynamic webform to send data to SQL Server

2016-06-24 Thread soumik chaudhuri
Update: I have modified the code in controller, still I cannot insert into mssql server. I don't understand what is the problem here. #default.py def form_user(): form=SQLFORM(db.User_Input) if form.accepts(request.vars): db.User_Input.insert(**db.User_Input._filter_fields(f

[web2py] Re: Size of SQLFORM.grid items

2016-06-24 Thread Sneka R
Where do we set the maxtextlength? On Tuesday, June 14, 2016 at 4:46:05 AM UTC-5, Jitun John wrote: > > Thanks a lot Anthony. Works like Charm. > > On Monday, June 13, 2016 at 8:42:16 PM UTC+5:30, Anthony wrote: >> >> As per the documentation: >> >> >>- maxtextlength sets the maximum length of

Re: [web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-24 Thread Anthony
> This discussion is challenging and it shows that you are right that use >>> cases are useful, if only to help frame a discussion. I think that your use >>> case is not to pass the configuration information, but the need for a >>> wrapper (for pre-processing and post-processing) >>> >> >> No,

[web2py] Re: rest api tokens

2016-06-24 Thread Dave S
On Friday, June 24, 2016 at 11:43:18 AM UTC-7, Carlos Cesar Caballero wrote: > > Hi, wath is your recommended way to implement api tokens in web2py? > > Greetings. > > Web2Py has a JWT implementation you can try. See https://groups.google.com/d/msg/web2py/NUDpOmGLDTQ/gDTPxME5DwAJ> You can also

[web2py] rest api tokens

2016-06-24 Thread Carlos Cesar Caballero Díaz
Hi, wath is your recommended way to implement api tokens in web2py? Greetings. -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el com

Re: [web2py] Re: Issue with the cheatsheet for web2py

2016-06-24 Thread Jason (spot) Brower
I will make a new one if I don't hear from you. Anything else we should add? On Jun 24, 2016 12:38, "Massimo Di Pierro" wrote: > yes. If I can find the source. > > On Thursday, 23 June 2016 06:11:15 UTC-5, Encompass solutions wrote: >> >> I was using this: >> >> http://web2py.com/examples/static/

Re: [web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-24 Thread Dominic Mayers
You will not agree with my comments below. Apparently, we cannot even agree on what happened in the discussion. However, my concepts became clearer, at the least for me, in this discussion and you pointed out ways to do things that can be useful. So, I am thankful for all the time that you spe

[web2py] Could I specific two different locations for 'include' in layout.html?

2016-06-24 Thread Jing Lu
Dear web2py developers, I have two places I want to change in layout.html. One is a left-bar and one is the main frame. Is there any way to add two ‘include’? Or, is there any way that I can do something functionally similar? Thanks, -- Resources: - http://web2py.com - http://web2py.com/boo

[web2py] Re: How to check if new password is different from the actual?

2016-06-24 Thread Marlysson Silva
Yes. You can find the user logged current with : auth.user.id , and search them using the dal, i.e , db.auth_user[auth.user.id] and return the data of user, thereby verifying the field "password" ( of table ) with "form.new_passw

[web2py] Re: How to check if new password is different from the actual?

2016-06-24 Thread Marlysson Silva
Yes. You can find the user logged current with : auth.user.id , and search them using the dal, i.e , db.auth_user[auth.user.id] and return the data of user, thereby verifying the field "password" ( of table ) with "form.new_pass

[web2py] Re: problem with the display of Russian language

2016-06-24 Thread Nbush
try DAL(mssql4://user:password@hostname/dbname, driver_args = {'DRIVER' : 'FreeTDS', 'TDS_Version' : '8.0', '*ClientCharset':'UTF8*'}) четверг, 23 июня 2016 г., 12:22:57 UTC+3 пользователь Zhenya Kolchin написал: > > I make a query to the MSSQL database with russian full names but receive

[web2py] Re: PROBLEM WITH .CONTAINS() ON GAE

2016-06-24 Thread Anthony
You might also consider Google Cloud SQL, which the DAL also supports. Anthony On Friday, June 24, 2016 at 8:49:47 AM UTC-4, Anthony wrote: > > On Thursday, June 23, 2016 at 11:53:35 PM UTC-4, PRACHI VAKHARIA wrote: >> >> >> >> >> Thank you, Anthony. The Google Search API is a little too difficul

[web2py] Re: PROBLEM WITH .CONTAINS() ON GAE

2016-06-24 Thread Anthony
On Thursday, June 23, 2016 at 11:53:35 PM UTC-4, PRACHI VAKHARIA wrote: > > > > > Thank you, Anthony. The Google Search API is a little too difficult for me > to master, and also is billed. > I tried your other suggestion for simulating the .startswith query, but it > did not work in my case, eit

[web2py] Re: Use of REST to application

2016-06-24 Thread Anthony
@request.restful is just a very simple convenience decorator that allows you to write a controller action in a particular format that makes it easy to handle different request methods (i.e., get, post, put, delete). It would be fairly easy to write a similar controller action without using the

Re: [web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-24 Thread Anthony
> This discussion is challenging and it shows that you are right that use > cases are useful, if only to help frame a discussion. I think that your use > case is not to pass the configuration information, but the need for a > wrapper (for pre-processing and post-processing) > No, that is *you

[web2py] Re: SSL database connections

2016-06-24 Thread Dragan Matic
Has there been any progress in connecting through SSL with DAL? Searching chapter 6 (DAL) of the web2py book for "ssl" or "secure" does not find anything. On Sunday, August 23, 2009 at 6:01:11 PM UTC+2, mdipierro wrote: > > We do not support that but now that I know it should be easy to add.

[web2py] Use of REST to application

2016-06-24 Thread Marlysson Silva
Good morning. Folks, the use of decorator @request.restful() already it's enough to building the rest api? Already cover all the possibilities? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: Issue with the cheatsheet for web2py

2016-06-24 Thread Massimo Di Pierro
yes. If I can find the source. On Thursday, 23 June 2016 06:11:15 UTC-5, Encompass solutions wrote: > > I was using this: > > http://web2py.com/examples/static/web2py_cheatsheet.pdf > > And was getting the request.http_host > > After some research I found it was actually, request.env.http_host > >

[web2py] Re: problem with the display of Russian language

2016-06-24 Thread Massimo Di Pierro
Can you please check the DB IO separately from web2py? s = "Иван".encode('utf8') k = db.youtable.insert(yourfield = s) assert db.yourtable[k].youfield == s Then the problem may be the encoding declared in your page layout. On Thursday, 23 June 2016 04:22:57 UTC-5, Zhenya Kolchin wrote: > > I m

Re: [web2py] Re: How to use a web2py application in a modular way, a way that supports update?

2016-06-24 Thread Dominic Mayers
This discussion is challenging and it shows that you are right that use cases are useful, if only to help frame a discussion. I think that your use case is not to pass the configuration information, but the need for a wrapper (for pre-processing and post-processing) and it does not have the ext