[web2py] How to access request.args in download() controller ?

2015-06-16 Thread Gaurav Vichare
I want to print request.args inside download controller for testing. But it dosn't print anything. It print "request" but not request.args. Download controller : @cache.action() def download(): """ allows downloading of uploaded files http:///[app]/default/download/[filename]

[web2py] Upgrade to 2.11.2 and Admin Interface doesn't render correctly

2015-06-16 Thread DaneW
I've just upgraded to 2.11.2 and my application works ok but the Admin Interface looks horrible - probably not picking up the right css etc. I tried the Upgrade button but got a DAL error message so then I downloaded the current source file, unzipped it and reinstalled my application files from

[web2py] urllib2.HTTPError: HTTP Error 401: Unauthorized/raise MalformedHeader("WWW-Authenticate"

2015-06-16 Thread Narasing Mukkavilli
I am using the folllwing code to run a SOAP service and getting this error: Any help is greatly appreciated. Thanks from pysimplesoap.client import SoapClient import socket import os client = SoapClient(wsdl="http://me-uat-txapp1/MEUAT/TxWS.asmx?WSDL";) host = socket.gethostname() pid = os.get

[web2py] .json return in nginx/uwsgi

2015-06-16 Thread Kayro
Hello, In my app on the local server enough to use the termination .json in function call that web2py automatically returning the results by generic.json. Now, with my app running on nginx/uwsgi get an error 404 and "invalid view" as a result of the call. If i use response.view = 'generic.json'

[web2py] response.menu will not display an image

2015-06-16 Thread jackson . read
This does not work. No image is displayed. The layout seems to lose it too, the response menu now has 2 rows & this causes things to be obscured by it. Should I be trying this at all? If the menu was designed for text only ok but put it in the Docs. This was the only change I did to the menu.py

[web2py] PostgreSQL - Sort with NULLS FIRST

2015-06-16 Thread pysab
Hi there :) I'm using web2py 2.9.10 with a database PostgreSQL 9.4 for a new project and I have a question about sorting. In PostgreSQL, when I execute a SELECT, I can specify 'ORDER BY x ASC NULLS FIRST', which is not the default output. Is there a way to do that with the DAL other than writin

[web2py] grid

2015-06-16 Thread jackson . read
Is there anyway to make a SQLform.grid scroll instead of using page numbers. -- 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 bec

[web2py] Re: Opening PDF files in web browser

2015-06-16 Thread kama
But, if I have a PDF stored in a blob field, how could I use PDF.js do display it? Il giorno venerdì 24 ottobre 2014 19:32:08 UTC+2, José Eloy ha scritto: > > Any Idea? > > Regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: FYI - MSSQL, Executesql and data columns retrieved as strings

2015-06-16 Thread Niphlod
10.0 for 2008, 11.0 for 2012, (or 12.0, if sql server 2016 will show up). BTW: for anything else than MSSQL2000, mssql:// is NOT the recommended adapter. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: Problem importing modules from other app (having symlinked models and modules)

2015-06-16 Thread Niphlod
beside from the fact that is hardly a web2py problem, what the heck ? you udpate the app and you don't want to reload the process that runs it ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] Problem importing modules from other app (having symlinked models and modules)

2015-06-16 Thread Lisandro
I have two web2py applications; modules are defined in the first one, and symlinked from the second one. . This is the structure (also notice some symlinked models): applications/app1/ applications/app1/models/0.py applications/app1/models/0_template.py* ---> symlink to app2/models/0_template.p

[web2py] FYI - MSSQL, Executesql and data columns retrieved as strings

2015-06-16 Thread Brian M
This is just a helpful tip should anyone else run into this problem. When using MS SQL 2012 (may also happen with 2010 and 2008) and the DAL's executesql() feature, if your query includes data type columns they'll have a tendency to be pulled in by pyodbc as unicode strings rather than dates.

Re: [web2py] extending db.auth_membership

2015-06-16 Thread Richard Vézina
I don't think there is any problem with that... Though make sure this fake user can't log, set it registration_key to "blocked", so no one will be able to brokein your system with the fake user that you forgot change password or have a weak password... I would suggest you to alter the auth model w

[web2py] Re: Mail.send failure

2015-06-16 Thread Leonel Câmara
If you go here logged in with your gmail account, and allow less secure apps, does it work? https://www.google.com/settings/security/lesssecureapps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: Error background task with Redis

2015-06-16 Thread Fabiano Faver
Failed to copy the 2 error. The full traceback of the second error: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/rq-0.5.3-py2.7.egg/rq/worker.py", line 558, in perform_job rv = job.perform() File "/usr/local/lib/python2.7/dist-packages/rq-0.5.3-py2.7.eg

[web2py] Error background task with Redis

2015-06-16 Thread Fabiano Faver
I have tried to follow this tutorial: http://www.web2pyslices.com/slice/show/1579/web2py-and-redis-queue Just changed the arguments in the enqueue function to be fixed: def contato(): form = SQLFORM.factory(Field("name"), Field("message")) if form.accepts(request): # enqueue the e

[web2py] extending db.auth_membership

2015-06-16 Thread Alex Glaros
In addition to people having roles in auth_membership, I give objects roles too with extra field: superObjectID. For example an address can have many roles. But user_id field is mandatory and objects don't have user_id. Is there a problem with populating auth_membership.user_id with the same

[web2py] Re: Cannot create records in grid

2015-06-16 Thread Niphlod
no prob. happens all time :D On Tuesday, June 16, 2015 at 9:28:52 AM UTC+2, Mirek Zvolský wrote: > > ..that was really stupid from me. I'm sorry. > Thank you. > > > > > > Dne úterý 16. června 2015 8:33:33 UTC+2 Mirek Zvolský napsal(a): >> >> Web2py 2.11.2 >> Chrome & Firefox >> cache cleared >> >>

[web2py] Re: How to display Google Maps (iFrame?)

2015-06-16 Thread Mirek Zvolský
Manuele/OSM : Great. Thank you very much ! -- 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 Goo

[web2py] Re: show_if logical operators

2015-06-16 Thread kecajkecaj123
Works! Thanks. Is it also possible for SQLFORM.factory? On Wednesday, 10 June 2015 16:06:47 UTC+2, Anthony wrote: > > Try: > > db.table1.order.show_if = db.table1.colour.belongs(['red', 'blue']) > > Anthony > > On Tuesday, June 2, 2015 at 6:09:20 AM UTC-4, kecajk...@gmail.com > wrote: >> >> Hi

[web2py] Re: Cannot create records in grid

2015-06-16 Thread Mirek Zvolský
..that was really stupid from me. I'm sorry. Thank you. Dne úterý 16. června 2015 8:33:33 UTC+2 Mirek Zvolský napsal(a): > > Web2py 2.11.2 > Chrome & Firefox > cache cleared > > I don't see Add button in the web2py grid. > Explicit setting create=True doesn't help. > > In controller is just a