>>> record = dict(first_name='john', last_name='foo')
>>> result = lambda r : "%s %s" % (r['first_name'], r['last_name'])
>>> result(record)
'john foo'
>>>
Field('personDisplayName', compute=lambda r: "%s %s" % (r['first_name'], r['last_name']))
Thanks guys, it worked.
Field('personDisplayName', compute=lambda r: "%s %s" % (r['first_name'], r['last_name']))
How would you identify the workings of each component, I mean does "%s %s" mean "put two strings together here that are identified after the percent sign?"
Much appreciated!
Alex