Re: [web2py] web2py python3

2020-11-01 Thread Neil
For anyone else who runs into this. I had this problem when migrating from py2 to py3. Clearing out the errors folder worked for me. On Wednesday, 13 May 2020 at 06:27:40 UTC-7 roge...@gmail.com wrote: > Does this help? > >

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz

2017-12-01 Thread Neil
I just had the same problem. I used the `umask` solution here: https://stackoverflow.com/questions/36898474/how-to-install-a-module-for-all-users-with-pip-on-linux -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Reset Password Not Working in Production

2015-02-25 Thread Neil Oswald
in firebug and it said something like a 303 See Other error. Any help is appreciated. Thanks. Neil Oswald -- 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

[web2py] Crash on SQLFORM submission

2014-01-13 Thread Neil
user's system (OS + browser). Any ideas on how I might reproduce this? I'm stumped. To make matters worse, I have very limited opportunity to debug with the user's assistance. Thanks Neil -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: Crash on SQLFORM submission

2014-01-13 Thread Neil
This doesn't seem to be the case: - I looked at the database, and the types match the definition in the model - I can't see how that would only cause problems for one user out of thousands. Any other things I can check out? On Monday, 13 January 2014 14:21:55 UTC, Massimo Di

[web2py] Re: Crash on SQLFORM submission

2014-01-13 Thread Neil
implement my own integer validator? Thanks, Neil On Monday, 13 January 2014 18:10:43 UTC, Neil wrote: This doesn't seem to be the case: - I looked at the database, and the types match the definition in the model - I can't see how that would only cause problems for one user out

[web2py] Re: How to use jquery get JSON in order to call web2py exteral API

2013-11-12 Thread Neil
I'm probably too late for this person, but if anyone else comes across this problem (like I just did) the answer is here: https://groups.google.com/d/msg/web2py/kSUtyNcUQGI/Ta1VowPcJMgJ As I understand it getJSON() is just a wrapper for ajax(). If you use ajax(), you have a few more options

[web2py] Re: One of the best things that happened to web2py

2013-10-29 Thread Neil
Wow, this is excellent - everything seems to work really well. On Monday, 28 October 2013 09:41:35 UTC-7, Massimo Di Pierro wrote: I am happy to announce a great new opportunity for web2py users: https://www.pythonanywhere.com/try-web2py Basically they give you the opportunity to

[web2py] Re: debugging with winpdb

2013-08-02 Thread Neil
Now that PyCharm officially supports web2py, I've playing around its debugger. So far, so good. Note that the latest PyCharm 3.0 EAP build can be used for free for a few more weeks. On Friday, 2 August 2013 02:21:46 UTC+1, Mark Finkelstein wrote: I've been trying to get winpdb to play nice

[web2py] Re: ordering request.vars for PayPal IPN

2013-07-19 Thread Neil
now without a problem. Neil On Thursday, 18 July 2013 21:02:03 UTC+1, SimonD wrote: OK, I think I have stumbled on a solution. Which I thought would be useful to share here. Playing with request.env, I noted that this too was Storage. Hence: request.env.query_string appears to give me

[web2py] Re: Nice open source CMS (still maintained) in Web2py?

2013-04-24 Thread Neil
Hello, This topic came up last month, and if my memory serves me correctly there were a few options available. I'd recommend searching this group for CMS, and take a look at some of the more recent posts. Neil On Wednesday, 24 April 2013 14:57:52 UTC+1, alastor...@gmail.com wrote: Hi Folks

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-23 Thread Neil
Thanks Niphlod Anthony - I'm glad we finally got to the bottom of this. I thought I was going crazy for a while there! In the short term, I'll use Niphlod's trick of setting a dummy session variable to make sure the session is saved to disk. In the medium term, I vote for option 1 (always

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
submit for form 1 doesn't do anything. You may need to refresh several times to reproduce. Bug, or I have I done something wrong? Neil On Sunday, 21 April 2013 20:19:25 UTC+1, Anthony wrote: Probably both forms have the same formname, either because they are both based on the same DAL

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
I've been playing around with it a bit more, and it seems to be the same underlying problem that Anthony described above. The question is: why doesn't the formname fix work for ajax components? On Monday, 22 April 2013 09:19:06 UTC+1, Neil wrote: Thanks for that. Unfortunately, there seems

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
This is turning out to be an elusive one! Notes: 1) I don't think I'm using an old web2py.js, unless it is accidentally being packaged with the latest source. 2) weheh: Nope, no uploading involved - all the code is above. 3) I guessed it is related to the multiple forms issue since the behavior

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
Note: it is still frustratingly unpredictable. I followed my own instructions 10 times before it happened again... On Monday, 22 April 2013 14:10:33 UTC+1, Neil wrote: 1) go to http://www.ai-therapy.com/ajax_test/ 2) enter something in Form 1, and press submit 3) did it work *the first time

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
I didn't upgrade - when I ran locally I downloaded trunk from github and used that version with rocket. Same problem. On Monday, 22 April 2013 14:47:14 UTC+1, Anthony wrote: web2py.js is inside your app (in /appname/static/js), so it does not get updated when you upgrade web2py. When you

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
Just to clarify, I used the new simple application option with trunk (I didn't copy over the app from a previous version). Just to be 100% sure I also copied the web2py.js and web2py_ajax.html files over from the welcome app with no success. On Monday, 22 April 2013 14:53:28 UTC+1, Neil wrote

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
Wow, really! That's really frustrating... Nope, I never tried clearing cookies and then submitting. I always clear my history, shut down the browser, restart the browser, copy the URL, and then the first submit (sometimes) fails. What else about my system could lead to this behavior? I'm

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
My first submit failed on Mac (both Chrome and Safari). However, I can't get it to happen on Ubuntu. I can now reproduce in the following situations: - running web2py locally and remote - 2 server OSs (windows linux) - 2 webservers (rocket uwgsi/nginx) - 2 front-end OSs (windows

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
Good suggestion - I think we may be getting somewhere. When it fails, the server is getting a '_formkey[formname2]' when submitting form 1. I'll try to dig a little deeper. On Monday, 22 April 2013 15:26:03 UTC+1, Anthony wrote: Not sure what's going on. In the browser, maybe use the

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
then on. Does this give any more clues? On Monday, 22 April 2013 15:44:21 UTC+1, Neil wrote: Good suggestion - I think we may be getting somewhere. When it fails, the server is getting a '_formkey[formname2]' when submitting form 1. I'll try to dig a little deeper. -- --- You received

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
Good thought, but that doesn't seem to be a factor since it works in incognito after the first submit, and I can reproduce in regular mode. For some reason, on initial page load it is not saving both formkeys. Is it possible that there is a conflict when saving the the sessions file? i.e.

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread Neil
On Monday, April 22, 2013 12:13:25 PM UTC-4, Neil wrote: Good thought, but that doesn't seem to be a factor since it works in incognito after the first submit, and I can reproduce in regular mode. For some reason, on initial page load it is not saving both formkeys. Is it possible

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-21 Thread Neil
I'm having this problem now - is there a trick to having two ajax forms on one page? Basically, as above, I have to hit submit twice for anything result. Has anyone successfully had 2+ ajax forms on the same page? On Wednesday, 21 July 2010 08:37:54 UTC+1, mdipierro wrote: will look into

[web2py] Re: orderby on an integer field appears to order as if field is a string

2013-02-17 Thread Neil Johnson
Thanks Massimo, I think what happened was I coded this up without the integer tag on count, then realised I needed it, and added it. The first commit occurred with the integer tag , so as far as I could see it was always an integer. Recreating the table fixed it Neil On Saturday, February 16

[web2py] orderby on an integer field appears to order as if field is a string

2013-02-16 Thread Neil Johnson
would want 21,12,2,1 I am using web2py 2.3.2 and SQLite Any thoughts on what I'm doing wrong? Many thanks, Neil -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email

[web2py] Error when changing Postgresql password

2013-02-04 Thread Neil
), everything starts working again. Anyone know (a) what is causing this, and (b) how I can get around it? Neil -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email

[web2py] Re: Error when changing Postgresql password

2013-02-04 Thread Neil
Worked perfectly - thanks. On Monday, February 4, 2013 8:08:47 PM UTC, Limedrop wrote: (a) Because when you changed the DAL connection string, web2py thinks it might be a new database and tries to recreate the tables from scratch. (b) You could try: db = DAL(...,fake_migrate_all=True)

[web2py] Re: https at webfaction.

2013-01-31 Thread Neil
The function: request.requires_https() might be what you're looking for. On Wednesday, January 30, 2013 2:46:08 PM UTC, Annet wrote: I the past I hosted a web2py application at Webfaction. I had a dedicated IP address, and added: domains: mydomain.com, www.mydomain.com and

[web2py] Re: Script for nginx/uWSGI/web2py install on Webfaction

2012-12-19 Thread Neil
? On Monday, December 17, 2012 11:34:51 AM UTC-8, Neil wrote: What I've done for that is set up another webfaction application of type static to server all the css, images, audio, videos, etc. That creates a new folder, for example: /home/[USER]/webapps/static_web2py_myapp Then, in my web2py

[web2py] Re: Script for nginx/uWSGI/web2py install on Webfaction

2012-12-17 Thread Neil
in the command line. For the socket parameter use 127.0.0.1 and the port webfaction assigned for your custom app. There are a few other posts in this group about selecting good uwsgi parameters so that you don't run out of memory (seems to be a common pitfall on webfaction) Hope that's useful. Neil

[web2py] Re: Script for nginx/uWSGI/web2py install on Webfaction

2012-12-17 Thread Neil
This thread has a more detailed exampled of a script: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ On Monday, December 17, 2012 12:32:21 PM UTC, Neil wrote: There are a few other posts in this group about selecting good uwsgi

[web2py] Re: Script for nginx/uWSGI/web2py install on Webfaction

2012-12-17 Thread Neil
? On Monday, December 17, 2012 4:32:21 AM UTC-8, Neil wrote: I'm also not a sysadmin, but I did go through the process of setting up web2py on webfaction recently as well. I also found that script but it seemed to be overly complicated. In particular, there is no need to download, build

[web2py] Re: Webfaction Deployment and Tuning Web2py Slice.

2012-11-07 Thread Neil
your processes if you go over your limit. There's a number of posts on this topic in this forum. In general, it's a fast server and relatively straightforward set up. Might be more suitable for your needs than fiddling with apache config files. Neil On Tuesday, November 6, 2012 5:52:52 PM UTC

[web2py] Re: Import error with 2.2.1

2012-11-06 Thread Neil
but delegating the native_importer (__builtin__.__import__) with the same arguments. If you have any idea please let me know. If you can give me access to the server I can try some debugging. massimo On Tuesday, 6 November 2012 01:58:38 UTC-6, Neil wrote: It seems to be there, as I can import

[web2py] Re: Import error with 2.2.1

2012-11-05 Thread Neil
import_tb = sys.exc_info()[2] return NATIVE_IMPORTER(name, globals, locals, fromlist, level) # line 87 and see what changes? On Friday, 2 November 2012 09:09:03 UTC-5, Neil wrote: Can't see any potential conflicts. I have the problem for both track_changes(True

[web2py] Re: Import error with 2.2.1

2012-11-05 Thread Neil
: can you do from matplotlib.projections.geo import AitoffAxes I assume it is there. On Monday, 5 November 2012 16:10:14 UTC-6, Neil wrote: No problem. Here is what I get: import matplotlib.pylab Traceback (most recent call last): File console, line 1, in module File /home/aicbt

[web2py] Re: Import error with 2.2.1

2012-11-02 Thread Neil
in your app/modules/* that may conflict? Did you set track_changes(True) or not? If you do web2py.py -S yourapp can you import form the web2py shell? On Friday, 2 November 2012 02:18:47 UTC-5, Neil wrote: A little more info: - On linux (works fine on Windows) - matplotlib is an egg

[web2py] Import error with 2.2.1

2012-11-01 Thread Neil
I just upgraded from 2.1 to 2.2.1, and I can no longer import matplotlib. I get the following error: ImportError: Cannot import module 'matplotlib' Is this related to the custom import? Perhaps it is the same as issue 1125? --

Re: [web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-10-09 Thread Neil
New mobile admin looks great. However, trunk doesn't seem to come with jquery.mobile-1.2.0.min.js jquery.mobile-1.2.0.min.css, so it doesn't work out of the box. Not sure if this is by design, but for anyone else who's noticed it you can download from http://jquerymobile.com/download/ Neil

[web2py] Re: invalid table name: no_table

2012-10-01 Thread Neil
Fixed. On Sunday, September 30, 2012 8:23:47 PM UTC+1, Massimo Di Pierro wrote: Please try again. I was messing up with trunk. On Sunday, 30 September 2012 12:43:16 UTC-5, Neil wrote: I just upgraded to 2.0.9, but had some problems with the editor, so I upgraded to trunk (incidentally

[web2py] invalid table name: no_table

2012-09-30 Thread Neil
: no_table This is the offending code: def contact(): form=SQLFORM.factory( Field('your_email',requires=IS_EMAIL()), Field('question', type='text', requires=IS_NOT_EMPTY())) Anyone know what would cause this? Neil --

[web2py] Responsive website (my first one, built using web2py)

2012-09-04 Thread Neil Harding
to that first. Neil Harding --

[web2py] Re: Responsive website (my first one, built using web2py)

2012-09-04 Thread Neil Harding
it should have an extra parameter to control whether it should include the a wrapping around the image. Neil Harding On Tuesday, September 4, 2012 5:15:47 AM UTC-7, Alan wrote: responsive layouts are pretty amazing, working through my own design at the moment after following the guide below

[web2py] map_hyphens and pattern-based routes

2012-08-16 Thread Neil
Hopefully this is an easy one. I'm using a pattern-based routes.py file. How can I enable map_hyphens functionality? Do I have to come up with a regex for my routes_in and routes_out, or is there a way to mix pattern-based and parameter-based systems? Thanks, Neil --

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
erroneously logged in as had been active on the site around the time. - I rolled back to stable before this happened, so it isn't a problem with trunk - Using webfaction/nginx/uwsgi (ver 1.2.4) Neil On Tuesday, July 24, 2012 11:53:26 PM UTC+1, Craig Younkins wrote: What is the deployment

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Incidentally, no problems importing urandom. On Wednesday, July 25, 2012 8:10:53 AM UTC+1, Neil wrote: Issue #2 === There is a bug with may prevent urandom from working: http://community.webfaction.**com/questions/9333/** importerror-cannot-import-**name-urandomhttp

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
using my Android mobile, and no noticeable problems. On Wednesday, July 25, 2012 9:27:36 AM UTC+1, Neil wrote: Incidentally, no problems importing urandom. On Wednesday, July 25, 2012 8:10:53 AM UTC+1, Neil wrote: Issue #2 === There is a bug with may prevent urandom from working

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
Could this be related? http://stackoverflow.com/questions/11092444/nginx-keeps-passing-the-same-http-cookie-to-uwsgi It's a little beyond me, but I notice that HTTP_REFERER is facebook in both cases, and they are also using nginx+uwsgi. On Wednesday, July 25, 2012 12:07:26 PM UTC+1, Neil

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Neil
I got to the point where I could reproduce this locally using incognito mode. Looks like it is a known uwsgi bug that was just patched 3 days ago: http://stackoverflow.com/questions/11598935/uwsgi-resends-headers-in-async-mode To anyone else using a recent version of uwsgi - you might want to

[web2py] User accessed site without logging in

2012-07-24 Thread Neil
personally. However, it's concerning enough that I thought I'd see if anyone else has experienced such a thing. If not, any ideas how such a thing could even happen? I'm using trunk - I suppose I should roll back to stable? Neil --

Re: [web2py] User accessed site without logging in

2012-07-24 Thread Neil
at it, session.forget in application/default/index seems like a bad idea. I put it in to see if I could speed up the main page and kind of forgot about it... Just removed it. Neil On Tuesday, July 24, 2012 2:11:25 PM UTC+1, Richard wrote: For sure using trunk is not very safe in production

[web2py] Re: User accessed site without logging in

2012-07-24 Thread Neil
. Neil On Tuesday, July 24, 2012 4:43:44 PM UTC+1, Massimo Di Pierro wrote: We will investigate this throughly but please get as much information as possible about what this person was doing. Did he try login? Could you also send me a copy of your app (confidentially)? The fact is even

Re: [web2py] uWSGI and routes.py

2012-07-22 Thread Neil
this week! Learning web2py has been a pleasure. On Saturday, July 21, 2012 10:06:32 PM UTC+1, Jonathan Lundell wrote: On 21 Jul 2012, at 1:38 PM, Neil wrote: I can confirm that I can't reproduce the behaviour using the same web2py code locally with Rocket on windows. Also, I tried adding

Re: [web2py] Re: Minimum memory requirements?

2012-07-21 Thread Neil
I'm following these instructions, and get stuck at the same point: initializing 24 uGreen threads with stack size of 262144 (256 KB) mprotect(): Invalid argument [plugins/ugreen/ugreen.c line 109] How did you fix this? On Thursday, July 5, 2012 4:17:48 PM UTC+1, Alec Taylor wrote: Alright,

Re: [web2py] Re: Minimum memory requirements?

2012-07-21 Thread Neil
:56 AM UTC+1, Neil wrote: I'm following these instructions, and get stuck at the same point: initializing 24 uGreen threads with stack size of 262144 (256 KB) mprotect(): Invalid argument [plugins/ugreen/ugreen.c line 109] How did you fix this? On Thursday, July 5, 2012 4:17:48 PM UTC+1

Re: [web2py] Re: Minimum memory requirements?

2012-07-21 Thread Neil
not included). However, when I put ugreen back in and removed --limit-as 64, it worked (with ver 1.2.4) Neil On Saturday, July 21, 2012 11:02:51 AM UTC+1, Alec Taylor wrote: When I currently visit the site it says: uWSGI Error Python application not found The logfile says: Python version

[web2py] Re: uWSGI and routes.py

2012-07-21 Thread Neil
I'm going through this exact thing at the moment. I was wondering if it was because I am testing out the dev version of web2py, but I guess not. If I click the reload routes link on the main admin page it works. At least temporarily - I'm experiencing some strange behaviour. I know I have to

[web2py] Re: uWSGI and routes.py

2012-07-21 Thread Neil
Trunk. routes seems to work for a minute or two, and then stops until I click the reload button. Not sure if this is a uwsgi issue or not. On Saturday, July 21, 2012 3:11:29 PM UTC+1, Massimo Di Pierro wrote: Using stable or trunk? On Saturday, 21 July 2012 07:06:02 UTC-5, Neil wrote: I'm

[web2py] Re: uWSGI and routes.py

2012-07-21 Thread Neil
Just checked, and I don't have this problem with stable. After a bit more testing, it appears that routes turns on and off sporadically. For example, if I set the default application to examples, and hit refresh on the root domain 10 times, sometimes the welcome application loads and sometimes

Re: [web2py] Re: Minimum memory requirements?

2012-07-21 Thread Neil
Sure, I'll create a script once I have a more confidence that everything is working. I still don't completely understand some of the settings I've found to work, so I'm a little hesitant... On Saturday, July 21, 2012 3:08:52 PM UTC+1, Massimo Di Pierro wrote: Neil, do you think it is work

Re: [web2py] uWSGI and routes.py

2012-07-21 Thread Neil
I can confirm that I can't reproduce the behaviour using the same web2py code locally with Rocket on windows. Also, I tried adding: logging = 'debug' and default_ logging = 'debug' to routes.py, and I couldn't get any logged info (on either platform). Neil On Saturday, July 21, 2012 7

[web2py] Re: Web2py expert needed for start-up

2012-07-18 Thread Neil
How does the experts4solutions website work? For example, if I wanted to see if anyone (anywhere) was interested in a paid hourly contract, would I have to send an individual email to each expert listed? Who does the contact us form get sent to? It would be really useful to be able to post

[web2py] Re: Form submission and view page source

2012-06-29 Thread Neil
. Thanks again, Neil

[web2py] Form submission and view page source

2012-06-28 Thread Neil
to be viewing the page source), but my hope is that if I understand what causes it, I may be able to figure out why it happens randomly for me *without *viewing the source. Thanks, Neil

[web2py] Re: Form submission and view page source

2012-06-28 Thread Neil
matches. What is the recommended solution when this seems to happen randomly to some pages? Sounds like removing the session from the form opens up vulnerabilities. Neil On Thursday, June 28, 2012 8:01:42 PM UTC+1, Neil wrote: I have a page with a simple form on it, and sometimes when I click

[web2py] Re: Admin - edit static files is broken

2012-06-19 Thread Neil
recommend a safe update to the regular expression? Thanks, Neil On Monday, June 18, 2012 9:27:43 PM UTC+1, Neil wrote: Arnaud - did you find a solution to this? I am having the same problem: I deployed to nginx, and I can edit the models/views/controllers/etc. without any problems. However, I

[web2py] Re: Admin - edit static files is broken

2012-06-18 Thread Neil
ideas of other things I can check? Thanks, Neil On Sunday, October 3, 2010 10:09:48 AM UTC+1, Arnaud Masselin wrote: Hi MAssimo, on localhost, I use web2py server. I look in httpd config. Thanks. On 2 oct, 22:04, mdipierro mdipie...@cs.depaul.edu wrote: Could be a permission issue. When

[web2py] Re: Remembering selections for form submission

2012-05-12 Thread Neil
Actually, I fixed it another way. My problem was that I was using the same options as input for multiple SELECT()s. If I create new instances of OPTIONS() for each drop-down box, the state is correctly remembered. Thanks, Neil On Saturday, May 12, 2012 12:22:13 AM UTC+1, Massimo Di Pierro

[web2py] Remembering selections for form submission

2012-05-11 Thread Neil
. In particular, it always says selected=0. Is this a bug, or am I doing something wrong? Is there a workaround? Neil