There are two issues:
1) sharing database
2) sharing the model

1) definitively possible just make the two URIs point to the same
database

2) also possible but really depends on the detail.

one way to do is to create a function in a module that given a db,
defines the common tables. You can import that function in multiple
apps and pass distinct db connections pointing to the same database.

Anyway this break the web2py principle that apps should be autonomous.
would simply replicate the model file in the two apps. in this way
each of them can exist without the other. If they do need each other
than they are not two distinct apps.


On Sep 28, 10:22 am, Jose <[email protected]> wrote:
> Since I was unable to define which sections of my application that
> should run through https in WebFaction. What I did was create a new
> application with these parts. It is an application that handles all
> the site content in a collaborative way and I want to be on https.
>
> What I know, considering the thread [1], is if two applications can
> share the model. And if so how?
>
> Jose
>
> [1]http://groups.google.com/group/web2py/browse_thread/thread/5d349ed380...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to