On Friday, December 2, 2011 2:57:07 PM UTC-5, Matthew wrote:
>
> I did try with a computed field, but it did not work. It kept giving None 
> as the value. Here is what I've tried so far: 
>
> Field('name', compute=lambda r: 'Node ' + r['id'] or 'Node'), 
>

That should yield an error -- can't concatenate a string and an int (r.id 
is an int). Try 'Node ' + str(r.id), or 'Node %s' % r.id. Also, the first 
part will always yield something, so the or 'Node' won't get evaluated.

Anthony

Reply via email to