[web2py] web2py on Android

2013-07-14 Thread Fernando Pacheco
I'm trying to run a minimal version of web2py (git version) on Android (Samsung Galaxy Tab 2 10 ) with kivy (as a service, latest python version 2.7) and / or from the launcher SL4A (pythn 2.6). Everything works fine when I use GET, but when I submit a form (POST) I get the following error:

[web2py] Re: Quoting in export_to_csv_file() / import_from_csv_file()

2013-07-14 Thread Massimo Di Pierro
I opened an issue about this until I can verify the problem: https://code.google.com/p/web2py/issues/detail?id=1585thanks=1585ts=1373793319 On Wednesday, 10 July 2013 16:40:59 UTC-5, Wes Hall wrote: After using import_from_csv_file(), additional quotes are showing up in the db. Should I be

[web2py] Re: session id is set to none with login_bare

2013-07-14 Thread Massimo Di Pierro
I this still an open issue? If so, please open a ticket on google code. On Friday, 5 July 2013 10:45:06 UTC-5, Vikas Gupta wrote: The client is an adroid app. I am getting the session_id as none in this function def myTestUserLoginFunc(): import json import

[web2py] Re: Field.Virtual does not show up in db.table.fields

2013-07-14 Thread Massimo Di Pierro
No. This is the intended behavior. On Saturday, 13 July 2013 12:27:04 UTC-5, Woody wrote: I'm using version 2.5.1 stable and I've created a virtual field as part of a table definition, like this: db_mydb.define_table('my_table', Field('ROWID', 'id'),

[web2py] Re: SQLFORM.smartgrid works as expected up to web2py 2.4.2, but not later versions

2013-07-14 Thread Massimo Di Pierro
I cannot reproduce the error with trunk. Yet this does not do what you expect: db.subroute.route.writable = False To make the table routes not editable you should do: grid = SQLFORM.smartgrid(db.route, editable={'routes':False}) On Wednesday, 3 July 2013 14:50:09 UTC-5, Otto

[web2py] Re: web2py on Android

2013-07-14 Thread Massimo Di Pierro
Can you try wrap (in main.py) parse_get_post_vars(request, environ) in try: ... except IOError: pass and see what happens. Web2py copies the input stream into a temp file in order to be able to parse it but also pass a copy to the app. I suspect something happens to the original stream and

[web2py] Re: Field.Virtual does not show up in db.table.fields

2013-07-14 Thread Woody
Thanks for the clarification. This is what appears in the book: Mind that virtual fields do not have the same attributes as the other fields (default, readable, requires, etc). In older versions of web2py they do not appear in the list of db.table.fields and they require a special approach to

[web2py] Re: Field.Virtual does not show up in db.table.fields

2013-07-14 Thread Massimo Di Pierro
You are right... that needs to be fixed. On Sunday, 14 July 2013 08:34:23 UTC-5, Woody wrote: Thanks for the clarification. This is what appears in the book: Mind that virtual fields do not have the same attributes as the other fields (default, readable, requires, etc). In older versions

[web2py] this talk...

2013-07-14 Thread Massimo Di Pierro
https://vimeo.com/2723800 I think this talk is really relevant to our community, and it gets really funny after the first 19 minute. Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] Re: this talk...

2013-07-14 Thread David Marko
Hi Massimo, can you elaborate more on how it is relevant to this community? Do you have some ideas that come from this presentation? Dne neděle, 14. července 2013 18:03:06 UTC+2 Massimo Di Pierro napsal(a): https://vimeo.com/2723800 I think this talk is really relevant to our community, and

[web2py] Re: this talk...

2013-07-14 Thread Massimo Di Pierro
The talk is about tricks and tips to push forward technologies which a programmer finds useful within a traditional and technologically conservative corporate environment. He tells the story of a Ruby project within a corporate environment that was very hostile to changes. I have been in

[web2py] web2py roadmap

2013-07-14 Thread Niphlod
web2py's developers work often behind the curtain and users are not able to see what they're working on. Historically we tracked down feature-requests and todo-lists on google code, but it's a nightmare to track them and work with it efficiently. On a nice tip received by a power web2py user,

[web2py] How to insert line breaks in table cell created by a virtual field

2013-07-14 Thread Woody
I have a virtual field that concatenates 2 fields like this: Field.Virtual('alert_time', lambda row: (str(a calculation that generates an integer) + ' hours' + str(references a field that has type datetime)) The result goes into a table cell and looks something like this: 8

[web2py] Using ROWID function as id field in sqlite tables

2013-07-14 Thread Woody
This may be something that is known by people with more experience than me, but it took me a lot of experimenting to figure it out, so I thought I would post it here so others will find it. I have legacy sqlite tables that do not have an id field. This makes it difficult to update them using

[web2py] How to handle multiple domains with the same application

2013-07-14 Thread Marcio Andrey Oliveira
Hi. Currently I have 3 arcade sites: 1 with all kinds of games, 1 with only girls games and another one with only escaping games. Each site is running in a separated script, and worst than that is that I have some games in girls game site and on escaping games sites that exist on general

[web2py] Re: web2py roadmap

2013-07-14 Thread dhmorgan
Love it! On Sunday, July 14, 2013 3:30:05 PM UTC-5, Niphlod wrote: web2py's developers work often behind the curtain and users are not able to see what they're working on. Historically we tracked down feature-requests and todo-lists on google code, but it's a nightmare to track them and

Re: [web2py] Re: this talk...

2013-07-14 Thread Jason (spot) Brower
When started my company I felt the same way. I am a programmer. I am also the CEO. I tell people no to jobs at my company because I want managers that know how to program, or better, programmers that know how to manage. :) On Sun, Jul 14, 2013 at 10:28 PM, Massimo Di Pierro

[web2py] Smartgrid custom form problem

2013-07-14 Thread Sarbjit singh
Hi, I am using customized form for adding records into database and using smartgrid to view/edit the records inserted in the database. Since, I am using the customized form for adding records into the database, I want to use the same layout for Edit operation (from SMARTGRID). To achieve