[web2py] Re: combining two queries on different table (one reference the other) - newbie db

2014-06-28 Thread Riccardo C
= db.userLanguage[language] == True I am not sure. Once q1 is correct, this works: results = db(q1 q2).select() On Wednesday, 25 June 2014 17:04:28 UTC-5, Riccardo C wrote: Dear all, I am trying to formulate a query to get ALL the people that know a language AND leave in a specific city

[web2py] combining two queries on different table (one reference the other) - newbie db

2014-06-25 Thread Riccardo C
Dear all, I am trying to formulate a query to get ALL the people that know a language AND leave in a specific city. As I am not an expert I thought that was a good idea to have two tables as following: auth.settings.extra_fields['auth_user']= [ Field('city',requires=IS_IN_SET(('UK -

[web2py] Anchor callback option and form submit

2013-11-03 Thread Riccardo C
Good evening, I've just discovered the possibility to use in the view of the callback option when we want to create a link, e.g. {{=A('mypage', callback(URL='myfunction'), target='myID'). I found it really useful for not loading a new page again. The problem is that the callback calls a

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-07 Thread Riccardo C
, 2013 at 4:49 PM, Riccardo C r.cecc...@gmail.comjavascript: wrote: Thank you very much, that is exactly what I needed... I didn't know components! I have component related question know. I have a first component that generate the first form (form1) based on tableA and a second component

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-06 Thread Riccardo C
): ... response.js=web2py_component('%s','two'); % URL('yourController','yourFunctionThatListThePost', args='ifRequired') About web2py_component : https://groups.google.com/d/msg/web2py/RSDIwe8BDxA/chcikCg0RpkJ Hope it helps! Richard On Thu, Feb 28, 2013 at 1:30 PM, Riccardo C r.cecc

[web2py] Ajax return a form but does not write in the db (and default value info)

2013-02-28 Thread Riccardo C
Good evening, I am trying to do a very simple 'twitter like' message board with the simple aim to learn to program and get used to web2py framework. The problem is that I decided (I don't know if it is the best choice) to use one single table for both the new messages and the answers. What I

[web2py] Re: GAE deployment questions...from a total beginner!

2013-02-08 Thread Riccardo C
hosting, but once you learn the rules it's a fun playground to play on. good luck! christian On Tuesday, February 5, 2013 6:17:28 AM UTC-8, Riccardo C wrote: Hi All, As in the title I'm an absolute beginner... now I'd like to see my app online. Probably it would be more correct to say

[web2py] GAE deployment questions...from a total beginner!

2013-02-05 Thread Riccardo C
Hi All, As in the title I'm an absolute beginner... now I'd like to see my app online. Probably it would be more correct to say that I would learn to deploy for choosing then the hosting for my app. I think that using Gae would be the best solution (for a beginner) but I was not able to find