Re: [Zope] Instanciate a ZClass out of Zope
On Sat, 17 Jun 2000, FR Chalaoux wrote: This give me a track now, but this howto seems to talk about of an external method not about a script out of zope, No ? When I say out of zope, I mean open a connection with ZODB as describe in http://www.zope.org/Members/michel/HowTos/ZODB-How-To and create an instance of my ZClass which where defined with my zope web interface. You cannot open independent connection to ZODB while Zope is active - Zope locks the database, and by purpose. You must access ZODB only through Zope machinery. Or stop Zope, open ZODB and reinvent the wheel - copy a lot of code from Zope into your program and do-it-yourself. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Instanciate a ZClass out of Zope
This limitation will effectively go away as soon as ZEO goes open source. Oleg Broytmann wrote: You cannot open independent connection to ZODB while Zope is active - Zope locks the database, and by purpose. You must access ZODB only through Zope machinery. Or stop Zope, open ZODB and reinvent the wheel - copy a lot of code from Zope into your program and do-it-yourself. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Instanciate a ZClass out of Zope
On Mon, 19 Jun 2000, Chris McDonough wrote: This limitation will effectively go away as soon as ZEO goes open source. Oleg Broytmann wrote: You cannot open independent connection to ZODB while Zope is active - Zope locks the database, and by purpose. You must access ZODB only through Zope machinery. Or stop Zope, open ZODB and reinvent the wheel - copy a lot of code from Zope into your program and do-it-yourself. In any case I doubt there is a sense in reimplementing a part of Zope. I guess it would be much simpler/better/faster to use XML-RPC to do deep magic and manipulate Zope objects. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Instanciate a ZClass out of Zope
On Sat, 17 Jun 2000, FR Chalaoux wrote: I would like to instanciate a Zclass, I created in Zope, out of Zope web interface. I mean create objets, base on this ZClass, in ZODB with a python script out of Zope. What are the different solutions to do that ? Is there code exemples around ? http://www.zope.org/Members/taz/addZClasses Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 )