What I have to do to make it works :
for r in db().select(db.dict_database.ALL):
print r['"dict_database"."table_name"']
I have to use the table name and the field name as key to get row field
data, the worst is that it needs double quoting the table name and field
name and quote both...
It must be something wrong??
Richard
On Fri, Jul 6, 2012 at 10:05 AM, Richard Vézina <[email protected]
> wrote:
> Hello,
>
> This line in my app failed with <type 'exceptions.KeyError'> '*table_name*
> '
>
>
> dblabels_en = cache.ram('dblabels_en',
> lambda: dict([(r.*table_name* + r.column_name, r.column_name_en_ui)\
> for r in db().select(db.dict_database.ALL)]),
> time_expire=3600)
>
> Is the way row behave have change?
>
> Richard
>
>
> On Fri, Jul 6, 2012 at 9:27 AM, Richard Vézina <
> [email protected]> wrote:
> >
> > I try and report back!
> >
> > Richard
> >
> >
> > On Fri, Jul 6, 2012 at 8:59 AM, Alec Taylor <[email protected]>
> wrote:
> >>
> >> > By the way, what is "salt password"? I searched dictionary, but
> didn't find
> >> > a good translation. Sorry my poor English.
> >> http://en.wikipedia.org/wiki/Salt_%28cryptography%29
> >>
> >> Basically means adding some padding to increase the strength of the
> >> encryption without having the user create a longer password. (although
> >> longer password would make that even more secure)
> >
> >
>