[web2py] Re: using anyserver.py in production

2015-06-02 Thread Niphlod
use -i 0.0.0.0 to listen on all available interfaces. BTW#1: the default webserver (rocket) and cherrypy (what you seem to want using) have nearly the same performances BTW#2: unless you have some specific requirements, for an internet-facing server is ALWAYS recommended to use a real webserve

[web2py] Re: DatabaseError: SSL SYSCALL error: EOF detected (Intermitten

2015-06-02 Thread Niphlod
seems rather "famous". see https://github.com/psycopg/psycopg2/issues/263, https://devcenter.heroku.com/articles/postgres-logs-errors#pgerror-ssl-syscall-error-eof-detected, https://bitbucket.org/zzzeek/sqlalchemy/issue/3021/ssl-eof-not-detected-as-disconnect-in . I think (from a fast-read

[web2py] DatabaseError: SSL SYSCALL error: EOF detected (Intermitten

2015-06-02 Thread Auden RovelleQuartz
I am getting the error (see below) intermittently - does anyone know what that error means? { Ticket ID 12.239.162.254.2015-06-02.15-18-57.cda87665-75a8-4c94-98a8-f4fe633e2c01 SSL SYSCALL error: EOF detectedVersion web2py™Version 2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.3: /

[web2py] Re: is this a pointer?

2015-06-02 Thread Alex Glaros
thanks Anthony! -- 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: is this a pointer?

2015-06-02 Thread Anthony
On Tuesday, June 2, 2015 at 2:31:41 PM UTC-4, Alex Glaros wrote: > > dumb question > > this works > > response.subtitle = T(db.Organization(db.auth_group(request.get_vars. > specificRoleID).organizationID).organizationFullName) > > 1. is it okay programming practice? > Sure, though it involves two

[web2py] is this a pointer?

2015-06-02 Thread Alex Glaros
dumb question this works response.subtitle = T(db.Organization(db.auth_group(request.get_vars. specificRoleID).organizationID).organizationFullName) 1. is it okay programming practice? 2. what is it called, "using pointers", or "nested reference", or what? 3. is it faster or much faster or bette

[web2py] using anyserver.py in production

2015-06-02 Thread Lewis
I am afraid that the documentation for anyserver.py is a bit scant for my meager skills. My site runs on linode vm. Doc says just run python anyserver.py -s cherrypy -i 127.0.0.1. So, on my server I would cd to the directory containing web2py. I assume I would replace 127.0.0.1 (which is loca

[web2py] Re: Syntax for exiting grid function

2015-06-02 Thread Alex Glaros
I think my question is simpler than appears. Can anyone answer this? Instead of this: def find_people_to_add_roles_and_relationships(): # this is the child controller that gets called. grid = SQLFORM.grid(db.auth_user, links=[dict(header='Add person to role', body=lambda row: A('Assign per

[web2py] Re: my site is broken

2015-06-02 Thread Lewis
I am working again. Sorry that little help was forthcoming. Here is the revised uwsgi configuration file. The changed lines are bolded. I suspect that it is the second change that made the difference. Interesting that this was not previously needed. I did upgrade from uwsgi v (very old!) to

[web2py] Re: update_record not working but not failing.

2015-06-02 Thread peter
Okay, useful to know it is not the absence of a commit. Each time the problem has occurred there has not been a ticket. The ipn messages from paypal are rather like a scheduled task. So I use them.They seem to be reliable. But although they passed through the 'update_record', they did crash la

Re: [web2py] Re: My son made a new web2py logo

2015-06-02 Thread Massimo Di Pierro
web2py was called "gluon". Than I was given 24 hours to change or be sued. In retrospect I should have them sue me because of the publicity and because I would have won. Anyway, in 24 web2py was the only thing I could find that returned no hits from the trademarks database. On Monday, 1 June 20

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
Thanks Anthony, yes, I have a Web2py app. So, it's possible to wrap the Web2py web app in Cordova? Then, that makes much more sense than Kivy. I will have to look into this to try to figure out how to do it. On Tuesday, June 2, 2015 at 8:04:15 PM UTC+8, Anthony wrote: > > On Tuesday, June 2, 2

[web2py] Re: MARKMIN problem with email addresses

2015-06-02 Thread Niphlod
I'm quite +1 . techinicality that just works for domain may not for everything else passed to regex_auto, and since eveybody is still typing *www.google.com* rather than *www.google.com.* I'd go with "mainstream" treatment. On Monday, June 1, 2015 at 5:32:44 PM UTC+2, David Manns wrote: > > Wel

[web2py] Re: Recaptcha on pythonanywhere.com https error

2015-06-02 Thread Niphlod
are you using use_ssl=True to initialize the widget ? BTW: recent web2py releases have recaptcha2 that doesn't suffer from this particular issue (i.e. it works with any scheme without explicitely specifying) On Monday, June 1, 2015 at 8:04:24 PM UTC+2, icodk wrote: > > My recaptcha works fine o

[web2py] Re: RuntimeError: no driver available Sybase

2015-06-02 Thread Niphlod
you need to use the python-sybase package . as any other (famous) package, it's available on pypi https://pypi.python.org/pypi/python-sybase On Tuesday, June 2, 2015 at 12:12:38 AM UTC+2, EF wrote: > > Hi, > I'm new to web2py and trying to test the connectivity to Sybase. > I tried testing this o

[web2py] Re: Silly out of band question about deploying web2py

2015-06-02 Thread Niphlod
use some platform that manages the "sys" part for you (e.g. pythonanywhere, heroku, etc,). You pay for it but if you don't want to have anything to do with "sys" because your business is not being a sysadmin. I really don't see the point of being forced to manage a system. On Tuesday, June

[web2py] Re: update_record not working but not failing.

2015-06-02 Thread Anthony
If this is in the context of an HTTP request, then web2py automatically handles the commit, so calling db.commit() is unnecessary. If the transaction is failing to commit, that means that your code is throwing an exception sometime *after* the confirmation email gets sent to the user (which see

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Anthony
On Tuesday, June 2, 2015 at 7:15:56 AM UTC-4, Joe wrote: > > Thanks Leonel, my app is a pretty complex interactive application to teach > kids to read. I am using database, and Python code, all developed in > Web2py. It seems that Cordova might not work for this app. > You said you already have

[web2py] Re: update_record not working but not failing.

2015-06-02 Thread peter
Yes Thanks Dmitry Maybe that is the problem. I always forget about commit(). I will add this in. It will take me a while to know if it is the solution as the problem only occurs every few months. If I commit() does not sort it I will report back to the group eventually! Peter -- Resource

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
Thanks Leonel, my app is a pretty complex interactive application to teach kids to read. I am using database, and Python code, all developed in Web2py. It seems that Cordova might not work for this app. On Tuesday, June 2, 2015 at 5:36:23 PM UTC+8, Leonel Câmara wrote: > > I would suggest cordov

[web2py] show_if logical operators

2015-06-02 Thread kecajkecaj123
Hi, I'm using show_if to hide a filed of my form under certain conditions. Per web2py guide, show_if uses simple query, but it doesn't work for logical oprators like "and" "or". In below example i would like to display field "order" just when colour is set to "blue" or "red". db.define_table('

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Leonel Câmara
I would suggest cordova, you can use pretty much the same skills you already have, and if most of what your app does is display content it downloads from the web it's pretty much one of the best choices. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

Re: [web2py] Re: Web2py adding additional and not wanted orderby

2015-06-02 Thread Johann Spies
On 1 June 2015 at 20:22, Anthony wrote: > Thanks Anthony. Correct. I do not want it in all cases. After reading up >> on it I came accross this link ( >> http://chrisdone.com/posts/postgresql-pagination) where the author >> illustrates just how slow PostgreSQL's "OFFSET" can be which is probabl

Re: [web2py] Re: markmin as separate package

2015-06-02 Thread Gour
Massimo Di Pierro writes: > Feel free to fork and we'll keep it in sync or use your as a subpackage. OK, I'll think about it in case I decide to use it. > Anyway, I strongly recommend > https://github.com/mdipierro/markmin.js/tree/master > instead of the python based markmin. They are not 100

[web2py] Re: update_record not working but not failing.

2015-06-02 Thread Dmitry Ermolaev
db.commit() пятница, 22 мая 2015 г., 12:51:00 UTC+3 пользователь peter написал: > > I am using sqlite 3. > > I have a ticket booking system. Transaction.status is set to 'pending' in > the database, when the transaction is initiated. > When the paypal payment completes: > > transaction.sta

[web2py] JSON-LD how to?

2015-06-02 Thread Dmitry Ermolaev
JSON-LD http://www.w3.org/TR/json-ld/ nice tool but how use it instead I need input values: event name description end date -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

Re: [web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
Thanks! So, you would recommend QT instead of Kivy? Also, can you please expand on what is the best approach, in this case, to abstract the interface with Web2py? On Tuesday, June 2, 2015 at 7:36:09 AM UTC+8, Encompass solutions wrote: > > The best thing to do here is abstract your interface. W