[web2py] appconfig, host.names

2016-04-26 Thread Mirek Zvolský
Please, an example for this. (+ should be in the book) -- 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

[web2py] Re: web2py 2.14.1 is OUT

2016-04-26 Thread Mirek Zvolský
AppConfig really need better description in the book. Dne pátek 25. března 2016 3:07:18 UTC+1 Massimo Di Pierro napsal(a): > > > > On Thursday, 24 March 2016 20:15:13 UTC-5, 黄祥 wrote: >> >> the new configuration surely is different from previous one, i have some >> question about it

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread Dave S
On Tuesday, April 26, 2016 at 6:40:56 PM UTC-7, LightDot wrote: > > On Tuesday, April 26, 2016 at 9:10:32 PM UTC+2, Dave S wrote: >> >> On Tuesday, April 26, 2016 at 11:37:58 AM UTC-7, Steve Joe wrote: >>> >>> But the code for stripe is only for credit cards. What about debit cards >>> and net

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread pbreit
In the US and most of the world, debit cards can be processed just like credit cards through Stripe and other processors. Not sure what net banking is with respect to payments. Stripe merchants can accept payments from pretty much ever credit/debit card and currency in the world. The card

[web2py] Re: Is it possible to chose the cache folder on disk?

2016-04-26 Thread Anthony
On Tuesday, April 26, 2016 at 5:13:01 PM UTC-4, Niphlod wrote: > > be aware that there is/will be no support at all to specify your own cache > dir, i.e. use at your own risk. it'll be 10 times better to pinpoint the > unusual behaviour you're experiencing rather than use an hack > Yes, good

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread LightDot
On Tuesday, April 26, 2016 at 9:10:32 PM UTC+2, Dave S wrote: > > On Tuesday, April 26, 2016 at 11:37:58 AM UTC-7, Steve Joe wrote: >> >> But the code for stripe is only for credit cards. What about debit cards >> and net banking? > > > I would expect it to cover debit cards that have the Visa or

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Jacob Thoennes
I'm using the binary version. On Tuesday, 26 April 2016 17:31:10 UTC-5, Niphlod wrote: > > are you using web2py_win.zip (the binary version) or the source one ? > > On Tuesday, April 26, 2016 at 11:44:29 PM UTC+2, Jacob Thoennes wrote: >> >> the error when running my start.bat says: >> >>

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Niphlod
are you using web2py_win.zip (the binary version) or the source one ? On Tuesday, April 26, 2016 at 11:44:29 PM UTC+2, Jacob Thoennes wrote: > > the error when running my start.bat says: > > IOError: [Errno 2] No such file or directory: >

[web2py] Re: Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Niphlod
IMHO it'd be better to pinpoint the cause rather than installing a VM just to see why "it never takes" On Tuesday, April 26, 2016 at 11:54:18 PM UTC+2, Alex Glaros wrote: > > That's a good question Niphlod. Migrate = True (with Postgres) works for > an older windows machine I have, but

[web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Leonel Câmara
You cannot have unicode characters in the path of an URL that is not a valid URL. If percent encoded path components do not work then it is a bug/missing feature. If you submit an issue in git I could look at it. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Alex Glaros
That's a good question Niphlod. Migrate = True (with Postgres) works for an older windows machine I have, but another windows10 machine has a wierd, possibly permissions-based problem where migrate never "takes". I get around it by making changes directly to the Postgres side to match db.py

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Jacob Thoennes
the error when running my start.bat says: IOError: [Errno 2] No such file or directory: 'applications\\init\\compiled\\controllers_default_index.pyc' So when it tries to run the compiled app it is looking for a controller file with underscores, despite the fact that controller files should

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Niphlod
nope, once again, it doesn't show ANY errors. Why are you stating that "it's expecting underscores for everything" ? views - underscore https://github.com/web2py/web2py/blob/master/gluon/compileapp.py#L483 models - dot https://github.com/web2py/web2py/blob/master/gluon/compileapp.py#L499

[web2py] Re: Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Niphlod
given that web2py works fine with win, osx and linux I'd reaaally like to know how can it work "not okay" with any configuration you may throw at it (yep, it works on AIX too, but nobody really cares). The only valid reasons you may want to develop on a VM instead of on win are: - you're

[web2py] Re: Is it possible to chose the cache folder on disk?

2016-04-26 Thread Niphlod
be aware that there is/will be no support at all to specify your own cache dir, i.e. use at your own risk. it'll be 10 times better to pinpoint the unusual behaviour you're experiencing rather than use an hack On Tuesday, April 26, 2016 at 8:43:07 PM UTC+2, Anthony wrote: > > It should not be

[web2py] Re: After user login, I need to verify validity password.

2016-04-26 Thread isi_jca
Massimo: Thanks for you answer. Now is working, but when the user change password; it is necesary to update lastchangepassword field at the auth_user table. Must I to customize change_password controller? Thanks regards. El martes, 26 de abril de 2016, 15:15:32 (UTC-3), Massimo Di Pierro

[web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Mamisoa Andriantafika
Hi, I did try but still not working. Le mardi 26 avril 2016 17:05:52 UTC+2, Leonel Câmara a écrit : > > You need to url encode those characters. Have you tried that? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Error page with ticket in iframe -- no need for extra click each time ;)?

2016-04-26 Thread Jurgis Pralgauskis
Hi, maybe this is possible to do per_app now (without touching web2py core)? :) ps.: there was also idea with ajax On Friday, June 14, 2013 at 8:00:36 PM UTC+3, Jurgis Pralgauskis wrote: > > Generally, maybe error template can be some app config, but not bound to > routing? > and if it is

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread Ron Chatterjee
Paypal examples on slice is like 5 years old. Still applicable? On Tuesday, April 26, 2016 at 3:10:32 PM UTC-4, Dave S wrote: > > On Tuesday, April 26, 2016 at 11:37:58 AM UTC-7, Steve Joe wrote: >> >> But the code for stripe is only for credit cards. What about debit cards >> and net banking? >

[web2py] Using python as an user rules engine in a web2py application

2016-04-26 Thread Carlos Kitu
Hellow everyone, I'm developing an application for a consulting company. To make a long story short, there is some data in the database that is user administered, and some formulas to execute with that data. Those formulas should be administered by the consultant. The database data can be

[web2py] Re: web2py 2.14.4 is OUT

2016-04-26 Thread Dave S
On Monday, April 25, 2016 at 9:39:00 PM UTC-7, Ben Lawrence wrote: > > Does the shell still work or is it just me who cannot work it? > Whenever I place anything in the .../admin/shell/index/welcome, it just > prints "None" > > The web shell is deprecated, I think. The command line shell still

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread Dave S
On Tuesday, April 26, 2016 at 11:37:58 AM UTC-7, Steve Joe wrote: > > But the code for stripe is only for credit cards. What about debit cards > and net banking? I would expect it cover debit cards that have the Visa or MasterCharge logos. Is that not the case? I have heard that credit

[web2py] Re: static files and make_min_web2.py

2016-04-26 Thread Dave S
On Tuesday, April 26, 2016 at 11:13:40 AM UTC-7, MrRedmerlot wrote: > > Hi all. > > I'd like to get some help here, as I'm new to web2py. > I created minimalist web2py application using make_min_web2.py script. > It seems that the static files are not being served, I suspect the script > and I

[web2py] Re: Not able to remove views folder

2016-04-26 Thread Anthony
What is the exact error message? On Tuesday, April 26, 2016 at 2:23:51 PM UTC-4, Jeff Riley wrote: > > Hello Anthony. Yes it is working fine locally, and yes I have all the > views in the complied folder that are in the views folder. > > On Tuesday, April 26, 2016 at 1:16:34 PM UTC-5, Anthony

Re: [web2py] Re: Component within component

2016-04-26 Thread Anthony
On Tuesday, April 26, 2016 at 1:11:52 PM UTC-4, Richard wrote: > > Think I try that in the pass and it wasn't working... Let me find the > thread in question see if it was the case... > Works for me, at least in the simple case. Perhaps you were doing something more complex. Anthony --

[web2py] Re: Is it possible to chose the cache folder on disk?

2016-04-26 Thread Anthony
It should not be creating a new folder with the name of your application -- rather, it should be storing the cache files inside the /cache folder that already exists inside your application folder. Do you have a reason for not wanting the files there? Note, it is not storing JSON files, but

[web2py] Re: How to add payment integration in web2py?

2016-04-26 Thread Steve Joe
But the code for stripe is only for credit cards. What about debit cards and net banking? -- 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

Re: [web2py] Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Kiran Subbaraman
Ubuntu 14.04 LTS server as the VBox guest OS. The host system being Windows 10. Install web2py using the one-step-deploy script `setup-web2py-nginx-uwsgi-ubuntu.sh`. Just works. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 26-04-2016

[web2py] Re: caching questions

2016-04-26 Thread Anthony
On Tuesday, April 26, 2016 at 11:24:52 AM UTC-4, Pierre wrote: > > Anthony, you wrote this some time ago : > > >Are you using nginx/uwsgi? If so, I believe cache.ram would not be shared > across the different uwsgi worker processes. You might consider switching > to the >Redis cache. > >Anthony

[web2py] Re: Not able to remove views folder

2016-04-26 Thread Jeff Riley
Hello Anthony. Yes it is working fine locally, and yes I have all the views in the complied folder that are in the views folder. On Tuesday, April 26, 2016 at 1:16:34 PM UTC-5, Anthony wrote: > > Do you have the same problem locally? Can you confirm that there is a >

[web2py] Re: web2py slices down

2016-04-26 Thread Massimo Di Pierro
Twice we had the same problem. Somebody changed the code and made the app point to the wrong db. We do not know who else has access to this server and is responsible for this but we will lock everybody out and investigate. Thanks to Bruno for fixing the issue. Massimo On Tuesday, 26 April

[web2py] Re: Not able to remove views folder

2016-04-26 Thread Anthony
Do you have the same problem locally? Can you confirm that there is a /compiled/views.default.index.html.pyc file? Anthony On Tuesday, April 26, 2016 at 11:33:43 AM UTC-4, Jeff Riley wrote: > > Hello everyone. Has anyone run across an issue in PythonAnywhere where > after you compile your

[web2py] Re: After user login, I need to verify validity password.

2016-04-26 Thread Massimo Di Pierro
at the bottom of db.py you can put: if auth.user and request.function!='user' and (request.now_lastchargepasswrod).days>100: redirect(URL('user/change_password')) On Tuesday, 26 April 2016 08:37:56 UTC-5, isi_jca wrote: > > Hi!!! > > After user login, I want to check validity password, I

[web2py] when will site web2pyslices will b up?

2016-04-26 Thread Rexhil Regmi
I need a lot of recipes from that site. It was really helpful in my old project too. I need some more recipes again. Google search shows its there in web2py slices but the side is down rn. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Is it possible to chose the cache folder on disk?

2016-04-26 Thread Antonio
Hi, I'm using web2py to create a json to later use on a mobile app. The thing is that it takes a while to get all the information so I decided to use cache.disk to have my application cache on disk. I just pasted this on top my function: @cache(request.env.path_info, time_expire=600,

[web2py] static files and make_min_web2.py

2016-04-26 Thread MrRedmerlot
Hi all. I'd like to get some help here, as I'm new to web2py. I created minimalist web2py application using make_min_web2.py script. It seems that the static files are not being served, I suspect the script and I can't figure out what is stripped off. example: links are correct with

[web2py] Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Alex Glaros
Anyone running Web2py on Oracle VM Virtualbox on Win 10? Work okay? What is your configuration? Ubuntu? Any recommendations? Mint? thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: caching questions

2016-04-26 Thread Richard Vézina
If you cache db().select() results cache.ram should be allrigths as every user/session can be operate in isolation without issue... This wouldn't be the case for things that need to be up to date for all the users at the same time, global variables for instance even if they are the result of bad

Re: [web2py] Re: web2py slices down

2016-04-26 Thread Richard Vézina
Why not merge with : http://www.web2pyref.com/reference/field-type-database-field-types ?? Richard On Tue, Apr 26, 2016 at 1:17 PM, rochacbruno wrote: > > There were some changes in pythonanywhere mysql hosts name and access > policies. > > It is back now! > > We really

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
Also URL(url_encode=True) is default... On Tue, Apr 26, 2016 at 1:17 PM, Richard Vézina wrote: > @Leonel, he receives unicode characters which are parsed and result with > no record in case those special characters are include in the REST query... > There is not

[web2py] Re: web2py slices down

2016-04-26 Thread rochacbruno
There were some changes in pythonanywhere mysql hosts name and access policies. It is back now! We really need volunteers to take care of web2pyslices. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
@Leonel, he receives unicode characters which are parsed and result with no record in case those special characters are include in the REST query... There is not really any way to url_encode has he not generate unicode URL... Richard On Tue, Apr 26, 2016 at 11:05 AM, Leonel Câmara

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
https://groups.google.com/d/msg/web2py/I6xhaSaQCdE/sjSeYBHjMcUJ Massimo's suggest also to use RactiveJS... Richard On Tue, Apr 26, 2016 at 1:11 PM, Richard Vézina wrote: > Think I try that in the pass and it wasn't working... Let me find the > thread in question

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
Think I try that in the pass and it wasn't working... Let me find the thread in question see if it was the case... On Tue, Apr 26, 2016 at 11:04 AM, Anthony wrote: > On Tuesday, April 26, 2016 at 9:30:21 AM UTC-4, Richard wrote: >> >> Component inside component can work

[web2py] Re: SQLForm.factory Pre-Submit Processing Using JavaScript

2016-04-26 Thread Eliot Simcoe
In case anyone else ever has this problem, I will post my own solution. Web2Py traps all form submissions in web2py.js. To override this behaviour we need to add the "no_trap" class to the form declaration: single_payment_form = SQLFORM.factory( Field('tenant_name','string',

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Jacob Thoennes
so it looks like the "views" files have underscores but the "controllers" and "models" files have periods, and it's expecting underscores for everything. Assuming the start.bat I gave shows the same error for you, this definitely seems like a web2py bug to me. -- Resources: -

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Niphlod
a "dir" from compiled/ shows 26/04/2016 16:5822.911 controllers.appadmin.bg_graph_model.pyc 26/04/2016 16:5822.711 controllers.appadmin.ccache.pyc 26/04/2016 16:5822.636 controllers.appadmin.csv.pyc 26/04/2016 16:5822.761

[web2py] multi-field uniqueness restriction

2016-04-26 Thread 'Laer Cius' via web2py-users
Hi, I've seen only a little on this in web2py, like a discussion dated from 2008.. Is there a way to do such thing with DAL nowadays ? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Jacob Thoennes
https://drive.google.com/file/d/0B75ZsUWhWMA2N0hlalh1SVdlUzQ/view?usp=sharing Here's a link to the files I'm using that show errors. Running the web2py.exe in myapp should show the broken view, running the start.bat in myapp should show the underscore vs period error. The other web2py folder

[web2py] Not able to remove views folder

2016-04-26 Thread Jeff Riley
Hello everyone. Has anyone run across an issue in PythonAnywhere where after you compile your Web2py you are able to remove the controllers and models folders, but not the views folder. If I try to remove the views folder it is telling me it cannot find index.html. -- Resources: -

[web2py] Re: caching questions

2016-04-26 Thread Pierre
Anthony, you wrote this some time ago : >Are you using nginx/uwsgi? If so, I believe cache.ram would not be shared across the different uwsgi worker processes. You might consider switching to the >Redis cache. >Anthony I know nothing about the Redis cache. Wikipedia says this is NOSQL and

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Niphlod
I'm trying windows binaries and it doesn't throw any errors. On linux - source version - too. No errors whatsoever. On Tuesday, April 26, 2016 at 4:50:39 PM UTC+2, Jacob Thoennes wrote: > > It actually happens for me if I try to pack the welcome app. No background > on the packed page when its

[web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Leonel Câmara
You need to url encode those characters. Have you tried that? -- 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

Re: [web2py] Re: Component within component

2016-04-26 Thread Anthony
On Tuesday, April 26, 2016 at 9:30:21 AM UTC-4, Richard wrote: > > Component inside component can work theoritically but you will have to > craft your own ajax... the web2py LOAD() ou web2py_component() not going to > work... > You can nest components using LOAD or $.web2py.component() -- no

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Jacob Thoennes
It actually happens for me if I try to pack the welcome app. No background on the packed page when its loaded from the main web interface, broken view. Same underscores vs periods error when I run start.bat. I compiled and packed the welcome app from 2.14.5, loaded it into another web2py as

[web2py] Re: when trying to reset_password, I am getting the error server address not specified

2016-04-26 Thread Niphlod
that error is raised when an smtpserver is not configured (usually mail.settings.server) On Monday, April 25, 2016 at 10:57:50 PM UTC+2, Bhanu Teja P wrote: > > db.py > db = DAL('sqlite://storage.sqlite') > > from gluon.tools import Auth > auth = Auth(db) > > >

[web2py] Re: running app from command line with no server startup window

2016-04-26 Thread Niphlod
can you attach a minimal app that reproduces the error ? I can't replicate it. On Monday, April 25, 2016 at 9:26:55 PM UTC+2, Jacob Thoennes wrote: > > Yes, I packed it with the new version, same as the one I installed it in. > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] After user login, I need to verify validity password.

2016-04-26 Thread isi_jca
Hi!!! After user login, I want to check validity password, I added extra fields (lastchangepassword and valitiypassword) at the auth_user table. Where must I trigger a function to check this fields and then force at the user to change password when password expire? Thanks in advanced. --

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
@Massimo... Look here!! Richard On Mon, Apr 25, 2016 at 12:00 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > I think it comes from here : > > > https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/helpers/rest.py#L70 > > As RestParse is used here : > >

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
Component inside component can work theoritically but you will have to craft your own ajax... the web2py LOAD() ou web2py_component() not going to work... Richard On Mon, Apr 25, 2016 at 6:41 PM, wrote: > Note: This may also have something to do with fancybox, which is