[web2py] production - db migration issue. Works in sqlite but not mysql

2019-05-15 Thread Ron Chatterjee
Hello all, In PA I am running this app with an existing mysql database and I am having migration issue. If I run the db.py with db.migrate, it says 1050, "Table 'auth_user' already exists If I run the table with migrate=False, and fake_migrate = True I get another error: mytable.products'

Re: [web2py] Re: Why python anywhere stuck with web2py 2.15 version

2019-04-11 Thread Ron Chatterjee
Can anyone help about how to update 2.14 to 2.18 in python anywhere and lay out the steps? On Tuesday, April 9, 2019 at 11:15:23 AM UTC-4, Ron Chatterjee wrote: > > Massimo, if python anywhere switch to web2py version of 2.17. Apps that > was created using web2py version og 2.14, w

[web2py] Apps created using web2py 2.14 version doesn't open in 2.18

2019-04-11 Thread Ron Chatterjee
Does anyone know how to mitigate the issue? -- 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 the Go

Re: [web2py] Re: Why python anywhere stuck with web2py 2.15 version

2019-04-09 Thread Ron Chatterjee
Massimo, if python anywhere switch to web2py version of 2.17. Apps that was created using web2py version og 2.14, will still open up with 2.17. No? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

Re: [web2py] Re: Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-04-01 Thread Ron Chatterjee
This is a bigger problem than space X On Monday, April 1, 2019 at 8:45:56 AM UTC-4, Nico Zanferrari wrote: > > Hi Ron, > > so there should be other problems... Take a look here > https://www.pythonanywhere.com/forums/topic/7669/ , it shows you how to > change the password,

[web2py] Re: Why python anywhere stuck with web2py 2.15 version

2019-04-01 Thread Ron Chatterjee
I did. They said its lot of work to change from 2.14 to any newer version and they don't have time. On Monday, April 1, 2019 at 7:27:23 PM UTC-4, Scott Hunter wrote: > > Shouldn't you ask them? > > On Monday, April 1, 2019 at 8:57:21 AM UTC-4, Ron Chatterjee wrote: >

[web2py] Why python anywhere stuck with web2py 2.15 version

2019-04-01 Thread Ron Chatterjee
Does anyone know why python anywhere only give option for 2.15 edition of web2py? If I have to guess that's few years old. I asked the question because I am not sure if they believe 2.15 is more stable for 2.18. Is any reason they use an older version of web2py? -- Resources: - http://web2py.c

Re: [web2py] Re: Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-04-01 Thread Ron Chatterjee
et an error: admin disabled because unable to access password file -Ron On Sunday, March 31, 2019 at 4:37:58 PM UTC-4, Nico Zanferrari wrote: > > Hi Ron, > > the integrated upgrade button works fine on PA. But after obtaining the > ticket error on the web2py page you have t

[web2py] Click the update web2py button in Python Anywhere (PA) leads to crash.

2019-03-31 Thread Ron Chatterjee
Hello, Clicked on the update button on python anywhere and web2py didn't update. Python Anywhere send me a link to help the issue which doesn't help the issue. May be they don't have a clue. Have anywhere created a python anywhere site where they "update" the web2py using the PA button and it c

[web2py] $50 take a bootstrap and create a web2py app. Anyone interested?

2019-01-15 Thread Ron Chatterjee
I haven't used the app for long time. To get going fast, looking for someone to create a template using bootstrap. Method to be followed: http://www.web2pyslices.com/slice/show/1516/adapt-a-css-template-to-web2py-layouthtml I will need one table that calls on a for loop to upload pics and video

Re: [web2py] Re: Future of web2py

2017-06-27 Thread Ron Chatterjee
What is web2py-optimized? -- 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 the Google Groups "web

[web2py] Re: Future of web2py

2017-06-26 Thread Ron Chatterjee
And If I have to guess the fastest framework is not in python. On Monday, June 26, 2017 at 10:19:45 AM UTC-4, Anthony wrote: > > On Saturday, June 24, 2017 at 11:55:13 AM UTC-4, Ben Lawrence wrote: >> >> Thanks Massimo for outlining your plan. Would you be able to outline the >> goal? >> >> I th

[web2py] Re: cpython and web2py

2017-06-25 Thread Ron Chatterjee
Ok. I buy that. Speed is always a plus. Whats are the calls to run web2py with pypy? Can you share a link or an example? I cant seem to find that in the book. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://

[web2py] Re: Future of web2py

2017-06-25 Thread Ron Chatterjee
If the site gets 1000 clicks a day but cant handle 10k clicks a day, then its not web2py problem but success. The problem falls to the owner who cant handle the scaling beyond 1k clicks. In other words, if it scales that much fast, one should look at all the framework across the spectrum to see

Re: [web2py] Re: we2admin tables

2017-06-22 Thread Ron Chatterjee
Does this help? http://www.web2pyslices.com/slice/show/2018/plugin-manage-groups -- 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 messag

[web2py] Looking for consultant for short term engagement to help with our aging web2py app

2017-06-22 Thread Ron Chatterjee
How much it pays? -- 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 the Google Groups "web2py-users

[web2py] Re: New site on web2py

2017-06-21 Thread Ron Chatterjee
+1 -- 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 the Google Groups "web2py-users" group. To uns

[web2py] Re: sitemap.xml

2017-06-21 Thread Ron Chatterjee
Which directory sitemap.xml should be placed at? I am guessing under the app directory? On Wednesday, May 15, 2013 at 6:26:58 PM UTC-4, Omi Chiba wrote: > > You're right. The web site I previously posted create the index up to > controller level. I think it's OK for now. > > On Wednesday, May

[web2py] Re: New site on web2py

2017-06-21 Thread Ron Chatterjee
Is this your personal site or you doing this for a client? -- 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 subs

[web2py] Re: cpython and web2py

2017-06-18 Thread Ron Chatterjee
Have anyone tried this? Wondering if this is a way to gain some speed. https://micropyramid.com/blog/running-django-with-pypy-to-boost-performance/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: New site on web2py

2017-06-14 Thread Ron Chatterjee
Interesting! What are the marketing steps you are taking to promote the site? On Wednesday, June 14, 2017 at 9:36:18 AM UTC-4, Ian Ryder wrote: > > Hi all, not sure if it's OK to do this - slap me down if not! > > We're just about to launch a new tool / site based on web2py - > https://www.wher

[web2py] Re: contact form with attachments

2017-06-13 Thread Ron Chatterjee
So many ways to do this but you can try this in JS fiddle and it works for me (https://jsfiddle.net/k6mcvj3j/). You can then use the custom form explained in web2py book and insert them in the database Sender Email: Recipient Email: Subject:

[web2py] Re: Future of web2py

2017-06-13 Thread Ron Chatterjee
)? - Do you recommend people who are using web2py for deployment and regular site (already functionaly) to switch over to web3py and leave web2py just to get the training and that's it? - Is there a specific advantage of web3py over web2py other than speed? -Ron On Sunday, June 11,

[web2py] Re: Future of web2py

2017-06-10 Thread Ron Chatterjee
I guess this is something massimo is proposing but this is already in use. Am I correct? https://pypi.python.org/pypi/bottle-web2pydal/ On Friday, June 9, 2017 at 9:30:08 PM UTC-4, Ron Chatterjee wrote: > > No I am saying how fast web3py will be comparing django or flask? -- Res

[web2py] Re: Future of web2py

2017-06-09 Thread Ron Chatterjee
No I am saying how fast web3py will be comparing django or flask? -- 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 ar

[web2py] Re: Future of web2py

2017-06-09 Thread Ron Chatterjee
10:14:19 AM UTC-4, Ron Chatterjee wrote: >> >> Can we have something intermediate to help with the speed meanwhile? I >> am guessing speed will be the only motivation to consider in going from >> pathon 2 to python 3. > > > Not sure what you mean. Are you talkin

[web2py] Re: Future of web2py

2017-06-08 Thread Ron Chatterjee
Can we have something intermediate to help with the speed meanwhile? I am guessing speed will be the only motivation to consider in going from pathon 2 to python 3. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

[web2py] Re: Code editor with code completion

2017-06-06 Thread Ron Chatterjee
wing IDE. On Tuesday, June 6, 2017 at 9:34:01 AM UTC-4, Assela Pathirana wrote: > > Dear all, > > I have started dabbling with web2py since a few weeks. Created several > simple apps of my own and quite happy with it as a web framework. I have > the following questions, to which I could not

[web2py] Re: different default application based on the host header - Python anywhere - Go daddy

2017-06-06 Thread Ron Chatterjee
Seems working now. Sorry Massimo, may be I was getting the cache. On Monday, June 5, 2017 at 8:40:10 PM UTC-4, Ron Chatterjee wrote: > > Okay, but Massimo, > > What's the logic to route multiple domain to multiple different apps > hosted at pythonanywhere? The abov

[web2py] Re: different default application based on the host header - Python anywhere - Go daddy

2017-06-05 Thread Ron Chatterjee
Okay, but Massimo, What's the logic to route multiple domain to multiple different apps hosted at pythonanywhere? The above don't seem to work (example shown with two domains being routed to two apps - doesn't work). -Ron On Sunday, June 4, 2017 at 12:14:11 PM UTC-4, Massimo

[web2py] Re: email sending problem

2017-06-04 Thread Ron Chatterjee
First make sure gmail is set up as less secured app. -- 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

[web2py] Re: different default application based on the host header - Python anywhere - Go daddy

2017-06-04 Thread Ron Chatterjee
Would this be same as the domain mapping? routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1', 'domain2.com' : 'app2', } ), ) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Future of web2py

2017-06-02 Thread Ron Chatterjee
apologies for ignorance on this topic but can this be a temporary fix to see how much benefits web2py will have prior to go with full web3py features? https://docs.python.org/2/library/2to3.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Re: different default application based on the host header - Python anywhere - Go daddy

2017-06-02 Thread Ron Chatterjee
You are right. I bought domain from go daddy. My hosting is with pythonanywhere. Currently using routes.py I get one go daddy domain to get redirect to one app. For the second domain at godaddy, what set up at routes.py I need to be redirected to the second app at the hosting platform? -- Re

[web2py] Re: Future of web2py

2017-05-30 Thread Ron Chatterjee
Massimo, Do you see its better to do incremental changes to web2py that leads us to web3py at some point than to a completely new framework which may be lot of work and it will take monumental effort to fix all the bugs it may have.Just some thoughts... On Tuesday, May 30, 2017 at 12:40:45 PM

[web2py] different default application based on the host header - Python anywhere - Go daddy

2017-05-30 Thread Ron Chatterjee
How do I set up routes.py for multiple domain? Currently I have one domain in go daddy that I tied to python anywhere with routes.py as shown below and it works fine. When I go to www.domain1.com it gets routed to my_app in pythonanywhere. routers = dict( BASE = dict(default_application='my

[web2py] Re: Future of web2py

2017-05-28 Thread Ron Chatterjee
How different web3py will be as opposed to web2py? Big learning curve or very similar? Can someone upload a w2p file and convert into w3p with few changes? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: cpython and web2py

2017-05-28 Thread Ron Chatterjee
I understand that. No one is disputing better coding better performance. But the question is: Cython wrapper ( Default. Py ) Is it possible. If so how? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] Re: change background color of a form

2017-05-23 Thread Ron Chatterjee
try this. {{form.element('input[type=submit]').update(_class="btn btn-primary")}} {{form.element('input[type=text]').update(_class="custom")}} {{=form}} $('textarea').css('background', 'blue'); .custom { background-color: green; } On Tuesday, May 23, 2017 at 11:41:04 PM UTC-4, rajjm...

[web2py] Re: email not sent

2017-05-17 Thread Ron Chatterjee
This have done the trick! thank you - PA https://www.google.com/accounts/DisplayUnlockCaptcha On Wednesday, May 17, 2017 at 10:03:51 AM UTC-4, Ron Chatterjee wrote: > > I did all of that. Gmail is set as less secured. Here is the app and > instruction to make it to work locally (loc

[web2py] Re: cpython and web2py

2017-05-15 Thread Ron Chatterjee
Actually, I am referring to cython. Not cpython. Have anyone ever tried to put a cython wrapper into default.py? https://www.quora.com/What-is-the-difference-between-Cython-and-CPython On Monday, May 15, 2017 at 9:40:09 PM UTC-4, Ron Chatterjee wrote: > Have anyone ever tried to pu

[web2py] cpython and web2py

2017-05-15 Thread Ron Chatterjee
Have anyone ever tried to put a wrapper around the default.py with cpython to make it faster? -- 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 receive

[web2py] pythonanywhere - email not sent

2017-05-15 Thread Ron Chatterjee
I can send email locally from my desktop but I am having issues send ing email through python anywhere. I have the gmail set up as "allowing less secure app" and below is the set up. Any help will be much appreciated. #- -- in db.py I ha

Re: [web2py] Web2py and WebRTC?

2017-05-07 Thread Ron Chatterjee
If someone has experience implementing webrtc there is a paid project would like to discuss with. Drop me a line private -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: Cockroach DB

2017-04-21 Thread Ron McOuat
Database survives outages like the bug colony survives in life. Interesting analogy but the bug is still repulsive. On Wednesday, 12 April 2017 04:43:48 UTC-7, Massimo Di Pierro wrote: > > Interesting... bad name > > On Tuesday, 11 April 2017 07:40:38 UTC-5, mcm wrote: >> >> This seems a real bar

[web2py] checklist for matplotlib

2017-04-09 Thread Ron Chatterjee
https://github.com/juliangaal/python-cheat-sheet/blob/master/Matplotlib/Matplotlib.md -- 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 me

Re: [web2py] Re: japronto

2017-02-10 Thread Ron Chatterjee
b2py build python 3 > compliant then we will undertake others challenges. > > In either way, once we will have web2py/web3py we will have to rewrite > (your are not forced because you will still be able to use python 2) our > apps, so Massimo is planning to seize the opportunity to

[web2py] Re: Payment gateway working app using AuthorizNet

2017-02-06 Thread Ron Chatterjee
> anybody used that in year. > > On Monday, 30 January 2017 15:35:00 UTC-6, Ron Chatterjee wrote: >> >> Is there a fully working version of payment gateway using AuthorizeNet >> that anyone can share? >> >> -- Resources: - http://web2py.com - http://web2py.c

[web2py] Re: japronto

2017-02-06 Thread Ron Chatterjee
Why can't we make web2py faster ? On Thursday, February 2, 2017 at 9:36:34 AM UTC-5, mcm wrote: > > > I agree nice and could be useful in speedy services and we should see if > it can be used in front of web2py. > > But it is more important for the long term that we start to think about > levera

[web2py] Re: Comparison doc for hosting a web2py app

2017-02-03 Thread Ron Chatterjee
How do rack up $200/ month? I thought they only charge me $5 a month. Isn't that python anywhere is already assembled nicely to host web2py app as oppose to others. Doesn't that comes into play for efficiency? I never deployed anything on Amazon. How is that experience like? On Friday, Februa

[web2py] Re: Comparison doc for hosting a web2py app

2017-01-30 Thread Ron Chatterjee
Is it fair to say then AWS wins over pythonanywhere hands down? On Monday, January 30, 2017 at 5:32:28 PM UTC-5, Dave S wrote: > > > > On Monday, January 30, 2017 at 1:44:48 PM UTC-8, Ron Chatterjee wrote: >> >> Is there any documentation of what's the most opt

[web2py] Comparison doc for hosting a web2py app

2017-01-30 Thread Ron Chatterjee
Is there any documentation of what's the most optimum hosting platform for web2py as a function of scaling and speed? for example Heroku | pythonanywhere | AmazonEC2 | google App file size, number of users, demand per second or page speed, storage traffic, price...More like to give a per

[web2py] Payment gateway working app using AuthorizNet

2017-01-30 Thread Ron Chatterjee
Is there a fully working version of payment gateway using AuthorizeNet that anyone can share? -- 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 receive

[web2py] Re: Jquery Decision Tree

2016-12-13 Thread Ron Chatterjee
Sure the new president elect will. lol. jk:-). I am good for now but thanks for sharing Massimo. On Friday, December 9, 2016 at 11:32:22 AM UTC-5, Massimo Di Pierro wrote: > > To other web2py users. > > I would like to add that Mark Billion is a lawyer from Delaware. He is a > terrific lawyer

Re: [web2py] Re: Graph Model (proposal to contribute)

2016-11-16 Thread Ron Chatterjee
+1. Is it going to be standard on next upgrades? On Wednesday, November 16, 2016 at 9:58:35 AM UTC-5, Ramos wrote: > > +1 for D3 > no need to install graphviz and pygraphviz on the server... > > > 2016-11-16 13:56 GMT+00:00 Richard Vézina >: > >> Could we keep both rendering mechanism graphviz

[web2py] Re: IDE for using web2py on windows

2016-11-01 Thread Ron Chatterjee
wing IDE wing IDE wing IDE! On Monday, October 31, 2016 at 7:28:07 PM UTC-4, Nikos Panagogiannopoulos wrote: > > I am a Linux user also. > So > Wing IDE and PyCharm do clearly support web2py. > Atom.io IDE maybe needs some configuration to run it directly (proximity) > (!not so very serius lack

[web2py] Re: web2py + cordova + APIs

2016-10-16 Thread Ron Chatterjee
Massimo, you really set the standard for others that I doubt anyone can meet! awesome. On Saturday, October 15, 2016 at 11:34:07 PM UTC-4, Massimo Di Pierro wrote: > > copy it from your welcome app. > > On Saturday, 15 October 2016 20:17:37 UTC-5, pbreit wrote: >> >> Interesting. >> >> I'm gett

[web2py] Re: Experts4Solutions down?

2016-10-11 Thread Ron Chatterjee
I have the same inquiry. On Tuesday, October 11, 2016 at 9:55:32 PM UTC-4, Paul Flaherty wrote: > > Hi All, > > First post to this list. Thanks to all the developers and contributors for > the tremendous work! > > It appears that Experts4Solutions is down, and an email I sent sometime > back to

Re: [web2py] Re: Alternative IDEs?

2016-09-19 Thread Ron Chatterjee
Wing IDE and don't look back On Monday, September 19, 2016 at 9:56:07 AM UTC-4, Philip Kilner wrote: > > Hi, > > On 19/09/16 12:36, Jurgis Pralgauskis wrote: > > What are people mostly using for W2P dev? > > I'm currently using Atom and Cloud 9. > > To be honest, I'm getting on better with Clo

[web2py] Re: Web2py Solr UI

2016-09-19 Thread Ron Chatterjee
keywords and can efficiently search > them inside text. > Whoosh, Solr, and other libraries to that. Haystack is a wrapper named > after the equivalent Django module. > > > On Friday, 16 September 2016 10:05:29 UTC-5, Ron Chatterjee wrote: >> >> I never used heystac

[web2py] Re: Web2py Solr UI

2016-09-16 Thread Ron Chatterjee
I never used heystack so its interesting. How the heystack has advantage over this? query = SQLFORM.*build_query*(list_of_searchable_fields,search_text) On Thursday, September 15, 2016 at 6:51:25 PM UTC-4, Donald McClymont wrote: > > Massimo has also posted this as a starting point > https:

[web2py] Re: LOCALS | FL | CT | Senior Salesforce Developer Remote

2016-09-14 Thread Ron Chatterjee
Doesn't mention anything about compensation. On Wednesday, September 14, 2016 at 9:36:51 AM UTC-4, Ali Quasim wrote: > > Hi, > > > > > > · *Role: Senior Salesforce Developer* > > · *Location: Remote - but will have to travel to Tampa, FL OR > Stamford, CT sites occasionally*

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
e > - leave migrate=False on DAL (that ovverrides the default for each table, > minus the one you want to migrate) > - hit appadmin once > - remove the explicit migrate=True from the table > > etc etc etc > > On Monday, September 5, 2016 at 11:27:01 PM UTC+2, Ron Chatterjee wrote

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
migrate_enabled = false migrate = false fake_migrate = false fake_migrate_all = false These settings are only if we don't need to update the database and use the current database. We can use these settings in the deploy mode. Am I correct? In other words, if I delete the entire da

[web2py] Re: Reddit clone source code?

2016-08-28 Thread Ron Chatterjee
https://www.packtpub.com/web-development/web2py-application-development-cookbook Page 61 On Sunday, August 28, 2016 at 8:42:52 PM UTC-4, Massimo Di Pierro wrote: > > Do not know where it is. It is possible I did not save it. > > On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote: >> >> Is the

[web2py] Re: Djano channels

2016-08-27 Thread Ron Chatterjee
is webrtc is pure JS. It is from client to client. Wether you use > Flask or Django or web2py or PHP or ASP to serve pages is irrelevant. > > Massimo > > On Sunday, 27 March 2016 10:05:06 UTC-5, Ron Chatterjee wrote: >> >> https://m.youtube.com/watch?v=uBV_KKGzNqQ >> &

[web2py] Re: How to enclose items within a link?

2016-08-24 Thread Ron Chatterjee
On Wednesday, August 24, 2016 at 3:01:57 PM UTC-4, Alex Glaros wrote: > > How to use web2py redirects to enclose an item? > > For example I want this effect: > > > > > > but instead of I want to use web2py redirect {{=A like this below > > {{=A('', _href=URL('default','documentation'))

[web2py] Re: Limit string length in DAL

2016-08-23 Thread Ron Chatterjee
Ha! requires=[IS_NOT_EMPTY(), IS_LENGTH(64)] And it works like a champ! On Monday, August 22, 2016 at 7:12:50 PM UTC-4, Ron Chatterjee wrote: > > Its all good. Just checking. Thanks for the help Niphlod. > > On Monday, August 22, 2016 at 5:11:17 PM UTC-4, Ron Chatterjee wrote:

[web2py] Re: Can gluon.contrib.populate work with self reference?

2016-08-23 Thread Ron Chatterjee
I experienced the same, there seem to be some funny thing going on with self referencing. On Tuesday, August 23, 2016 at 12:30:40 AM UTC-4, pbreit wrote: > > Well, just removing the db.commit() made it work as well except that it > doesn't populate the self referencing field. > > if db(db.comme

[web2py] Re: Manual Form Input for drop down menu

2016-08-22 Thread Ron Chatterjee
Figured out. It works on name after class. On Sunday, August 21, 2016 at 5:22:11 PM UTC-4, Ron Chatterjee wrote: > > Question, how to get the list of drop down menu from request.vars using > manual form as in the book example (chapter 7) below. > > If I do the followiing.

[web2py] Re: Limit string length in DAL

2016-08-22 Thread Ron Chatterjee
Its all good. Just checking. Thanks for the help Niphlod. On Monday, August 22, 2016 at 5:11:17 PM UTC-4, Ron Chatterjee wrote: > > What I want is allowing user to put limited string but they can't submit > the form with an empty field. > > requires = IS_EMPTY_OR([IS_LEN

[web2py] Re: Limit string length in DAL

2016-08-22 Thread Ron Chatterjee
pply when you use them: forms, > validate_and_insert(), validate_and_update(), etc. Using validators only is > perfectly fine if you let the app validate each and every input. > length=123 enforces the underlying column to be of that length, but if you > want meaningful errors, you nee

[web2py] Re: Limit string length in DAL

2016-08-22 Thread Ron Chatterjee
In other words, if I do this: IS_EMPTY_OR(IS_LENGTH(8)) It prevents longer length string but the empty field is inserted as None. I want to prevent both. On Monday, August 22, 2016 at 10:54:08 AM UTC-4, Ron Chatterjee wrote: > > Two question, if you don't mind. >

[web2py] Re: Limit string length in DAL

2016-08-22 Thread Ron Chatterjee
Two question, if you don't mind. (1) requires = IS_NOT_EMPTY(IS_LENGTH(64)) Or requires = IS_EMPTY_OR(IS_LENGTH(64)) Doesn't work. In other words, if I want to limit the string field entry but also want requires not empty, how to go about it? (2) for my sql, do I still need length = 64 (or 255

[web2py] Manual Form Input for drop down menu

2016-08-21 Thread Ron Chatterjee
Question, how to get the list of drop down menu from request.vars using manual form as in the book example (chapter 7) below. If I do the followiing. I get the input values via request.vars but it doesn't work for the drop down. All Option 1 Option 2 Option 3 Option 4

[web2py] Re: How do I make user redirect to a different page you/index instead of predefined on clicking PROFILE?

2016-08-17 Thread Ron Chatterjee
er.last_name.writable = True >> db.auth_user.minimum_tons.writable = True >> >> >> if request.args[0] == 'profile' then you'll be affecting the form >> displayed. Or, maybe you could redirect from within this controller to the >> actual page that yo

[web2py] Re: How do I make user redirect to a different page you/index instead of predefined on clicking PROFILE?

2016-08-17 Thread Ron Chatterjee
Can you elaborate the problem better? What exactly u trying to solve. Give a url structure of before n after u want to see? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (R

[web2py] Re: How to access class variable in web2py like we do in flask?

2016-08-16 Thread Ron Chatterjee
/gluon/contrib/websocket_messaging.py > It does the same thing and ships with web2py. > > > On Tuesday, 9 August 2016 16:02:58 UTC-5, Ron Chatterjee wrote: >> >> I tried to define those classes in db.py to make them global and >> accessible. But that didn't work. Not sure if I

[web2py] Re: Deployment question

2016-08-16 Thread Ron Chatterjee
On that note, can someone point me to documentation about how to set up an environment in dedicated sever on X86? I am thinking about co-locating than shared hosting. If someone does go that route, how we manage to set up the hosting environment? On Tuesday, August 16, 2016 at 11:50:51 AM UT

[web2py] Re: Error Running Graph Model: "agedge: no key". and Installing instruction for pygraphviz (windows)

2016-08-15 Thread Ron Chatterjee
) And particularly due this field definition. Field("parent_id", "reference employee_comments", readable=False, writable=False), In other words, if I reference the parent id to its own, then the graph model breaks with the error given above. Not sure its a bug but I though

[web2py] Re: web2py in production mode and improving execution time

2016-08-12 Thread Ron Chatterjee
Thank you Niphlod, Anthony. This helps. -Ron On Friday, August 12, 2016 at 11:58:01 AM UTC-4, Anthony wrote: > > On Friday, August 12, 2016 at 11:11:47 AM UTC-4, Niphlod wrote: >> >> use --profiler_dir and then use runsnakerun to inspect. >> > > More specificall

[web2py] Re: web2py in production mode and improving execution time

2016-08-11 Thread Ron Chatterjee
May be this will help: https://blog.mozilla.org/blog/2016/08/04/mozilla-awards-585000-to-nine-open-source-projects-in-q2-2016/ Anyone used PyPy, the Python JIT compiler with web2py project. How was the speed improvement (req/s)? On Thursday, August 11, 2016 at 10:57:38 AM UTC-4, Ron Chatterjee

[web2py] web2py in production mode and improving execution time

2016-08-11 Thread Ron Chatterjee
scala or C. Any thoughts? -Ron -- 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 the Google Groups

[web2py] Re: How to access class variable in web2py like we do in flask?

2016-08-09 Thread Ron Chatterjee
I tried to define those classes in db.py to make them global and accessible. But that didn't work. Not sure if I see any solution to your answer. Am I missing any hint? lol On Tuesday, August 9, 2016 at 4:59:37 PM UTC-4, Niphlod wrote: > > The solution lies in knowing web2py's unique execution m

[web2py] How to access class variable in web2py like we do in flask?

2016-08-09 Thread Ron Chatterjee
I am trying to convert the mini chat flask application to web2py. link: https://github.com/sdiehl/minichat (1) in the flask code, I can access rooms. and users. %flask output. users {u'test': <__main__.User object at 0x03A7F198>} When I do a conversion in web2py, I can't access the clas

[web2py] Re: Email not working

2016-08-09 Thread Ron Chatterjee
Fastmail works too. -- 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 the Google Groups "web2py-us

[web2py] Re: Ubuntu 16.04 - installation script stops

2016-08-09 Thread Ron Chatterjee
Does someone has a similar script for sun solaris? -- 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] Re: Anyone willing to help out with Paypal

2016-08-08 Thread Ron Chatterjee
Haven't had too much luck with this lately. Does anyone has any updates? On Friday, December 3, 2010 at 7:30:37 PM UTC-5, c h wrote: > > Michael, > > while i have not tested it, i would expect all of it to work except > for the crypt() methods. You can post un-encrypted forms to paypal > (prov

[web2py] Passing multiple data to ajax call.

2016-08-08 Thread Ron Chatterjee
In controller, I have a user class {u'test': <__restricted__.User object at 0x099D8F98>} >From the view I tried the ajax call and not being able to pass the users. 'url' : '{{=URL("put")}}/{{=uid}}/{{=room}}/{{=users}}', It doesnt work. I tried. 'd

[web2py] Re: Form custom input errors

2016-08-08 Thread Ron Chatterjee
you can right a custom validator. For example. if form.process().accepted: email_you_entered = form.vars.email() and then run the IS_EMAIL on that variable. If true. you process further. False, you error and go back. On Monday, August 8, 2016 at 3:51:53 PM UTC-4, Gael Princivalle wrote: > >

[web2py] Re: Is it possible reload my model.py from an ajax request?

2016-08-05 Thread Ron Chatterjee
http://demos.telerik.com/kendo-ui/dropdownlist/cascadingdropdownlist might help On Friday, August 5, 2016 at 1:28:01 PM UTC-4, Bernardo Leon wrote: > > No, I am trying to get the cascade dropdowns working. > > I want to make an AJAX call from the parent dropdown AND refresh the child > > El viern

[web2py] Re: Interface for many to many relationship

2016-08-05 Thread Ron Chatterjee
skill= ('One ', 'Two ', 'three', 'four', 'five', 'six') And project is reference to skill. Like category. On Friday, August 5, 2016 at 12:42:26 PM UTC-4, Ron Chatterjee wrote: > > One particular skill belongs to many

[web2py] Re: Interface for many to many relationship

2016-08-05 Thread Ron Chatterjee
One particular skill belongs to many projects. Its linear. -- 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 subs

[web2py] Re: Interface for many to many relationship

2016-08-05 Thread Ron Chatterjee
Think about the problem this way. db.define_table('category', Field('name' , notnull=True, unique=True), format='%(name)s') db.define_table("Project", Field('select_category', 'reference category'), Field('Title', 'string'),) def sh

[web2py] Error Running Graph Model: "agedge: no key". and Installing instruction for pygraphviz (windows)

2016-08-03 Thread Ron Chatterjee
Guys, any one ran into an issue of running Graph model of web2py in windows? I get the following error: r\lib\site-packages\pygraphviz\agraph.py", line 481, in add_edge eh = gv.agedge(self.handle, uh, vh, key, _Action.find) KeyError: 'agedge: no key' *Steps I have taken to install the

Re: [web2py] Web2py and WebRTC?

2016-08-03 Thread Ron Chatterjee
Have you implemented something similar webrtc + web2py? -- 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 subscrib

Re: [web2py] Web2py and WebRTC?

2016-08-03 Thread Ron Chatterjee
Have you implemented something similar webrtc + web2py? -- 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 subscrib

Re: [web2py] Web2py and WebRTC?

2016-08-03 Thread Ron Chatterjee
Have you implemented something similar webrtc + web2py? -- 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 subscrib

Re: [web2py] Web2py and WebRTC?

2016-08-02 Thread Ron Chatterjee
This may help. Its a django app. Someone needs to take a stab at this to convert into web2py. https://github.com/craigmadden/videochat On Sunday, July 28, 2013 at 8:42:19 PM UTC-4, Vinicius Assef wrote: > > WebRTC has nothing to do with web2py. > > It's a client specification, concerning bas

[web2py] Re: Host configuration

2016-08-02 Thread Ron Chatterjee
I was thinking the same Gael. How we set up a web2py app if we get a brand new server and put that in a data center or lets say in a dedicated server including scheduler. On Tuesday, August 2, 2016 at 1:23:18 PM UTC-4, Gael Princivalle wrote: > > Hello. > > Someone can give some examples abou

  1   2   3   4   5   6   7   >