[web2py] Unpickle session_data from a MySQL database

2016-02-26 Thread NeoToren
In order for a progress bar using cache.ram, and an ajax call to work properly, there is a need to clean (or just unlock?) sessions. If the app doesn't use session variables to pass to other controllers then session.forget(response) is sufficient. If on the other hand, the app needs session vari

[web2py] Multiple Ajax calls and session variables - can we have both ?

2016-02-26 Thread NeoToren
up vote down votefavorite In order for a progress bar using cache.ram, and an ajax call to work properly, there is a need to clean (or just unlock?) sessions. If the app doesn't use session variables to pass

[web2py] Capture XML response into string for further parsing with ElementTree

2015-04-25 Thread NeoToren
Amazon Payments responds to a website with XML. Amazon doesn't send back an XML to my site - it just displays XML - at the same URL my website sent a well formed, hashed and signed message. I need to parse the Amazon XML response into meaningful variables for moving forward with the purchasing wo

[web2py] Deployment Recipe Web2Py on PythonAnywhere

2015-03-31 Thread NeoToren
I have summarized my deployment recipe to PythonAnywhere: http://www.icd10doc.com/init/recipes/DeployWeb2PyPythonAnywhere Hope it helps. NeoToren -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: PythonAnywhere performance is significantly slower than locally

2015-03-31 Thread NeoToren
PythonAnywhere took care of it... Some rogue processes on their behalf Now everything is working great and I am happy as a clam on high-tide Thanks NeoToren On Saturday, March 21, 2015 at 4:21:40 PM UTC-4, NeoToren wrote: > > My website is using MySQL and consists mostly of queries and

[web2py] Re: PythonAnywhere performance is significantly slower than locally

2015-03-23 Thread NeoToren
re staff | March 23, 2015, 12:35 p.m. On Saturday, March 21, 2015 at 4:21:40 PM UTC-4, NeoToren wrote: > > My website is using MySQL and consists mostly of queries and simple > display of textual results. No images or fancy CSS. > > Locally, queries response time is *sub second*.

[web2py] PythonAnywhere performance is significantly slower than locally

2015-03-21 Thread NeoToren
My website is using MySQL and consists mostly of queries and simple display of textual results. No images or fancy CSS. Locally, queries response time is *sub second*. Deployed to PythonAnywhere (using the couple of basic efficiency tricks in the book) - and the same queries may take *7-8 second

[web2py] Re: reCaptcha works locally but not on PythonAnywhere

2015-03-19 Thread NeoToren
, You are the best ! NeoToren On Monday, March 16, 2015 at 9:26:44 PM UTC-4, NeoToren wrote: > > Locally on http://127.0.0.1:8000/ reCaptcha works as expected. > When deployed to PythonAnywhere ("production") on the form it is supposed > to work, I get only the "Verify&qu

[web2py] reCaptcha works locally but not on PythonAnywhere

2015-03-16 Thread NeoToren
Locally on http://127.0.0.1:8000/ reCaptcha works as expected. When deployed to PythonAnywhere ("production") on the form it is supposed to work, I get only the "Verify" (the label) but nothing else. I have used to keys from Google in db.py as: from gluon.tools import Recaptcha `auth.settings.cap

[web2py] Invalid reset password (and another issue)

2015-03-10 Thread NeoToren
WORKS !* *2. Playing with the various options in db.py trying to figue the first issue, I have noticed another strange behavior. **If I modify the line:* auth.settings.reset_password_requires_verification = True *to * auth.settings.reset_password_requires_verification = False *W2P still sends an email when a pass

[web2py] Re: i am trying send email using web2py with gmail and using smtp setting i have attached all code

2015-02-16 Thread NeoToren
"Web2Py") 3. In the model where the mail services are defined - use exactly what's recommended in the W2P book with the new pwd mentioned above - and it works ! Thanks for mentioning it Michael NeoToren On Saturday, April 26, 2014 at 6:45:30 AM UTC-4, Michael Beller w

[web2py] Re: only one session/login per user?

2015-02-08 Thread NeoToren
tions), so not too many DB hits for the above. The above is not dependent on the user logging out. No IP address is involved (which others have mentioned, suffers from its own issues) It allows only ONE user to be logged in at a time and it logs out the "older" user. Hope it helps Neo

[web2py] Re: Web2Py on AWS EC2

2015-01-05 Thread NeoToren
Must be something really simple (and stupid on my behalf) that I am doing or not doing correctly... While in the web2py folder on the AWS instance, I've run web2py by trying both specifying the port and without it: 1. python web2py.py -i 0.0.0.0 -a mypwd 2. python web2py.py -i 0.0.0.0 -a mypwd -

[web2py] Re: Web2Py on AWS EC2

2015-01-03 Thread NeoToren
With that being said - is web2py running on my Linux AWS EC2 instance ? If so - how to access it ? Many thanks NeoToren On Saturday, January 3, 2015 11:07:17 AM UTC-5, Niphlod wrote: > > AWS EC2 is nothing more of a linux server . to start executables listening > on port 80 superuser permi

[web2py] Web2Py on AWS EC2

2015-01-02 Thread NeoToren
I have an instance running Linux at Amazon AWS EC2 after carefully following the instructions provided by Amazon here . I have set-up the security groups as mentioned in the documentation provided by Amazon.

[web2py] Re: Howto deploy web2py on a shared host?

2014-05-04 Thread NeoToren
cide upon Good luck! NeoToren On Friday, May 2, 2014 7:28:06 PM UTC-4, jansende wrote: > > Hi guys, > I am searching for a web-framework for my website, and are currently > trying several option. > I would be interested in using web2py, but I do not have any idea how to > install

[web2py] Re: i am trying send email using web2py with gmail and using smtp setting i have attached all code

2014-04-25 Thread NeoToren
Problem is gmail... See solution here https://groups.google.com/forum/#!msg/web2py/CU_1qWYixjI/YYczniWQ1mMJ or at SO: http://stackoverflow.com/questions/19085738/i-am-trying-send-email-using- web2py-with-gmail-and-using-smtp-setting-i-have-att/21269760#21269760 On Wednesday, April 23, 2014 3:59:4

[web2py] Re: Web2py instead of MS Access?

2014-02-19 Thread NeoToren
27;t let friends use mysql. It's not standards compliant, and has > a lot more gotchas. use Postgres, > > example: > http://sql-info.de/postgresql/postgres-gotchas.html > http://sql-info.de/mysql/gotchas.html > > On Saturday, February 15, 2014 3:22:59 PM UTC-7, NeoToren

[web2py] Re: Making a phone call from within Web2Py

2014-02-19 Thread NeoToren
s as far as automatically dialing. > 555-555- > that will bring up the dialer with the phone number already filled out. > > On Monday, February 17, 2014 9:11:15 PM UTC-7, NeoToren wrote: >> >> Maybe I am pushing the limits here...but I wonder, if we have an address >> b

[web2py] Making a phone call from within Web2Py

2014-02-17 Thread NeoToren
Maybe I am pushing the limits here...but I wonder, if we have an address book, with phone numbers ...and today most apps (W2P included) run quite well in browsers (NOT as native app but HTML)then can user just click on the number and the "smart "phone will make the call ? Like a ...native a

[web2py] Re: Web2py instead of MS Access?

2014-02-15 Thread NeoToren
Web2Py is the glue between a database and the user interface - say a web site, HTML pages. It doesn't have a database, so you'll need to use either SQLite (built in every Mac) or some other DB. Personally I suggest using MySQL - it is open source, industrial strength and will help you grow out o

[web2py] Re: Escaping '%' percent character

2014-02-14 Thread NeoToren
If you need it for running a SQL query using the LIKE operator...the following worked for me: sqlstring = "SELECT * FROM tableX WHERE fieldY LIKE '%"+something[0]+"%'" On Wednesday, February 12, 2014 12:28:35 PM UTC-5, Alejandro Garza Gracia wrote: > > Hello, I've looked through the documentat

[web2py] Re: Javascript runs locally but not when deployed

2014-02-14 Thread NeoToren
Tried it. Does work locally - does NOT work when deployed... On Friday, February 14, 2014 12:21:13 PM UTC-5, Leonel Câmara wrote: > > It could, as browser would block it. > > Just change: > http://widgets.aapc.com/countdown/aapc_cdwidgetbox_220.js > "> > > To: > src="//widgets.aapc.com/countd

[web2py] Re: Javascript runs locally but not when deployed

2014-02-14 Thread NeoToren
Glenn from PythonAnywhere suggested on StackOverflow it may happen since page is https while widget is http... On Thursday, February 13, 2014 8:16:06 PM UTC-5, NeoToren wrote: > > I am trying to run a simple javascript that needs to fetch an external URL: > > http://widgets.aapc.c

[web2py] Javascript runs locally but not when deployed

2014-02-13 Thread NeoToren
I am trying to run a simple javascript that needs to fetch an external URL: http://widgets.aapc.com/countdown/aapc_cdwidgetbox_220.js";> When locally - it works great. When deployed on PythonAnywhere - it doesn't work and it doesn't throw an error. I have tried wrap a container around it

[web2py] Re: Dreamhost deployment

2014-02-09 Thread NeoToren
PythonAnywhere has a beginner's plan for ...free On Sunday, February 9, 2014 2:39:25 PM UTC-5, sasogeek wrote: > > I would, except their pricing is too expensive for me right now. > > On Saturday, 8 February 2014 21:55:50 UTC, NeoToren wrote: >> >> If you want to

[web2py] Re: Dreamhost deployment

2014-02-08 Thread NeoToren
If you want to deploy quickly and pain free - try PythonAnywhere. I just deployed there recently and the whole process took literally minutes. Web2Py (and MySQL) are already installed there and wait for you as consoles. So you have the familiar W2P interface waiting for you to work in the cloud li

[web2py] Re: how to keep request when redirecting

2014-02-07 Thread NeoToren
Maybe capturing what you need in session.chkbox1, session.radio2, etc ? It should work while you move between views... On Sunday, February 2, 2014 12:21:44 PM UTC-5, aapaap wrote: > > hello, > > I've a form with checkboxes and radiobuttons. > All the checkboxes and radioboxes are auto-commit, i

[web2py] Did anyone submit a web2py app on Google Play or iTunes ?

2014-02-07 Thread NeoToren
p://wiki.nsbasic.com/Submitting_to_the_Google_Play_and_Amazon_Stores They mention a config.xml one has to tweak in order for PhoneGap to work properly and do its magic ...or...work with PhoneGap SDK... Anyone went through the process ? Thanks NeoToren -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: Companies and Startups that use WEB2PY

2014-01-29 Thread NeoToren
How can one add a company to the list ? Here is something I have participated in its development (and it was so much fun learning W2P !!!): http://icd10doc.com/ On Wednesday, January 29, 2014 7:44:54 AM UTC-5, Francisco Costa wrote: > > List of some Companies and Startups that use Web2py: > ht

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread NeoToren
xist"...* Using the suggestion in the book (pay attention to caveat raised there) - this is how eventually the connection worked for me... *db = DAL('mysql://YourPAusername:YourPaMySQLpwd@mysql.server/YourPAusername$default', fake_migrate_all=True)* Many thanks and may the

[web2py] Re: web2py fails when mysql tables already exist

2014-01-23 Thread NeoToren
Had this problem deploying MySQL and the W2P recipe in the book: "Migration problems can also be fixed for all tables at once: db = DAL(...,fake_migrate_all=True) " Solved it immediately ! On Thursday, January 12, 2012 12:29:29 AM UTC-5, Lewis wrote: > > web2py has failed when the authuser tabl

[web2py] DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-22 Thread NeoToren
I have managed to deploy to *PythonAnywhere* (*PA*) the MySQL database in a matter of minutes! Then I have re-created the Web2Py , uploaded and installed my application from the localhost - literally 5 minutes !! The familiar Web2Py interface was ready like a charm...so the description of PA in

Re: [web2py] Re: Unable to send email on server in web2py.....

2014-01-22 Thread NeoToren
wdYouGonnaGetFromMandrillapp' Take care, NeoToren On Wednesday, January 22, 2014 9:00:35 AM UTC-5, Akash Agrawall wrote: > > Can you explain it in a more brief way. Like where are you hosting the > site and which site you are using to send the mail from(like gmail, yahoo > or ??

[web2py] Re: Unable to send email on server in web2py.....

2014-01-22 Thread NeoToren
Hello, I have had the same issue trying to send email using Web2Py server. This is not mere luxury, emails are needed for a robust authentication process which Web2Py offers, IF one can send emails from W2P... Seems the problem is with GMAIL as other have noted before, on this and on other blo