[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Oli
Am Freitag, 14. August 2015 05:38:24 UTC+2 schrieb Joe: > > I am using Pythonanywhwere and having some problems. Can anyone recommend > an other hosting for web2py apps where the support understands the web2py > framework and they can actually fix problems when needed? > I put my big apps in a

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Joe
Is that because you had an issue with your bigger apps on pythonanywhere? If so, how did you realize that the app size was the problem? I am still trying figure out what the problem is with my app. On Friday, August 14, 2015 at 3:09:01 PM UTC+8, Oli wrote: > > > Am Freitag, 14. August 2015 05:38:

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Joe
Thanks Annet, did you ever work out that issue with Webfaction? On Friday, August 14, 2015 at 1:06:50 PM UTC+8, Annet wrote: > > Hi Joe, > > I host my appliaction at Webfaction and had a similar issue, support > advised me to set pool_size = 0 > pool_size = 1 conflicted with a setting outside web

[web2py] Re: Error in GAE TypeError: ConjunctionNode()

2015-08-14 Thread Jacinto Parga
It also happens width some SQLFORM.grid: form = SQLFORM.grid(db.t_familiares, fields=fields,create=False) The Traceback: Traceback (most recent call last): File "/base/data/home/apps/s~clubatletismosada/2.386424209805371251/gluon/restricted.py" , line 227

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Oli
Am Freitag, 14. August 2015 09:28:03 UTC+2 schrieb Joe: > > Is that because you had an issue with your bigger apps on pythonanywhere? > If so, how did you realize that the app size was the problem? I am still > trying figure out what the problem is with my app. > On Friday, August 14, 2015 at 3:

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Joe
Yes, I know, so what I did was, I uploaded my app folder to pythonanywhere using sftp and that works. I can run the app but only if I use sqlite db, I can't connect to the mysql. That's my problem. On Friday, August 14, 2015 at 5:05:16 PM UTC+8, Oli wrote: > > > Am Freitag, 14. August 2015 09:2

[web2py] Re: Change in application request.vars when switching from Rocket to Lighttpd+FastCGI

2015-08-14 Thread Encompass solutions
Is there any progress with this issue? I have lighttpd setup and it seems to still have the issue. Take a look at this screenshot to see. It's a real bummer as the NGINX has proven hard to install on centos 6.6. At least for us. :) On Sunday, March 1, 2015 at 10:38:37 AM UTC+2, Niphlod wrote

[web2py] auth.settings.extra_fields problem

2015-08-14 Thread Paolo Amboni
This don't work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','reference departement'),] : Cannot resolve reference departement in auth_user definition This work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','integer'),] Why? Is there a way to make it work? -- Resour

[web2py] Re: auth.settings.extra_fields problem

2015-08-14 Thread 黄祥
not sure without seeing the full code, but i guess you are not define table department before define auth tables. best regards, stifan On Friday, August 14, 2015 at 4:46:45 PM UTC+7, Paolo Amboni wrote: > > This don't work: > auth.settings.extra_fields['auth_user']= [ Field('id_dep','reference

[web2py] Re: auth.settings.extra_fields problem

2015-08-14 Thread Paolo Amboni
It's true!!! The table is in another model file. I moved before the declaration and all works!!! Which is the order web2py use to load models file? Il giorno venerdì 14 agosto 2015 12:12:04 UTC+2, 黄祥 ha scritto: > > not sure without seeing the full code, but i guess you are not define > table de

[web2py] Re: Change in application request.vars when switching from Rocket to Lighttpd+FastCGI

2015-08-14 Thread Niphlod
it's the same level of bummer, if not a higher order of magnitude, to patch core web2py to address a bugged webserver. On Friday, August 14, 2015 at 11:31:15 AM UTC+2, Encompass solutions wrote: > > Is there any progress with this issue? > I have lighttpd setup and it seems to still have the issu

[web2py] Re: auth.settings.extra_fields problem

2015-08-14 Thread 黄祥
if you put define table separtely (into more than 1 file), models file is load base on file name ordered. so let say you have db_wizard_1.py that define table department (generate first) db_wizard_2.py that define table auth_tables in case you put all the define tables into 1 file such as db.py

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Richard Vézina
You need to use form.vars at first... At the begining your form is emptyl, so you need to get the inputed value from the form not from request.vars... You take them form request.vars for field default but when you redirect you need to pass the form.vars to url... But even then, I am not sure it wi

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Ian W. Scott
I agree with Richard that the issue (or my issue at least) has to do with the widget, not with the internals of the field type or its validators. There are, I think, valid use cases in which you want to use a list-string field but can't know ahead-of-time what the possible values will be. In one

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Richard Vézina
Ian, you may also just write your own widget for list:string that way it should behave correctly... http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=widget#Widgets def my_string_widget(field, value): return INPUT(_name=field.name, _id="%s_%s" % (field

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Ian W. Scott
Thanks Richard. I will if I have time. I find these small fixes have a way of becoming bigger projects than I expect :) Ian On Friday, August 14, 2015 at 10:27:53 AM UTC-4, Richard wrote: > > Ian, you may also just write your own widget for list:string that way it > should behave correctly... >

[web2py] 2 New NoSQL database adapters

2015-08-14 Thread Mark Graves
Hey everyone, I have two new databases that I've been toying with that I'd like to implement as database adapters. I have written nothing yet web2py / pydal specific...all just python. I was looking around for info on constructing and contributing new adapters. Is there a best practices guide

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-14 Thread Annet
Hi Joe Thanks Annet, did you ever work out that issue with Webfaction? > Not really, setting the pool-size from 1 to 0 just solved the issue, I didn't take the time to figure out why. I have no experience with pythonanywhere. So far all issues I had with deploying my applications have been solve

[web2py] Re: Error in GAE TypeError: ConjunctionNode()

2015-08-14 Thread Jacinto Parga
I surrender width *IS_IN_DB* and GAE I finally solved it width a workaround using *IS_IN_SET:* First I get rid off IS_IN_DB in my models requirements titulares = db(db.auth_user.tipo_usuario=='Titular') db.t_familiares.f_titular.requires= (IS_IN_DB(titulares,'auth_user.id','%(last_name)s'+', '+

[web2py] error importing module

2015-08-14 Thread Matheus Suffi
good Morning, I am importing a module called python- iptables, However When I run a Function In this module Returns mean error saying I must be root to perform this function. already changed permission Execution and changed the owner Archive However www-data STILL NOT Works I wonder if ther

[web2py] Form misalignment with bootstrap3_inline

2015-08-14 Thread Bob St John
Using web2py 2.12.2 with formstyle = bootstrap3_inline Problem: When displaying a SQLFORM with readonly=True the field labels and values do not line up horizontally. I have a screen image, but the following gives you an idea of what it looks like... Bob First Name

[web2py] extending MARKMIN

2015-08-14 Thread 'Karl Thomas Schmidt' via web2py-users
Hi @ all, i want to extend MARKMIN with a function so a ``text to surround with a line box and a different background color'``:myFunc is properly rendered. I can't figure out where and how i should define this function. This should work with build-in wiki. The example in the web2py book chapter

[web2py] Application Seperation

2015-08-14 Thread Jon
Hey guys, I have a quick question about the separation of functionality provided by web2py. Right now I'm working on creating an application for processing data that then sends back a graph to users for data analysis. My question stems from my desire to add additional functionality in the for

[web2py] web2py exe

2015-08-14 Thread web2py newbie
Hi I recently started coding a python app and decided to explore web2py. however, when I download the windows exe and run it, I see neither the admin console nor the webpage when I connect to 127.0.0.1:8000 I even tried web2py.exe -S welcome, and still nothing. Regards Raji -- Resources: - h

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-08-14 Thread Fernando Pacheco
Please add me: Name : Ingesur SRL Country : Uruguay Website : http://www.ingesur.com.uy Thanks and Best Regards, Fernando. El domingo, 15 de febrero de 2015, 20:21:36 (UTC-2), Massimo Di Pierro escribió: > > We need to update the list of companies that provide web2py consulting. > This list i

[web2py] AutocompleteWidget - Search inside text, not only at the begining

2015-08-14 Thread Fernando Pacheco
I used several times AutocompletWidget (works great). When I want to run the search across the entire string and not just at the beginning, I must copy the code to a module and modify it, adding "%" at the beginning: field.like ('%' + self.request.vars [self.keyword] + '%' ... There is anothe

[web2py] Re: 2 New NoSQL database adapters

2015-08-14 Thread Massimo Di Pierro
Adatepers are registers in ADAPTERS (you can grep from it) They are all classes that extend another adatpter or base adapter and override those functions that are different. So pick one that is similar to the one you need, extend it, try use it, then add functions to change behavior as needed. Lo

[web2py] Re: web2py exe

2015-08-14 Thread Derek
start it from the command line, what do you see? On Friday, August 14, 2015 at 11:37:11 AM UTC-7, web2py newbie wrote: > > Hi > > I recently started coding a python app and decided to explore web2py. > however, when I download the windows exe and run it, I see neither the > admin console nor the

[web2py] Re: Ajax callback with current select value

2015-08-14 Thread Derek
That explains why I had to stuff it into a hidden variable or input... cool! On Wednesday, August 12, 2015 at 10:35:47 AM UTC-7, Val K wrote: > > Yes! Of course! Because there is a small bug in web2py.js in ajax() (or > in the manual) : > If middle arg ( '[ ]' ) is string, it's treated as

[web2py] Start web2py with different python version

2015-08-14 Thread LoveWeb2py
I'm currently using web2py with wsgihandler.py When I type "python" in my regular environment it starts with python2.7, but when I start apache using service httpd start web2py defaults to 2.6 Is there anyway I can make web2py use 2.7 which has all my modules? -- Resources: - http://web2py.co

[web2py] Re: Start web2py with different python version

2015-08-14 Thread LoveWeb2py
When I type python web2py.py -S myapp -M the app loads up in python 2.7 just fine, but when I type service httpd start it runs using Python2.6.6 I can't seem to find where the setting to change this is. Any help is really really appreciated. On Friday, August 14, 2015 at 6:02:43 PM UTC-4, LoveW

[web2py] Re: extending MARKMIN

2015-08-14 Thread Massimo Di Pierro
this should be it. MARKMIN(text, extra=dict(myFunc=lambda quoted_text: process(quoted_text)) On Friday, 14 August 2015 13:33:17 UTC-5, Karl-Thomas Schmidt wrote: > > Hi @ all, > > i want to extend MARKMIN with a function so a ``text to surround with a > line > box and a different background c