On Sat, Dec 29, 2012 at 3:45 PM, Massimo Di Pierro
<massimo.dipie...@gmail.com> wrote:
> We can fix this but.... can't you just leave the first_name and last_name
> fields alone, as suggested in the book, but make them invisible?
> readable=False, writable=False. And just change the field used in the navbar
> as in the example?

That's what I've been doing so far (just 'first_name' was needed).

But if at all possible I would like as few fields as possible per table.

I also wanted to set the primary key of that table to 'email', but it
looks like you have to have the 'id' field no matter what.

> On Friday, 28 December 2012 21:12:01 UTC-6, Alec Taylor wrote:
>>
>> Thanks, but that still isn't working for me.
>>
>> Interesting parts of the traceback:
>>
>>  <type 'exceptions.AttributeError'>('Row' object has no attribute
>> 'first_name')
>>
>>    web2py\gluon\dal.py in __getitem__ at line 6453 code arguments
>> variables
>>     Function argument list
>>
>>     (self=<Row {'interests': ['chocolate'], 'registration_...1,
>> 'name': '', 'email': 'alect...@gmail.com'}>, key='first_name')
>>
>> Maybe there's some way to change the 'key' there?
>>
>> On Sat, Dec 29, 2012 at 7:03 AM, Massimo Di Pierro
>> <massimo....@gmail.com> wrote:
>> > {{=auth.navbar(user_identifier='%(email)s')}}
>
> --
>
>
>

-- 



Reply via email to