I have this: Post =define_table('post' Field('message', 'text', requires=IS_NOT_EMPTY, notnull=True), Field('reply', 'text', requires=IS_NOT_EMPTY). auth.signatue ) Post.is_active.readable=False Post.is_active.writable=False
controller: def index(): code.... db.post.reply.insert(name='report').....to insert into the reply collumn I get error that: AttributeError:'Field' object has no attribute 'insert' If I use: db.post.insert(name='report') SyntaxError: Field name does not belong to the table I thought/Learned that to insert: you do e.g. db.person.insert(name="Luca") db.commit() What am i doing wrong, and how can i correct it? regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.