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

2014-06-28 Thread Riccardo C
ue > > what is it supposed to be? > > > q1 = 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, >>

[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 - London','IT

[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 functi

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

2013-03-07 Thread Riccardo C
ble = False, writable = False), Field('authorId','integer', requires=IS_NOT_EMPTY(), readable = False, writable = False)) Il giorno giovedì 7 marzo 2013 13:35:23 UTC, Richard ha scritto: > > Could you show more code, controller for both component and the views > asso

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

2013-03-06 Thread Riccardo C
ed') > > > 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 > > wrote: > >> Good evening, >> >> I

[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 d

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

2013-02-08 Thread Riccardo C
them > gets over 2.5 million HTTP requests a day and works really well. there is > some differences between GAE and "traditional" hosting, but once you learn > the rules it's a fun playground to play on. > > good luck! > > christian > > On Tuesday,

[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 a