Changes between Version 23 and Version 24 of BluePrintRESTImplementation


Ignore:
Timestamp:
01/03/09 09:23:59 (13 years ago)
Author:
Fran Boon
Comment:

Beware of lambdas & %s substitution

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintRESTImplementation

    v23 v24  
    117117                SQLField('uuid',length=64,default=uuid.uuid4()),
    118118                SQLField('name'))
    119 db['%s' % table].represent=lambda table:shn_list_item(table,resource=resource,action='display')
    120 }}}
     119db['%s' % table].represent=lambda table:shn_list_item(table,resource='shelter',action='display')
     120}}}
     121NB Beware of lambdas & %s substitution as they get evaluated when called, not when defined!
    121122
    122123== Controller ==