Hi all,
I am just starting to use compute field. Here is my db definition looks 
like (it is in a module)
class Entries(object):
 .....

  def define_tables(self,db):
      ....
      Field('permalink',type='text',required=True,compute = lambda row: 
self.get_permalink(row)),
      .....
    
    def get_permalink(self,row):

permalink = '/test/'
return permalink

This throws the error:

SyntaxError: Table: missing required field: permalink

What am I doing wrong here?


Thank you,

Joseph

Reply via email to