[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread Karoly Kantor
You can definitely create a new project, that is sure to work.

Otherwise, I am also somewhat confused with the nomenclature, so I asked 
the question in the Google App Engine forum, you can follow any potential 
explanations here:

https://groups.google.com/forum/?fromgroups#!topic/google-appengine/UKfHKEOG7yc



On Friday, June 16, 2017 at 5:11:34 PM UTC+2, 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.
>
>

-- 
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.


[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread 98ujko9
Thank you for your input. By creating a separate project the issue goes 
away. However it seems to me that in this way more resources are consumed. 
Such discussion would be beyond my competence level. Thanks

On Monday, June 19, 2017 at 8:29:14 AM UTC-4, Karoly Kantor wrote:
>
> You can definitely create a new project, that is sure to work.
>
> Otherwise, I am also somewhat confused with the nomenclature, so I asked 
> the question in the Google App Engine forum, you can follow any potential 
> explanations here:
>
>
> https://groups.google.com/forum/?fromgroups#!topic/google-appengine/UKfHKEOG7yc
>
>
>
> On Friday, June 16, 2017 at 5:11:34 PM UTC+2, 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.
>>
>>

-- 
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.


[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread Dave S


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?

 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Common-fields-and-multi-tenancy>
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.