[web2py] Re: Can not import copy_reg

2014-07-30 Thread Richard
Some progress is not what I expect :( . It takes time to learn how to configure a webserver. I am now hosting the app at Pythonanyware, I expect the libraries they use are up to date. assuming they are, also at pythonanyware running python2.7 the same error occurs. Could it be a bug in

Re: [web2py] grid problem

2014-07-30 Thread ceriox
thanks Javier! but can you explain must be a function? i use this code in other functions (for other tables) and it work fine! how i need to change it? Il giorno martedì 29 luglio 2014 17:51:47 UTC+2, Massimo Di Pierro ha scritto: good catch! On Tuesday, 29 July 2014 10:39:15 UTC-5, Javier

Re: [web2py] grid problem

2014-07-30 Thread Manuele Pesenti
Il 30/07/14 09:30, ceriox ha scritto: thanks Javier! but can you explain must be a function? i use this code in other functions (for other tables) and it work fine! how i need to change it? Dear ceriox, I think here lie the problem:

[web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Gael Princivalle
Hi Anthony. I think that web2py grids are really powerful and useful. If web2py grids are not fully compatible with BS3 for me it's a problem. As websites must be generally designed now first for mobile devices, I think that web2py front end as to be done with BS3, and responsive. Il giorno

[web2py] Re: How do you gracefully terminate a scheduled task

2014-07-30 Thread Niphlod
set the worker status who's processing the task to STOP_TASK. On Monday, July 28, 2014 10:45:07 PM UTC+2, Stephen Weiss wrote: I'm trying to find a way in a scheduled task to terminate itself gracefully and have it set the status to FAILED. Say for example, a scheduled task is executing

[web2py] Add (customer) number to url

2014-07-30 Thread Eric
Hi, We need a way to get the customer number into web2py by it's url so we can display the corresponding data to the visitor. To keep it easy for the visitor this number needs to be visible in every url. Since the site runs under SSL and we don't want to buy another SSL certificate, we're

[web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Dragan Matic
Anthony, Thanks for the answer, I was aware of that completely. It is just that Massimo said that it is trivial to replace BS2 with BS3 yet when I try to do it the trivial way and then create a FORM in controller (whether it be simple form, sqlform or sqlform.factory) the form looks

[web2py] IPN paypal 404 ???

2014-07-30 Thread Ivan Gazzola
When i call /paypal/ipn from a browser is ok, when paypall try to send IPN the relay is 404??? x.x.x.x - - [30/Jul/2014:13:09:03 +0200] POST /paypal/ipn HTTP/1.0 404 66 - PayPal IPN ( https://www.paypal.com/ipn ) x.x.x.x - - [30/Jul/2014:13:10:25 +0200] POST /paypal/ipn HTTP/1.0 404 66 -

[web2py] Re: foreign key reference and not null mutually exclusive. by design, or a bug?

2014-07-30 Thread Ivan
It seems this bug is still present in 2.9.5 Il giorno venerdì 24 gennaio 2014 03:19:05 UTC+1, User ha scritto: Thanks. Here is the issue in case anyone is interested: http://code.google.com/p/web2py/issues/detail?id=1395 On Wednesday, January 22, 2014 3:39:56 PM UTC-5, Anthony wrote:

[web2py] Re: Two parallel methods of authenticating users based on Auth class

2014-07-30 Thread Marcin Jaworski
Hi Massimo, Thanks for your input. Yes, they would receive email, since they have got external (out of google services) email accounts. I realized that I should describe shortly my approach. Most of aplication users will use GaeGoogleLogin. There are only few that will use alternative login

[web2py] Re: jquery onchange help

2014-07-30 Thread ocascante
Hello, I wrote this into my custom form code : script jQuery(document).ready(function(){ jQuery('#documents_card').change(function(){ var sel_value = $('#documents_card').val(); # this is working ok and get the card number selected by user var name = call_name(sel_value);

[web2py] Re: jquery onchange help

2014-07-30 Thread Leonel Câmara
# this is a function in db.py to retrieve firstname and secondname fields value. THIS NOT WORK!! This doesn't make any sense. How is javascript which runs on the user's browser supposed to have access to functions defined in python that are in your db.py model file in the webserver? If

[web2py] Re: jquery onchange help

2014-07-30 Thread ocascante
Thanks for your answer Leonel, I am new in web2py and that's the reason i ask for help. Anyway...thanks again El miércoles, 30 de julio de 2014 09:32:34 UTC-6, Leonel Câmara escribió: # this is a function in db.py to retrieve firstname and secondname fields value. THIS NOT WORK!! This

[web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Anthony
On Wednesday, July 30, 2014 5:05:13 AM UTC-4, Gael Princivalle wrote: Hi Anthony. I think that web2py grids are really powerful and useful. If web2py grids are not fully compatible with BS3 for me it's a problem. As websites must be generally designed now first for mobile devices, I think

[web2py] Re: jquery onchange help

2014-07-30 Thread Leonel Câmara
Eheheh don't read it with a tone, keep asking questions if you need help. -- 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

[web2py] Re: Bare Login using API key

2014-07-30 Thread 'Michael Gheith' via web2py-users
From a high level view you can create an extra field in the auth table, and put random keys in it as a default value for each of your users. Or when someone signs up, they can automatically get assigned a random key using the DAL default parameter in Field. So each user will have a unique

[web2py] Re: Can not import copy_reg

2014-07-30 Thread Giles Thomas
Hi all, Giles from PythonAnywhere here. I've been working with Richard to try to track this down further. One thing I can confidently say is that it's not an Apache/mod_wsgi problem in this case, because we use nginx and uWSGI. I've also double-checked that the `copy_reg` import works from a

[web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Anthony
Thanks for the answer, I was aware of that completely. It is just that Massimo said that it is trivial to replace BS2 with BS3 yet when I try to do it the trivial way and then create a FORM in controller (whether it be simple form, sqlform or sqlform.factory) the form looks completely

Re: [web2py] grid problem

2014-07-30 Thread Anthony
On Wednesday, July 30, 2014 4:59:41 AM UTC-4, Manuele wrote: Il 30/07/14 09:30, ceriox ha scritto: thanks Javier! but can you explain must be a function? i use this code in other functions (for other tables) and it work fine! how i need to change it? Dear ceriox, I think here lie

[web2py] Re: Are MD5sums posted for Web2Py?

2014-07-30 Thread Dave S
On Friday, May 23, 2014 12:18:06 PM UTC-7, Dave S wrote: On Friday, May 23, 2014 11:57:27 AM UTC-7, Dave S wrote: I just downloaded the Normal (stable?) version and the Developer's (nightly?) version for use on a Centos machine, Also, I can't see what I did wrong at startup, but the

[web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Jim S
I agree with Anthony. What I've done with my apps is to rip apart the base layout and provide my own. I typically find something I like in https://wrapbootstrap.com/ and update layout.html to accommodate. -Jim On Wednesday, July 30, 2014 11:52:35 AM UTC-5, Anthony wrote: Thanks for the

[web2py] Re: Can not import copy_reg

2014-07-30 Thread Leonel Câmara
My guess would be this is happening because of you copying files with pickles around. Some stuff is not portable, for instance, web2py uses marshal in some places. Pickle is infamous for giving very weird error messages like the one you are getting that appear to point to other problems. If I

Re: [web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread António Ramos
meteorjs has a nice feature you want bootstrap? just do meteor add boostrap inside your folder app and you are good to go. 2014-07-30 18:09 GMT+01:00 Jim S j...@qlf.com: I agree with Anthony. What I've done with my apps is to rip apart the base layout and provide my own. I typically

Re: [web2py] Re: Can not import copy_reg

2014-07-30 Thread Giles Thomas
Thanks, Leonel. We'll look into that. On 30 July 2014 18:12, Leonel Câmara leonelcam...@gmail.com wrote: My guess would be this is happening because of you copying files with pickles around. Some stuff is not portable, for instance, web2py uses marshal in some places. Pickle is infamous

[web2py] Re: how to Consume external NetTcp SOAP service in Web2Py

2014-07-30 Thread Dave S
I kind of let this lay around until last night, when I had the happy idea that this would help me with a particular user problem. I have stand-alone SOAP clients using SUDS or Java, but I have a user where installing those clients could be problematic. So I tried as below, but failed. Note

[web2py] Re: Bare Login using API key

2014-07-30 Thread lyn2py
I may have been misunderstood. I meant to ask, how can I have a user use *API keys* (API key + secret if needed) to access JSON-RPC instead of user login/pass. Thanks. On Thursday, July 31, 2014 12:03:02 AM UTC+8, Michael Gheith wrote: From a high level view you can create an extra field in

[web2py] Re: Are MD5sums posted for Web2Py?

2014-07-30 Thread lyn2py
You need to use HTTPS to access admin On Saturday, May 24, 2014 3:18:06 AM UTC+8, Dave S wrote: On Friday, May 23, 2014 11:57:27 AM UTC-7, Dave S wrote: I just downloaded the Normal (stable?) version and the Developer's (nightly?) version for use on a Centos machine, Also, I can't see

[web2py] Re: Bare Login using API key

2014-07-30 Thread Leonel Câmara
An easy way would be to have your default.py/call function check the API key and raise HTTP(403) if it's not valid. You could subclass Auth, make your own basic_login using the API key and use that as the Auth for your application but it seems unnecessarily complicated for this. -- Resources:

Re: [web2py] Re: Bootstrap is really killing web2py

2014-07-30 Thread Anthony
On Wednesday, July 30, 2014 1:21:20 PM UTC-4, Ramos wrote: meteorjs has a nice feature you want bootstrap? just do meteor add boostrap inside your folder app and you are good to go. As far as I can tell, though, that is a legacy package based on Bootstrap 2. You have to install a

[web2py] Re: Are MD5sums posted for Web2Py?

2014-07-30 Thread Dave S
On Wednesday, July 30, 2014 10:45:32 AM UTC-7, lyn2py wrote: You need to use HTTPS to access admin I am not doing so on the Fedora machine. I am using http://xx.yy.zz.ww:8000/admin/default/site from a browser running on the same machine as the web2py instance. Since it is an antique

Re: [web2py] Re: Can not import copy_reg

2014-07-30 Thread Richard
I'll did delete the tables already because I did suspect the database because a backup before a database corruption was working and the version after the corruption (restored the tables from an other backup) was having this issue. I'll keep you informed. On Wednesday, July 30, 2014 7:33:18 PM

[web2py] Re: how to Consume external NetTcp SOAP service in Web2Py

2014-07-30 Thread Dave S
On Wednesday, July 30, 2014 10:43:12 AM UTC-7, Dave S wrote: I kind of let this lay around until last night, when I had the happy idea that this would help me with a particular user problem. I have stand-alone SOAP clients using SUDS or Java, but I have a user where installing those

[web2py] Re: Can not import copy_reg

2014-07-30 Thread Leonel Câmara
Richard if packing and unpacking the application in pythonanywhere is causing problems the cause may be because .pyc files are going with your application pack (you can open the application pack with any archive application and check), maybe in your modules folder. If that's the case this

[web2py] Re: Can not import copy_reg

2014-07-30 Thread Niphlod
well, you can't expect a compiled app to work amongst python versions. you should compile it on the destination On Wednesday, July 30, 2014 10:48:52 PM UTC+2, Leonel Câmara wrote: Richard if packing and unpacking the application in pythonanywhere is causing problems the cause may be

[web2py] Re: jquery onchange help

2014-07-30 Thread ocascante
After having read more than 30 post in google, about web2py and ajax that have not been answered yet, I could find the way to answer my question. Here is for help if someone have the same doubt. in db.py def card_name(): if request.vars.card != : query =

[web2py] Re: Display registration error for auth.register_bare()

2014-07-30 Thread Mark Li
I'd like to give a shot at AJAX-ifying the auth.register() form, but I'm not quite sure where to start. Looks quite daunting (for me). I'm looking at auth.register() source and web2py.js; would I simply want to add code to web2py.js to force the auth.register() forms to submit via AJAX (and

[web2py] Re: how to Consume external NetTcp SOAP service in Web2Py

2014-07-30 Thread Dave S
So it's not too bad consuming a service I provide for myself, but I'm also interested in a service provided by a third-party device. This particular service doesn't use action, instead it uses control and flag. In a SUDS client (sudsclient = suds.client.Client(serviceurl, transport), I use