Re: [web2py] Project: Heroku Buildpack for Web2py

2015-03-13 Thread Louis Amon
> You do not need to byte compile form shell. The code is byte compiled when > requested I was referring to admin/compile_app. Isn’t that supposed to help improve performance ? > Make sure you look into gluon/contrib/heroku.py I’ve been looking at it for the past few months yeah… and ended up

[web2py] Re: Ongoing issue with 'Lost connection to MySQL server during query'

2015-03-13 Thread Ian Ryder
Sorry, formatting was all screwy on the last bit of the OP - 2 processing running together, one lasting 295 seconds and saving without issue, the other lasting 305 seconds and failing because the SQL server has gone / isn't reconnected: ## 295#

[web2py] REST call for multiple entities

2015-03-13 Thread Alex Ar
I am new to web2py/python. Really like what I see so far. I am trying to implement a RESTfull query to retrieve multiple entities at the same time. (1) is there a recipe on how to implement the following request using parse_as_rest()? http://example.com/app/controller/api/ENTITY?id=[10,11,1

[web2py] Re: Can we disable moderation in the group?

2015-03-13 Thread Ian Ryder
I think that's the case, this post won't go up until some time down the track and I've posted a few times On Saturday, March 7, 2015 at 1:12:30 PM UTC+11, Jack Kuan wrote: > > I don't see the need and think it can be off putting for new comers. > -- Resources: - http://web2py.com - http://web2

[web2py] grid that only show search field

2015-03-13 Thread 黄祥
hi, is it possible to use grid that only show search field? the grid data table will show after user the search query is entered thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://

[web2py] backup web2py application from controller (not from appadmin)

2015-03-13 Thread 黄祥
hi, is it possible to backup web2py application from controller (not from appadmin)? i'm trying before and it return an error : Error snapshot [image: help] ([Error 32] The process c

[web2py] Re: accessing current.variable from a module

2015-03-13 Thread Anthony
There is a thread per request. An Ajax for submission happens in a separate request from the request for the page that contains the form. If you need to store data that persists between requests, put it in the session (which you can access in a module via current.session). Anthony On Friday, M

[web2py] Re: Can we disable moderation in the group?

2015-03-13 Thread Anthony
It's also possible in some cases that moderators are allowing individual messages but forgetting to permanently change the status of new members to "Allowed". On Friday, March 13, 2015 at 5:38:20 PM UTC-4, Massimo Di Pierro wrote: > > This is possible. This is a google issue and we have had the

[web2py] Re: Can we disable moderation in the group?

2015-03-13 Thread Massimo Di Pierro
This is possible. This is a google issue and we have had the problem for a few users. This is not the policy of the forum and I do not know why google acts this way. On Thursday, 12 March 2015 13:46:23 UTC-5, Gray Kanarek wrote: > > I've been moderated for more than the first post... > > On Tue

[web2py] Re: Wildcard in domain mapping route?

2015-03-13 Thread Massimo Di Pierro
You can in the pattern based routes system: routes_in = [ ('.*http://\w+\.myserver.com /', 'myapp/default/index') ] On Thursday, 12 March 2015 18:01:58 UTC-5, Francisco Costa wrote: > > I don't think so, but would love to have something like this in Parameter > Based System > > domains = {"*

[web2py] Re: Integrating with Google App Engine

2015-03-13 Thread Massimo Di Pierro
IMPORTANT. GAE support is broken in 2.9.11 and 2.9.12. The handler has been completely supported and it now passes all tests and supports more syntax than before. Please wait for the next stable release to use web2py on GAE. It will solve many headaches. On Thursday, 12 March 2015 13:46:16 UTC-

[web2py] Re: Can we disable moderation in the group?

2015-03-13 Thread Ian Ryder
I agree, I've posted quite a few and still have to wait what could be a day for my posts to appear (and I think some haven't appeared) so definitely puts me off using what is otherwise an essential resource. Certainly think traffic would go up...and not just spam :) On Saturday, March 7, 2015 a

[web2py] Re: DAL: INSERT-query's devilry

2015-03-13 Thread Val K
Thanks for your reply! You are right, if we are talking about some application with full built-in logic and it would like to be independent on any DBEngine. But IMHO there are a lot of opposite situations: DB-App with many different clients. In this case VIEW is very helpful solution, it minimiz

[web2py] storing user-defined classes across sessions

2015-03-13 Thread Gray Kanarek
I'm working on a website for a game, the engine of which involves a heirarchy of custom classes. I need to find some way to store the gamestate between sessions, so that logged-in users can pick up a game from one of their associated characters from where they last saved. My original idea was t

[web2py] Ongoing issue with 'Lost connection to MySQL server during query'

2015-03-13 Thread Ian Ryder
Hi, we are using Web2py to do some batch processing of data but from day one have had show-stopping issues with losing connection to MySQL on PythonAnywhere. We've refactored the code to be much lighter in terms of batch sizes etc which has made it much closer to perfect but we still have probl

[web2py] Re: Restful authentication and CORS

2015-03-13 Thread Andrés Letelier
Hi. I'm trying to do basically the same thing; mostly I'm trying to authenticate an AngularJS app against a web2py backend and then do a couple of RESTful calls. Is web2py-oauth2 still the best choice for this? On Sunday, August 10, 2014 at 4:04:28 PM UTC-4, Massimo Di Pierro wrote: > > OK. Wil

[web2py] Re: accessing current.variable from a module

2015-03-13 Thread Gray Kanarek
How would I know? When does the thread change? initialize() is called on page load, parse_command() is called via Ajax form submission on that page. If it's different threads, how do I do this? Lol. On Thursday, March 12, 2015 at 5:17:22 PM UTC-4, Niphlod wrote: > > are you staying in the same

Re: [web2py] Re: two (or more) applications using the same database

2015-03-13 Thread Niphlod
> > > Is the concern that the commit operation of the second transaction will > itself raise an exception (at which point, the first transaction has > already been commited)? Aside from that possibility, wouldn't any error > (within the databases or otherwise) simply result in both transactions

Re: [web2py] Re: Admin db queries

2015-03-13 Thread António Ramos
done https://github.com/web2py/web2py/issues/850 2015-03-13 15:55 GMT+00:00 Leonel Câmara : > Ahh I'm sorry, I thought you were doing regular queries in a controller. > Right now you can't select which fields to get in appadmin what appadmin > wants in that input field is just the query. I guess

[web2py] Re: Admin db queries

2015-03-13 Thread Leonel Câmara
Ahh I'm sorry, I thought you were doing regular queries in a controller. Right now you can't select which fields to get in appadmin what appadmin wants in that input field is just the query. I guess you can open a ticket with a feature request for it because it because it wouldn't be very hard

Re: [web2py] Re: Admin db queries

2015-03-13 Thread António Ramos
this gets the same errror (db.auth_user.id>0).select() Em 13 de março de 2015 12:07, António Ramos escreveu: > > 2015-03-13 12:00 GMT+00:00 Leonel Câmara : > >> db(db.trabalhador.id>0).select(db.trabalhador.rfid) >> > > i get this error > > [image: Imagem inline 1] > -- Resources: - http://we

Re: [web2py] Re: two (or more) applications using the same database

2015-03-13 Thread Willoughby
"The greatest disadvantage of the two-phase commit protocol is that it is a blocking protocol. If the coordinator fails permanently, some cohorts will never resolve their transactions: After a cohort has sent an *agreement* message to the coordinator, it will block until a *commit* or *rollback

Re: [web2py] Re: two (or more) applications using the same database

2015-03-13 Thread Anthony
On Friday, March 13, 2015 at 7:13:52 AM UTC-4, Niphlod wrote: > > >> Why would you need a commit()? If everything is happening within a web2py >> request, any open transactions will be rolled back should either database >> throw an error, or if the app code itself results in an exception. So, if

Re: [web2py] Re: Admin db queries

2015-03-13 Thread António Ramos
2015-03-13 12:00 GMT+00:00 Leonel Câmara : > db(db.trabalhador.id>0).select(db.trabalhador.rfid) > i get this error [image: Imagem inline 1] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

[web2py] Re: Admin db queries

2015-03-13 Thread Leonel Câmara
Olá António, db(db.trabalhador.id>0).select(db.trabalhador.rfid) You can do exactly that and it will only get the rfid field. Say you want the name too: db(db.trabalhador.id>0).select(db.trabalhador.nome, db.trabalhador.rfid) -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Admin db queries

2015-03-13 Thread António Ramos
Hello , using admin i can browse my tables. for default we have the query db.table.id>0 How can i do something like this ? (db.trabalhador.id>0).select(db.trabalhador.rfid) I have a table with many fields and i only want to query 2 or 3 fields. It would be nice to query using DAL queries. R

Re: [web2py] Re: two (or more) applications using the same database

2015-03-13 Thread Niphlod
> > > Why would you need a commit()? If everything is happening within a web2py > request, any open transactions will be rolled back should either database > throw an error, or if the app code itself results in an exception. So, if a > record in one database is deleted, but then an exception oc

[web2py] Decimal problem; some zero places, others 4 places; expecting 2 places

2015-03-13 Thread pbreit
Any ideas on what might be going on? My system worked fine at some point. The only change that I can think of is updating web2py (could have been any changes in the past 1-2 years). I do use virtual fields which I know have changed but the numbers that I am having trouble with are not virtual.