Re: [Zope] ZSyncer bidirectional ?
John Ziniti schrieb:
I have modified ZSyncer to be able to "pull" objects backwards. This was relatively straightforward. I would be happy to send you some code ... what would be best for you? The new Product or diffs on the old one?
yes "pull" is the option (and word) i'm searching for, thanks! some code would be great, if possible both the new Product and diffs.
Additionally, since you seem in a mood to develop ZSyncer, maybe you and the Zope list could comment:
I'd like to use ZSyncer to sync code that is external to ZODB, e.g. External Methods and Python Products.
Doesn't this collide with some security concepts? If you are able to compromise XML-RPC via network your whole Zope system is open through ZSyncer (via compromised External Methods). Otherwise it would we a useful feature for remote development purpose.
At this point, I'm just hacking away to get it in there, mostly using os.system and such. But I would be happy to rethink and refactor if the community think it's worth the effort. I think in the long run, Zope needs this functionality.
Thoughts?
i don't know how EMs are imported into / used in Zope. Maybe the problem (if not using os.system and Co) is to get the source of the module directly from inside Zope, but i don't know.
Ziniti
Thanks a lot.
Andreas Hölzl wrote:
hi to all the ZSyncer user out there,
ZSyncer is quite a fine Product, but i'm missing bidirectional syncing, i.e. being able to do an update of remote objects as well as local ones from one ZSyncer instance. The current state is, if i am right, only one way syncing. Example: if there is an object on your remote Zope and it is missing on your local Zope, you can only delete the object on the remote server but not copy it to your local Zope. I suppose this has to do with the 1-to-n (development-production) syncing architecture.
If no one can explain or has a suggestion, i'll try to modify ZSyncer by my self.
Andreas Hölzl
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
yes "pull" is the option (and word) i'm searching for, thanks!
np :)
Doesn't this collide with some security concepts?
Oh yeah, totally clashes with security. And that's why I wanted to se eif other people were interested so that we can discuss security issues. If I'm the only one using it, I'll secure it in other ways.
i don't know how EMs are imported into / used in Zope. Maybe the problem (if not using os.system and Co) is to get the source of the module directly from inside Zope, but i don't know.
The problem I see here is that even if we can get the code from running Zope or even modify the code in a running Zope, I don't think Zope is "outfitted" to commit these changes to disk the way I'd like. I debated between modifying the "Product" class (and the ExternalMethod class) ... or just hacking ZSyncer using os calls to get filesystem access. The former is more ambitious. The latter is faster ... so I chose the latter ... Ziniti
participants (2)
-
hoelzla@t-online.de -
John Ziniti