Hi everyone,
Been using web2py for university, and i'm trying to add a feature within my
"websites" forum posting which will allow me to have each row with a field
of a new database,
basically when a user creates a post, it also creates a new database table
that matches this specific post which stores any comments made,
Can anyone help me with this?
the code for the posts table is as follows
db.define_table('Thoughts',
Field('Editedby', db.auth_user, default=None, readable=True,
writable=True),
Field('TitleOfPost',requires=IS_NOT_EMPTY()),
Field('ContentOfPost','text',requires=IS_NOT_EMPTY()),
Field('DatePosted','date'),
Field('DP_Large', 'upload', uploadfield='picture_file'),
Field('picture_file', 'blob'),
//here is where I want to create the table something like
Field('comments',db.define_table('post'))
);
I am sorry if the question is not clear enough. thanks for any help!
--