Re: [web2py] Dynamic model creation

2012-06-07 Thread Christian Hoffmann
Hi pbreit and thanks for the reply. So web2py is not the preferred way to go as DAL needs a scheme? Is there no way to integrate DAL in a dynamic way? Regards, Christian Am Sonntag, 3. Juni 2012 schrieb pbreit : > My guess is it's NoSQL, probably Mongo which seems to be the preferred DB > behind

Re: [web2py] Access other table

2011-09-01 Thread Christian Hoffmann
Hi, thanks for the replies. @pbreit: Tested that too, but same result, means: does not work @Richard: Thanks, will look at that links! Problem is, that I use @request.restful() which gives me the results Regards, Christian P.S.: A little bit off topic: When I send a gluon Set a json() I get wired

Re: [web2py] Access other table

2011-09-01 Thread Christian Hoffmann
class MyVirtualFields(object): def artist_name(self): artistName = db.artist(self.album.artist_id).name return artistName db.album.virtualfields.append(MyVirtualFields()) This did the trickā€¦ but is this considered good practice? 2011/9/1 Christian Hoffmann

Re: [web2py] Access other table

2011-09-01 Thread Christian Hoffmann
Hi Richard, thanks for your quick reply. After adding that to my db.py i still get something like this as JSON reply {"content": [{"name": "the album name", "artist_id": 1, "year": null, "id": 1}]} So still no name for artist_id in JSON and not in default.html I tested something like this: db.a