you are right, forgotten about the .requires part :/ thanks! On Sunday, July 21, 2013 9:32:15 PM UTC+3, Jonathan Lundell wrote: > > On 21 Jul 2013, at 11:28 AM, "K. Antonis Tzorvas" > <antonis...@gmail.com<javascript:>> > wrote: > > db.define_table('station', > Field('name'), > Field('country', 'string'), > Field('city', 'string'), > Field('records_file', 'upload'), > format='%(name)s', > migrate=False) > > db.station.name.requires = IS_NOT_IN_DB(db, 'station.name') > > i had this one > and i want to add an extra line > db.station.records_file = IS_NOT_EMPTY() > > but i am getting this erro: > >> SyntaxError: Object exists and cannot be redefined: records_file >> >> > any idea? > > > db.station.records_file.requires = IS_NOT_EMPTY() > >
-- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.