Re: [web2py] http://www.geonames.org/ - countries with political subdivisions - allcountries.zip

2015-03-30 Thread Vasile Ermicioi
import geonames data in mysql and then define models for those tables, https://github.com/codigofuerte/GeoNames-MySQL-DataImport On Mon, Mar 30, 2015 at 12:26 AM, Alex Glaros wrote: > Does anyone have the geonames.org countries tables installed in w2p? > > Not sure if my question makes sense in

[web2py] Re: mod_wsgi errors -- dead in the water

2015-03-30 Thread weheh
Thanks, Brian. My page does have a lot of ajax calls. The problem seems to be that some of my css files aren't coming through. Firebug says they're being delivered as text/plain instead of text/css. Consequently, the page load incorrectly and users probably bail, causing the IO Error in mod_wsgi

[web2py] Re: manually update password

2015-03-30 Thread José Eloy
Sorry for the delay in answering. I have the following code for modify the auth_user table: administrador = db2.auth_user(request.args(0)) or redirect(URL('ver_administradores')) form = SQLFORM(db2.auth_user, administrador, submit_button="Aceptar", deletable=True, showid=False) # updat

[web2py] Re: mod_wsgi errors -- dead in the water

2015-03-30 Thread Brian M
I also run with the apache + mod_wsgi combo on windows and see this error a lot. Never have been able to figure out a cause other than the client disconnecting like niphlod mentioned. If it is something else that can actually be fixed I'd love to know. Not sure if it matters but I see it predom

[web2py] Re: mod_wsgi errors -- dead in the water

2015-03-30 Thread weheh
Config? Windows 7. Apache 2.X. mod_wsgi. python 2.7.x. The modwsgi config is as follows: DocumentRoot "C:/web2py/applications" ServerName www.yakitome.com SSLCipherSuite AES128+EECDH:AES128+EDH SSLProtocol All -SSLv2 -SSLv3 SSLHonorCipherOrder On Header always set Strict-Transport-Se

[web2py] Re: LinkedIn API Please help for the love of god.

2015-03-30 Thread Derek
Didn't have to, only used javascript with it. On Friday, March 27, 2015 at 9:18:47 PM UTC-7, DeanK wrote: > > @Derek - Did you get auth0 integrated with web2py? > > On Monday, March 2, 2015 at 2:33:59 PM UTC-5, Derek wrote: >> >> It would help if you describe what you are doing, some code behind

[web2py] Re: mod_wsgi errors -- dead in the water

2015-03-30 Thread Niphlod
what config are you using ? failed to write data is usually meaning that the client terminated the socket before apache being able to stream the response back to it. kinda of "close the browser in the middle of a download". On Tuesday, March 31, 2015 at 12:33:14 AM UTC+2, weheh wrote: > > On a W

[web2py] mod_wsgi errors -- dead in the water

2015-03-30 Thread weheh
On a Windows 7 server running the latest Apache, I'm getting the following mod_wsgi errors showing up in the Apache error.log file: mod_wsgi (pid=1233) Exception occurred processing WSGI script 'C:/web2py/wsgihandler.py'., referer: https://mysite.com/my_controller/my_action IOError: failed to

[web2py] Re: validators don't work on list

2015-03-30 Thread LoveWeb2py
:'( I'll try to find a workaround, but this would be a nice addition in the future releases. On Monday, March 30, 2015 at 12:32:17 PM UTC-4, Anthony wrote: > > Hmm, looks like advanced search is not implemented for list:-type fields > in the grid. > > On Monday, March 30, 2015 at 12:17:09 PM UT

[web2py] Re: validators don't work on list

2015-03-30 Thread Anthony
Hmm, looks like advanced search is not implemented for list:-type fields in the grid. On Monday, March 30, 2015 at 12:17:09 PM UTC-4, LoveWeb2py wrote: > > Hi Anthony, > > Yes I'm talking about the advanced search form in the grid. > > When you set a field type to list:string you no longer have

[web2py] Re: validators don't work on list

2015-03-30 Thread LoveWeb2py
Hi Anthony, Yes I'm talking about the advanced search form in the grid. When you set a field type to list:string you no longer have the ability to select the field from the dropdown menu to create specific searches. Does that help to clarify? for example if I have Field('myFieldA', string')

[web2py] Re: validators don't work on list

2015-03-30 Thread Anthony
Can you clarify the problem? Are you talking about the advanced search form in the grid? What exactly is the issue? On Monday, March 30, 2015 at 11:29:54 AM UTC-4, LoveWeb2py wrote: > > Thank you, Anthony! This solved it. > > Should I use IS_LIST_OF() to enable the search function in SQLFORM? >

[web2py] Re: validators don't work on list

2015-03-30 Thread LoveWeb2py
Thank you, Anthony! This solved it. Should I use IS_LIST_OF() to enable the search function in SQLFORM? On Monday, March 30, 2015 at 10:35:19 AM UTC-4, Anthony wrote: > > Near the end of this section > > > of the

[web2py] Re: validators don't work on list

2015-03-30 Thread Anthony
Near the end of this section of the book, it notes that the only validators that work with list:-type fields are IS_IN_SET(..., multiple=True), IS_IN_DB(..., multiple=True), IS_NOT_EMTPY(), and IS_LIST_OF(). The lat

[web2py] validators don't work on list

2015-03-30 Thread LoveWeb2py
Hello, When using a list:string my validators don't work like they used to on a regular string. For example if I had requires=IS_ALPHANUMERIC() when I input 1234568--/ I would receive an error but when I switched my field type from string to list:string I can now put anything in the field such

Re: [web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread Johann Spies
You should be able to use field.represent to do that. If the value is None, then show something else like ''. Regards Johann On 30 March 2015 at 14:54, JorgeH wrote: > I am dealing with the same issue these days. Client told me to remove all > those 'None' fields. > > > > > On Monday, March 30

[web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread JorgeH
I am dealing with the same issue these days. Client told me to remove all those 'None' fields. On Monday, March 30, 2015 at 7:36:51 AM UTC-5, Mirek Zvolský wrote: > > >> null value is not an empty string > > That's true. > However we make applications for customers and they aren't interested to

[web2py] Re: Rendering null values in SQLFORM.grid

2015-03-30 Thread Mirek Zvolský
>> null value is not an empty string That's true. However we make applications for customers and they aren't interested to see a technical value 'None', but the language translated value (something like T(None)) or symbol for None content. So I think it would be better if we have parameter how t

Re: [web2py] Saving Google Maps Markers To Database

2015-03-30 Thread Manuele Pesenti
Il 26/03/15 00:45, Kelvin Kibet ha scritto: > I need to save google maps markers to database but have searched and > could not find a way to implement it with web2py. > Will gladly appreciate any help I can get I've just pubplicated this plugin I made based on ol3 https://github.com/manuelep/geoti

Re: [web2py] cost of importing into models vs define functions

2015-03-30 Thread Niphlod
On Monday, March 30, 2015 at 1:53:27 AM UTC+2, Jose wrote: > > Hi > > [*1*] > models/ > model1.py > model2.py > model3.py > model4.py > > vs > > [*2*] > modules/ > model1.py > model2.py > model3.py > model4.py > > models/ > model0.py (import model1, model2, mo

[web2py] Re: Ractive example

2015-03-30 Thread Tim Richardson
so it needs new widgets? (this is what I expected) -- 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