[web2py] Re: PostGreSQL views

2016-10-12 Thread Nico de Groot
Nice! -- 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-users" group. To

[web2py] Re: Controlling web2py development, qa and production staging environments

2016-10-12 Thread 黄祥
i think you can use version control software e.g. mercurial, subversion, git, etc and configuration management software like puppet, ansible, chef, salt, etc. set separate environment for that, and then make sure it match with web2py appconfig. e.g. *models/db.py* from gluon.contrib.appconfig im

[web2py] Re: Controlling web2py development, qa and production staging environments

2016-10-12 Thread Dave S
On Wednesday, October 12, 2016 at 3:08:42 PM UTC-7, Jim S wrote: > > 1. I use git to install web2py on both my dev, staging and production > environments. > 2. Same as #1. > 3. Take a look at the AppConfig module. You can store your database > connect string info there. Your appconfig text

Re: [web2py] Re: Controlling web2py development, qa and production staging environments

2016-10-12 Thread Terrence Monroe
On Wed, Oct 12, 2016 at 7:14 PM, Dave S wrote: > > > On Wednesday, October 12, 2016 at 3:08:42 PM UTC-7, Jim S wrote: >> >> 1. I use git to install web2py on both my dev, staging and production >> environments. >> 2. Same as #1. >> > > And 1) and 2) can be combined with the --recursive flag, in

[web2py] Re: PostGreSQL views

2016-10-12 Thread Val K
Hi! I use PG views quite often. Common problem is related to permissions: don't forget to grant privilege to web2py login role for select/reference from/to your handmade views. To define view I use db.base_table.field.clone() - undocumented function For example: #definition base table define_ta

[web2py] Re: Controlling web2py development, qa and production staging environments

2016-10-12 Thread Dave S
On Wednesday, October 12, 2016 at 3:08:42 PM UTC-7, Jim S wrote: > > 1. I use git to install web2py on both my dev, staging and production > environments. > 2. Same as #1. > And 1) and 2) can be combined with the --recursive flag, innit? > 3. Take a look at the AppConfig module. You can

[web2py] Re: Controlling web2py development, qa and production staging environments

2016-10-12 Thread Jim S
1. I use git to install web2py on both my dev, staging and production environments. 2. Same as #1. 3. Take a look at the AppConfig module. You can store your database connect string info there. Your appconfig text file will be different on your two environments. 4. Not sure I'm understandi

Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i miss the time of only server-side :-( 2016-10-12 13:21 GMT-04:00 Anthony : >> >> In react you simple do: >> >> > > > You don't simply do that in React. The above assumes you have created a > React component that takes "url" and "pollinterval" props and then after > being mounted starts mak

[web2py] Re: Migrating Postgres to MySql

2016-10-12 Thread Ben Lawrence
For anyone using raspberry pi, postgresql can't be used with the scheduler, due to incompatibility in one of the JSON fields. I have had no trouble using scheduler with mysql on raspberry pi. On Sunday, September 18, 2016 at 12:10:45 AM UTC-7, Joe Barnhart wrote: > > When I first started using

Re: [web2py] Re: vue.js

2016-10-12 Thread Anthony
> > > In react you simple do: > > > You don't *simply* do that in React. The above assumes you have created a React component that takes "url" and "pollinterval" props and then after being mounted starts making periodic Ajax requests and updates the state after each fetch. Of course, you ca

[web2py] Re: SQLFORM.smartgrid() ui does not accept elements customization through dict() (SQLFORM.grid does)

2016-10-12 Thread Anthony
It's a bug: https://github.com/web2py/web2py/issues/1351. Unfortunately, I think the only workaround is to create a dictionary with a key for each table that might be linked to your parent table: ui = dict(widget='', ...) tables = ['citizen', 'country', ...] grid = SQLFORM.smartgrid(db.citizen,

[web2py] Re: Error with database admin and backsticks in table/field names

2016-10-12 Thread Kirill Shatalaev
> > Can you post your table declarations? Taking a quick look at the sql.log > (and I'm not a mysql user), but the index declarations look different > between Oct 06 and Oct 10: > > > # -*- coding: utf-8 -*- db.define_table('component_group', Field('name', 'string', length=30,

[web2py] SQLFORM.smartgrid() ui does not accept elements customization through dict() (SQLFORM.grid does)

2016-10-12 Thread Luciano Laporta Podazza
Hello! I tried to apply some css classes to smartgrid elements with no success. It seems that smartgrid ignores ui argument but grid does my controller: def index(): """ example action using the internationalization operator T and flash rendered by views/default/index.html or views/

Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i don't get it... i have been reading vue.js docs and a lot of examples and don't see the way of it... suppose, for example, i want to use the comment plugin example with vue, so that i can LOAD the plugin into the web2py getting a form for post comment's and a list of comment... how to keep loadi

[web2py] rows.render() equivalent for iterselect

2016-10-12 Thread Pierre
Hi, I am trying to get user representation(username) from its id as simple as that I obtained the rows iterator via a joinI don't think i can do a join with more than two tables ? so how to solve this ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-12 Thread Massimo DiPierro
i cannot commit 10hrs either.. but review the link On Oct 12, 2016 2:20 AM, "Mathieu Clabaut" wrote: > > The dates are published : https://developers.google.com/ > open-source/gsoc/timeline > We have some time to prepare an application if we decide to go. > Just for us to know, Google advertises

Re: [web2py] Re: nginx/uwsgi problem on Debian

2016-10-12 Thread Richard Vézina
Check permissions... Richard On Mon, Oct 10, 2016 at 1:34 PM, Arve Fahlvik wrote: > What was the solution? Seems like I have a similar problem. > > Arve > > On Thursday, January 21, 2016 at 10:05:57 AM UTC+1, Johann Spies wrote: >> >> On 20 January 2016 at 16:35, Richard Vézina >> wrote: >> >>

[web2py] Controlling web2py development, qa and production staging environments

2016-10-12 Thread Terrence Monroe
I asked basically the same question on StackOverflow http://stackoverflow.com/questions/39989174/controlling-web2py-development-qa-and-production-app-staging but have some more insight into my requirements. I will be developing a website with a Postgres back-end. Locally, on my laptop I will conne

[web2py] Re: Problem with migrate. Error with referenced field.

2016-10-12 Thread Fabio Ceccarani
Thanks, I delete database folder, delete and recreate database on mysql and web2py recreate all tables. Now all is ok! Thanks Fabio Il giorno lunedì 10 ottobre 2016 16:36:22 UTC+2, Marlysson Silva ha scritto: > > If your data are tests ,you could delete databases folder or the > migrations file

[web2py] Re: vue.js

2016-10-12 Thread icodk
I tried the scaffolding example. it is missing the appconfig.ini (used my own) and nothing (visibly) happen when entering good as the place holder suggests. Is it working as expected? On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro wrote: > > I am becoming a huge fan of vue

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-12 Thread Mathieu Clabaut
The dates are published : https://developers.google.com/open-source/gsoc/timeline We have some time to prepare an application if we decide to go. Just for us to know, Google advertises that : "Mentors should expect to spend at least 10 hours a week for each student". It seems a reasonable average t