On Friday, June 16, 2017 at 8:11:34 AM UTC-7, 98u...@gmail.com wrote: > > Hello, > I uploaded a simple web2py app named 'mynotes', (based on markmin app > example) to gae under a project 'projectnotes' to keep my notes in. Very > simple model: > db.define_table('tblpage', > Field('page_title','string',label='Title'), > Field('page_text','text',label='Text')) > All works fine in gae. > Then I was working on a different app and I decided to keep notes in gea > for it as well. So I created a new web2py app named 'mechnotes' based on > 'mynotes' app. Everything the same except their names. I uploaded both apps > to gae under the same project name: 'projectnotes'. > Here is the problem: the second app uses the table and the content of the > first app! So I cannot create separate, independent notes in my second app. > Could the 'rname' parameter in the table definition be used to create > application unique table names? > Thank you in advance. >
Does any of the multi-tenancy stuff help? <URL:http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Common-fields-and-multi-tenancy> <URL:http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Common-filters> /dps -- 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.