[web2py] Re: mobile layout

2015-08-20 Thread Massimo Di Pierro
web2py comes with bootstrap with is mobile first. I also like semantic.ui On Thursday, 20 August 2015 14:14:03 UTC-5, Laer Cius wrote: > > Hi, > > Does anyone could give advice on a fully mobile/smartphone compatible > layout template for web2py ? > > Thank you, > > -- > “One original thought

[web2py] Re: auth.wiki deployment issue

2015-08-20 Thread Massimo Di Pierro
The wiki caches the rendered pages in HTML for speed. So when the app moves the cached pages contain the wrong links. the auth.wiki(...) method has a force_render which you can set to True auth.wiki(force_render=True) which will re-create the cached content when pages are called. or you can do

[web2py] Re: All forms clear and do not submit

2015-08-20 Thread Massimo Di Pierro
Is there a proxy or a load balancer? Can you reproduce it without tornado? On Thursday, 20 August 2015 14:13:44 UTC-5, Brian Nguyen wrote: > > Hello all, > > I've been running into this issue lately where ALL forms would clear when > the submit button is clicked. > > I understand how CSRF may ca

[web2py] Re: All forms clear and do not submit

2015-08-20 Thread Dan Kim
I need to get some work done. Please fix. thx. -- 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

[web2py] Unable to install HandsOnTable plugin

2015-08-20 Thread Martti Lamberg
I can't install HandsOnTable plugin into my app. Tried the automatic plugin installer in .../admin/default/plugins/"my_app" but it says: unable to install plugin > "web2py.plugin.HandsOnTable_plugin_for_a_spreadsheet.w2p" Tried manually installing it too. I downloaded the "plugin_hotsheet-mas

[web2py] Problems with scheduler during deployment

2015-08-20 Thread Umpei Kurokawa
Hi all, I am deploying web2py using apache / linux / postgresql and am having troubles with the scheduler. I performed the necessary action specified in the deployment recipe : http://www.web2py.com/books/default/chapter/29/13/deployment-recipes#Start-the-scheduler-as-a-Linux-service--upstart-

[web2py] Re: Compute and requires

2015-08-20 Thread Dave S
On Thursday, August 20, 2015 at 6:09:58 AM UTC-7, Cássio Botaro wrote: > > Maybe I found the solution, i will test later. > > > http://stackoverflow.com/questions/8054665/multi-column-unique-constraint-with-web2py/8055987#8055987 > > > https://groups.google.com/forum/#!searchin/web2py/validate$20

[web2py] Re: display only 20 entries in a table

2015-08-20 Thread Dave S
See also Jonathon's response in the parallel thread: https://groups.google.com/d/msg/web2py/HCDEdn6Me6o/W6IfXfpMpOAJ> /dps On Thursday, August 20, 2015 at 12:51:20 PM UTC-7, Dave S wrote: > > > > On Thursday, August 20, 2015 at 3:28:47 AM UTC-7, Iancic Bogdan wrote: >> >> I have a lot of entries

[web2py] Re: display only 20 entries in a table

2015-08-20 Thread Dave S
On Thursday, August 20, 2015 at 3:28:47 AM UTC-7, Iancic Bogdan wrote: > > I have a lot of entries in the table that I want to display, and as i > already have other things on the same page, i want to make this table show > only 10-20 entries per page. How can I add that? > > Essentially, you'r

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
Done! On Thu, Aug 20, 2015 at 3:06 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > :-) > > > On Thursday, 20 August 2015 10:37:22 UTC-5, Richard wrote: >> >> Also make the redirect a subfunc to be reused... >> >> On Thu, Aug 20, 2015 at 11:36 AM, Richard Vézina < >> ml.richard.vez...

[web2py] Re: auth.wiki deployment issue

2015-08-20 Thread pj00016
I have the same problem as Andrew W. When deployed to pythonanywhere.com the pages still point to the local host. -- 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 Issu

[web2py] All forms clear and do not submit

2015-08-20 Thread Brian Nguyen
Hello all, I've been running into this issue lately where ALL forms would clear when the submit button is clicked. I understand how CSRF may cause these symptoms and need your help. It seems to happen to random users using any browser. Although it doesn't affect all browsers simultaneously.

[web2py] mobile layout

2015-08-20 Thread 'Diogene Laerce' via web2py-users
Hi, Does anyone could give advice on a fully mobile/smartphone compatible layout template for web2py ? Thank you, -- “One original thought is worth a thousand mindless quotings.” “Le vrai n'est pas plus sûr que le probable.” Diogene Laerce -- Re

[web2py] Re: auth.settings.registration_requires_approval has no effect

2015-08-20 Thread Massimo Di Pierro
auth.settings.registration_requires_approval = True is not the same as auth.settings.registration_requires_verification = False When you require verification it means if you have email setup the user will get an email with a public link to verify registration. When you require approval, t

[web2py] Re: Simple Wiki Markmin Google docs viewer needs HTTPS

2015-08-20 Thread A3
Also tried to force insecure: this shows me the HTML page in the box. -- 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 beca

[web2py] Re: Can web2py have a microframework the way Laravel has Lumen?

2015-08-20 Thread Massimo Di Pierro
gluino is an experiment and not maintained at this point. weppy is good but be aware that the only overlap with web2py is the DAL. We always shipped with this: https://github.com/web2py/web2py/blob/master/scripts/make_min_web2py.py It does not quite fit the bill and probably needs to be revised

[web2py] Re: Invalid password reset

2015-08-20 Thread wish7code
Thanks so much! That solved the issue.. Cheers Toby Am Mittwoch, 19. August 2015 23:38:44 UTC+2 schrieb Massimo Di Pierro: > > This is not a bug. This is a misconfiguration.You have a custom message > for the email that is sent and it uses an old syntax for embedding the > email reset link. The

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Massimo Di Pierro
:-) On Thursday, 20 August 2015 10:37:22 UTC-5, Richard wrote: > > Also make the redirect a subfunc to be reused... > > On Thu, Aug 20, 2015 at 11:36 AM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> Ok, will do it... >> >> Richard >> >> On Thu, Aug 20, 2015 at 10:53 AM, Anthony wro

[web2py] Re: ldap import problem

2015-08-20 Thread Massimo Di Pierro
web2py always trying the app/modules folder before anywhere else. That is how it allows an app to bring along the modules it requires and not conflict with those pre-installed. That said. The error you see does not mean it does not also look somewhere else. Do you actually have an app/modules/

[web2py] Re: Simple Wiki Markmin Google docs viewer needs HTTPS

2015-08-20 Thread Massimo Di Pierro
Made a change in master branch that uses https instead of http for this. Please try it. On Wednesday, 19 August 2015 16:39:14 UTC-5, A3 wrote: > > Hi, I tried to use the Simple Wiki and found the following problem: > I uploaded an excel file in page media. > On the wiki page I used the link to th

Re: [web2py] Re: auth.settings.registration_requires_approval has no effect

2015-08-20 Thread 'Karl Thomas Schmidt' via web2py-users
Thanks, Jaime Sempere, i tried this in all kinds of variations. Still no pending registrations. And still immediately logged in after registering. Some strange things besides: Having done an update of web2py to new 2.12,3 it still shows 2.11.2-stable+timestamp.2015.05.30.16.33.24 and recommends

[web2py] Re: Can web2py have a microframework the way Laravel has Lumen?

2015-08-20 Thread JorgeH
What about in the admin app of web2py, along with the options 'pack custom' , 'compile', etc.. would be another option like 'export to minimum' or something. where an app would be exported with the minimum of imports and can be deployed like a bottle or flask app. Just an idea. Gluino is as y

[web2py] Re: Can web2py have a microframework the way Laravel has Lumen?

2015-08-20 Thread Anthony
Maybe a starting point: https://github.com/mdipierro/gluino On Thursday, August 20, 2015 at 11:45:09 AM UTC-4, JorgeH wrote: > > Hello > > Can web2py have something like > > http://lumen.laravel.com/ > > So it can have the easiness of coding and the speed of request/seconds as > microframeworks

[web2py] Can web2py have a microframework the way Laravel has Lumen?

2015-08-20 Thread JorgeH
Hello Can web2py have something like http://lumen.laravel.com/ So it can have the easiness of coding and the speed of request/seconds as microframeworks like bottle and the alike? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
Also make the redirect a subfunc to be reused... On Thu, Aug 20, 2015 at 11:36 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok, will do it... > > Richard > > On Thu, Aug 20, 2015 at 10:53 AM, Anthony wrote: > >> Well, you need to know what "next" is, so the redirect has to come aft

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
Ok, will do it... Richard On Thu, Aug 20, 2015 at 10:53 AM, Anthony wrote: > Well, you need to know what "next" is, so the redirect has to come after > that. However, there's no reason you couldn't simply refactor the function > a bit -- just move the whole block where "next" is defined to the

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Anthony
Well, you need to know what "next" is, so the redirect has to come after that. However, there's no reason you couldn't simply refactor the function a bit -- just move the whole block where "next" is defined to the very beginning of the function (you could also move the onaccept, onvalidation, a

Re: [web2py] ldap import problem

2015-08-20 Thread Richard Vézina
Johann which version of web2py? Richard On Thu, Aug 20, 2015 at 8:20 AM, Johann Spies wrote: > Why does this happen? The import process seems to try and import the ldap > module from the modules directory and not from gluon/contrib/login_methods. > > File "/home/js/web2py/applications/wos_2015

Re: [web2py] Refresh page with "user/login?_next=" in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard
Is doing this that far in the login function a waste of time? I mean, why doing all the form preparation (the validators at the top of the function)... Your code is cleaner since you flush session._auth_next and for this reason you need ot wait next var is defined... But why this : tab

[web2py] Re: Compute and requires

2015-08-20 Thread Cássio Botaro
Maybe I found the solution, i will test later. http://stackoverflow.com/questions/8054665/multi-column-unique-constraint-with-web2py/8055987#8055987 https://groups.google.com/forum/#!searchin/web2py/validate$20computed$20fields/web2py/PNHApjBSKOQ/ZJh6RsrIZIsJ -- Resources: - http://web2py.com -

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Johann Spies
You can either use SQLFORM.grid or use a technique explained in the book. Search the book for 'pagination' and look in the results under "Other recipes". Regards Johann On 20 August 2015 at 14:34, Iancic Bogdan wrote: > I want the user to see all the results, but they are too many to be shown >

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I want the user to see all the results, but they are too many to be shown on a single page. That's why i would like to share them on different pages On Thursday, August 20, 2015 at 2:30:47 PM UTC+2, Johann Spies wrote: > > Why do not limit your query to 10 or 20 items? > > Regards > Johann > > On

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I want the user to see all the results, but they are too many to be shown on a single page. That's why i would like to share them on different pages On Thursday, August 20, 2015 at 2:30:47 PM UTC+2, Johann Spies wrote: > > Why do not limit your query to 10 or 20 items? > > Regards > Johann > > On

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Johann Spies
Why do not limit your query to 10 or 20 items? Regards Johann On 20 August 2015 at 12:30, Iancic Bogdan wrote: > I have a lot of entries in the table that I want to display, and as i > already have other things on the same page, i want to make this table show > only 10-20 entries per page. How

[web2py] ldap import problem

2015-08-20 Thread Johann Spies
Why does this happen? The import process seems to try and import the ldap module from the modules directory and not from gluon/contrib/login_methods. File "/home/js/web2py/applications/wos_2015_3/models/db.py" , line 11, in fr

[web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I have a lot of entries in the table that I want to display, and as i already have other things on the same page, i want to make this table show only 10-20 entries per page. How can I add that? Here is the code I wrote in view: {{if prints:}} {{=T('Print history:')}} {{i=0}}

[web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I have a lot of entries in the table that I want to display, and as i already have other things on the same page, i want to make this table show only 10-20 entries per page. How can I add that? Here is the code I wrote in view: {{if prints:}} {{=T('Print history:')}} {{i=0}}