Re: [web2py] Re: web3py status

2016-09-05 Thread joseph simpson
I agree that a better test environment is necessary... In the next few months I will be starting a project with web2py --- or whatever -- A standard test approach and environment will be the first item to be addressed.. What are the basic requirements for a test environment What needs to

[web2py] SQLFORM.grid problems with Oracle database tables

2016-09-05 Thread 'tomt' via web2py-users
Hi, I have been using SQLFORM.grid to display some legacy Oracle tables. While it works fine when the query is for a single table, as soon as the query involves a join between two tables the grid returns multiple duplicate entries. (I'm using web2py 2.13.4-) The result looks like this:

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
This is great. Thank you Niphlod. I promise in 6th times its finally sinking in. lol. jk:-) On Monday, September 5, 2016 at 7:12:31 PM UTC-4, Niphlod wrote: > > I think I said it at least 5 times (and there's the book >

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Niphlod
I think I said it at least 5 times (and there's the book ). Each option has its own environment. And everything follows a logic. A) migrate on DAL sets a default for migrate for all tables

[web2py] Re: Deploy with postgresql

2016-09-05 Thread Niphlod
it's one of the two: either migrations are turned off, or are turned on and you have .table files in the databases/ folder (that tell web2py "hey, tables are already there!") On Monday, September 5, 2016 at 11:04:42 PM UTC+2, Morganti wrote: > > Hi, > > I checked an the migrations are enabled!

[web2py] Re: File widget traduction

2016-09-05 Thread Niphlod
start with the basic: inspect the source code of the page. Then go back to how the widget is built. Then to the translations. On Monday, September 5, 2016 at 9:28:25 PM UTC+2, Gael Princivalle wrote: > > I would like to cry. Now it's translated, but I don't know why. > > > Il giorno lunedì 5

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
migrate_enabled = false migrate = false fake_migrate = false fake_migrate_all = false These settings are only if we don't need to update the database and use the current database. We can use these settings in the deploy mode. Am I correct? In other words, if I delete the entire

[web2py] Re: Deploy with postgresql

2016-09-05 Thread Morganti
Hi, I checked an the migrations are enabled! I dont know where is the problem. I checked to try to create the tables directly in postgresql and it is running normal. But, using web2py... Thanks Em segunda-feira, 5 de setembro de 2016 13:11:04 UTC-3, Niphlod escreveu: > > appadmin shows the

[web2py] Re: web3py status

2016-09-05 Thread Matheus Cardoso
I think the name is the least of our problems. We should debate about what is missing to achieve this "web3py", how many people its demands to accomplish this new framework, main features, such as test environment (!!!), server side rendering or not, etc. On Friday, October 25, 2013 at

[web2py] Re: Update javascript object by ajax

2016-09-05 Thread Gael Princivalle
Thanks Dave. However I'm still having trouble. With that script in the view google maps API load my all locations: I build a Javascript object. var locations = [ {{for event in events:}} {title: '{{=event.title}}', link:

[web2py] Re: File widget traduction

2016-09-05 Thread Gael Princivalle
I would like to cry. Now it's translated, but I don't know why. Il giorno lunedì 5 settembre 2016 18:08:52 UTC+2, Niphlod ha scritto: > > if your custom widget doesn't have T() it can't be translated. if your > custom widget GETS translated, it's browser's fault. if you have T() but > nothing

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-09-05 Thread webmaster
I've been working on a lot of other little things and haven't had a chance to test yet. Is yours also on Google App Engine? One thing to try would be to use version 2.12.2 of web2py to see if that fixes it. Diagnosing the issue is on my very short list of things to do. On Monday, September

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-09-05 Thread Jacinto Parga
I have the same problem 20:30:08.307Mail.send failure:coercing to Unicode: need string or buffer, lazyT found (

Re: [web2py] Re: web3py status

2016-09-05 Thread António Ramos
There it goes again another endless round of names Why the hell do we need "py" in the name ? Is that really necessary? why? I think if we forget "py" we may find a lot of nice names and forget a lot of bad ones. For example: Call it Massimo or Pierro... Its what it is in the end right? And

Re: [web2py] Re: web3py status

2016-09-05 Thread Pbop
I recommend AbilityPy. People want a framework with rich abilities. The Py gives a nod that this is a python framework (with abilities). Ability preceding Py ensures the framework is at the top of any list of frameworks given the alpha sort of A+B for AbilityPy. The domain is also available

[web2py] Re: Deploy with postgresql

2016-09-05 Thread Niphlod
appadmin shows the tables you DEFINED in the model. If there aren't real table on the backend to "sustain" those models, you get the error. You need to let web2py create the tables in your fresh database (enable migrations, hit appadmin at least once, then disable migrations for production

[web2py] Re: File widget traduction

2016-09-05 Thread Niphlod
if your custom widget doesn't have T() it can't be translated. if your custom widget GETS translated, it's browser's fault. if you have T() but nothing in specific language file, how can web2py translate it ? On Saturday, September 3, 2016 at 11:07:06 AM UTC+2, Gael Princivalle wrote: > >

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Scott Hunter
I found the problem; migrations weren't being disabled because, while I had the correct settings in appconfig.ini, they were not being used properly in creating the db object. - Scott On Saturday, September 3, 2016 at 1:01:39 PM UTC-4, Scott Hunter wrote: > > I have an app which runs *much*

[web2py] Re: Manipulating Items in DropDown List using SQLFORM

2016-09-05 Thread Nico de Groot
There *is* an option to add records to the table: auto_add (but it defaults to false). Otherwise AFAIK no changes to the tables are made. You can check this by looking at the source code if you really want to be sure. See

[web2py] Re: Manipulating Items in DropDown List using SQLFORM

2016-09-05 Thread Brian Boatright
That makes sense but doesn't IS_IN_DB create foreign keys in database or other relationships between the tables that might be effected? On Sunday, September 4, 2016 at 5:08:23 AM UTC-4, Brian Boatright wrote: > > I'm using SQLFORM and was able to add an orderby to the original model > class to

[web2py] Re: File widget traduction

2016-09-05 Thread Gael Princivalle
Somebody have a solution? Il giorno sabato 3 settembre 2016 11:07:06 UTC+2, Gael Princivalle ha scritto: > > Hello. > > I've add in a custom form this field: > {{=form_event.custom.widget.cover_image}} > > Language still English. > 'Browse...' and 'No file selected.' don't appear in it.py. > > >

[web2py] Re: Display value from reference fields and not ids in SQLFORM.grid

2016-09-05 Thread Jacinto Parga
That's what I did in controller: db.table2.field2.represent = lambda s,r: db(db.table1.id == s).select(db.table1.field2).first().field2 El viernes, 4 de septiembre de 2015, 22:57:27 (UTC+2), LoveWeb2py escribió: > > And of course I find it within a minute of posting... lol > > Here is my

[web2py] Re: Deploy with postgresql

2016-09-05 Thread Morganti
Hi! In appadmin the tables are there but, checking in pgadmin3 them aren´t there. Looks like they were not being created. But, the database is created and I am able to create tables directly in pgadmin even prompt from ubuntu. I reinstall everything and got the problem again. Thank you very

[web2py] Re: Deploy with postgresql

2016-09-05 Thread Niphlod
seemingly no response was given to a simple "how many records are there". sure the tables have been created ? On Sunday, September 4, 2016 at 3:55:54 PM UTC+2, Morganti wrote: > > Hi people! > > I just almost in go-live. So, I tried to create a Postgresql database and > starting to configure

[web2py] Manipulating Items in DropDown List using SQLFORM

2016-09-05 Thread Nico de Groot
Hi Brain, A query does not change the structure of the table. It just returns a subset. Nico de Groot -- 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) ---