Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-18 Thread Chris Withers

Shane Hathaway wrote:
 
 It depends on the product you use for mounting, but generally you'll get
 a shared database with independent connections.  So it will work, but if
 you make conflicting changes, the transaction should fail.

Oooo... was this thread about mounted databases?

Sorry, I got the wrong end of the stick ;-)

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] mounting obj to more than one zodb location

2001-01-17 Thread ender

whats happens when you create a persistent object and mount it 
to multiple points on your zodb. do you get a shared ref or multiple
copies of the object?


kapil

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-17 Thread Chris Withers

 whats happens when you create a persistent object and mount it
 to multiple points on your zodb. do you get a shared ref or multiple
 copies of the object?

..shared ref if you do it like you say you are :-)

I'd love to see ObjectManagers support this.

...yes, there are security implications (the object has two or more security
paths, depending on how you access it) but if you take that into account, it
provides for some pretty impressive flexibility.

However, you can quite often do something funky with a __bobo_traverse__
method to get around the need for this :-)

cheers,

Chris


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-17 Thread Shane Hathaway

ender wrote:
 
 whats happens when you create a persistent object and mount it
 to multiple points on your zodb. do you get a shared ref or multiple
 copies of the object?

It depends on the product you use for mounting, but generally you'll get
a shared database with independent connections.  So it will work, but if
you make conflicting changes, the transaction should fail.

This is only an artifact of the current implementation, though.

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )