[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Tomáš Slobodník
Update: When I run the same code locally on pre-packed Rocket web server and Python 2.7.8, no error occurs. As far as I know, web2py should still support Python 2.6.1 running on my production server. Could this be a bug or incompatibitity with python/web server/server setting? Dne úterý, 4. li

[web2py] Re: Support for MS Access?

2014-11-05 Thread ksotiris
thank you Leonel ...!!! , it 's ok now. With the console all work fine now. I have"Internal Server Error" with wsgi + msaccess adapter. I will make some tries and will come back. Τη Τρίτη, 4 Νοεμβρίου 2014 1:12:06 μ.μ. UTC+2, ο χρήστης Leonel Câmara έγραψε: > > No it's not a dict if you do it

Re: [web2py] Re: web2py postgres sort by

2014-11-05 Thread Yebach
Since I cannot change the db settings is there a way to order my list inside web2py? On Tuesday, November 4, 2014 10:19:51 AM UTC+1, Michele Comitini wrote: > > Just to be sure try the _select: > > print db(db.teachers.t_name!='None')._select(db.teachers.t_name, > orderby=db.teachers.t_name,

[web2py] Re: Question about a field boolean in MSSQL

2014-11-05 Thread Tim Richardson
And mssql3 uses 0 & 1 it seems. -- 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: Asynchronous Background Processes

2014-11-05 Thread Tim Richardson
A big problem is that the request from your client starts a thread which is supposed to have a very short life (being a WSGI webserver). This thread is the parent to any children (processes or other threads) and when the parent dies, child processes and threads will too. This is actually the way

Re: [web2py] Minor typo in online book

2014-11-05 Thread Tim Richardson
On Wednesday, November 5, 2014 5:36:57 AM UTC+11, Richard wrote: > > You can log in github et submit a PR after having correct the typo : > https://github.com/mdipierro/web2py-book > > And the process of using github is explained in the book itself, how very meta: http://www.web2py.com/books/d

[web2py] Re: Features as Modules

2014-11-05 Thread Tim Richardson
First, the view file: the views are stored in a folder with the same name as controller, but the view file is named after the controller function. So you may have controllers/sales.py with a function def index(): and another function def search_orders(): therefore your application would respons

Re: [web2py] Re: web2py postgres sort by

2014-11-05 Thread Johann Spies
In the PostgreSQL documentation I see " The LC_COLLATE and LC_CTYPE settings are determined when a database is created, and cannot be changed except by creating a new database. Other locale settings including LC_MESSAGES and LC_MONETARY are initially determined by the environment the server is sta

[web2py] Is there a way to use a authentication on many applications?

2014-11-05 Thread Rodrigo Cesar
I have asked this question before but it seems that it disapeared (i could no find it,) so forgive me if you seing it again, well the question is, i want to divide my program in a group of applications, but i wanted the same authentication to work on all off them (the user logins on main app and

[web2py] Custom query for MongoDB

2014-11-05 Thread pangey
I found this line in dal.py, error_messages = {"javascript_needed": "This must yet be replaced" + " with javascript in order to work."} I assumed that I need to pass query in javascript codes, is there any documentation or tutorial, especially for http://docs.mongodb.org/manual/core/map-redu

[web2py] Re: duplicate column name error

2014-11-05 Thread Ramashish Gaurav
Thanks Dr. Massimo, I deleted the database, however had to made some extra entries before populating the database. And it worked!! On Wednesday, November 5, 2014 12:53:22 AM UTC+5:30, Massimo Di Pierro wrote: > > No. You never need to remove code. You need to erase the content of > web2py/appl

[web2py] Re: Is it easy to create a grid data entry form using web2py?

2014-11-05 Thread Bernd Fleisch
sqleditable Am Dienstag, 3. Juni 2014 22:08:19 UTC+2 schrieb Chris Green: > > This may be trying to run before I can walk but never mind! :-) > > Is it easy to create a grid type table editing form in web2py? I just > want an easy way to edit an existing table, edit existing fields and > add

[web2py] Re: Is there a way to use a authentication on many applications?

2014-11-05 Thread Niphlod
you can either go with CAS or specifying the same auth database on all of them. If you want a user logged to "main" to not be asked credentials when he accesses app "subapp", you can share the sessions using the masterapp argument It's all documented in the book. http://web2py.com/books/defaul

[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Leonel Câmara
it should be def POST(*args, **vars): return dict() Not def POST(**vars): return dict() -- 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 Issu

[web2py] Geraldo Reports 4.0

2014-11-05 Thread Nico de Groot
Have used it, but it's not new, 0.4.17 version is from 2013. Don't know about real 4.0 version. It's working nicely, tutorial is ok. Used it to create 3x8 labels as pdf. Still looking for a way to print a list in two columns... Guess I have use basic ReportLab, or change Geraldo Nico de Groot

[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Tomáš Slobodník
Hi, I already tried this, but it didn't change the behaviour. Dne středa, 5. listopadu 2014 18:32:11 UTC+1 Leonel Câmara napsal(a): > > it should be > > def POST(*args, **vars): > return dict() > > Not > > def POST(**vars): > return dict() > -- Resources: - http://web2py

[web2py] Audio wav file

2014-11-05 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear all. I need to play a sound file (.wav) I am trying like this: controler: def play(): filename='2014-11-04-19-20-19_994491803_448908901.wav' ff=XML('' % filename) return dict(ff=ff) view: play.html {{extend 'layout.html'}} {{=ff

[web2py] Disable an app in v1.61.1?

2014-11-05 Thread Willoughby
Yes, we're still running v1.61.1 - why upgrade when it's not broken? :-D But now we're in the process of decommissioning some apps while some need to live a bit longer till eventually they all go away... Unfortunately this version does not have the 'enable/disable' button in admin that newer web

[web2py] hidden_fields() in FORM objects

2014-11-05 Thread Yoel Benitez Fonseca
Hi! there, Why is not a mention to hidden_fields() function of a FORM object in the current web2py book ? is there any problem for me doing this in a custom form: ... Submit {{=form.hidden_fields()}} ... regards, Yoel. -- Resources: - http://web2py.com - http://web2py.com/book (Docum

[web2py] Re: hidden_fields() in FORM objects

2014-11-05 Thread Anthony
It's fine to use it. It's probably not mentioned because: {{=form.hidden_fields()}} is equivalent to: {{=form.custom.end}} Anyway, it should probably be included in the book. Anthony On Wednesday, November 5, 2014 3:31:08 PM UTC-5, Yoel Benitez Fonseca wrote: > > Hi! there, > > Why is not a

[web2py] how to suppress the default web2py banners for one page only

2014-11-05 Thread Alex Glaros
Am writing multi-tenant meeting notices app for government agencies such as cities and government boards. Each agency logs onto web2py app and posts upcoming meeting and agenda so that the public can see what meetings government organizations are going to hold. Each agency will have a static w

[web2py] Re: how to suppress the default web2py banners for one page only

2014-11-05 Thread Anthony
The easiest approach is simply not to extend the default layout.html but instead create a standalone view. Otherwise, you would have to include code in the layout that conditionally hides the elements you don't want to show. Yes, you can use an iframe. Anthony On Wednesday, November 5, 2014 4:

[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Leonel Câmara
Then I would guess it's some problem with your webserver configuration as there's nothing in Request.restful that wouldn't work with python 2.6 (although seriously 2.7 has been out for 4 years already). Have you tried without using https? -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: Disable an app in v1.61.1?

2014-11-05 Thread Niphlod
super-easy. put this in a model of the app you want to disable (preferably the very first model, or create a 0_a.py) raise HTTP(503, "Temporarily down for maintenance") you got the gist: you can insert whatever html you want (i.e. app got migrated at url http:/// update your bookmarks...et

[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Niphlod
uuhm, I remember something going weird with python 2.6 unpacking args and kwargs, but I really don't remember the specifics... some syntax worked in 2.6 and 2.7 while another only in 2.7 On Wednesday, November 5, 2014 11:12:11 PM UTC+1, Leonel Câmara wrote: > > Then I would guess it's some p

[web2py] Re: web2py: RESTful API returns "invalid arguments" for any POST request with JSON body

2014-11-05 Thread Niphlod
whoops, don't mind. I think it's this commit that I remember, but that was back when we had 2.5 support On Wednesday, November 5, 2014 11:27:40 PM UTC+1, Niphlod wrote: > > uuhm, I remember something going weird

[web2py] play audio file from controller

2014-11-05 Thread LoveWeb2py
*Hello,* *I'd like to play an audio file in my view once a certain condition is met.* *I'm using Massimo's audio setup (thank you, Massimo!!) found here:* *https://www.reddit.com/r/Python/comments/1r7v23/audio_streaming_app_in_web2py_from_scratch/* *How could I stream/play the audio from the da

[web2py] Re: Audio wav file

2014-11-05 Thread LoveWeb2py
Where is your /tmp folder located? Is it the actual /tmp folder located in the root of linux? I would recommend moving it to /web2py_src/web2py/applications/static/audio You could then reference the file like this: with nothing in the controller. Also, this application Massimo created

[web2py] Bay Area web2py meetup with Massimo! December 5, 6:30PM - 9:00PM Albany, CA (next to Berkeley)

2014-11-05 Thread weheh
Hi Bay Area web2py'ers. Here it is! Massimo will come to the Bay Area and give a talk at our web2py meetup. The details are as follows: Date: *Friday, December 5* Time: *6:30PM to 9:00PM* Location: *1125 Jackson Street, Albany, CA* Sponsor: *YAKiToMe.com* (a development-stage web2py-based deskto