product distribution mayhem
OK, hopefully not mayhem, just confusion. What's the proper procedure for distributing a project with Zclasses? I used to think one just had to tar.gz the lib/python/Products/X directory, but that doesn't work in this scenario: I am building a Product that uses python classes and Zclasses. I begin by creating a directory in lib/python/Products/X and put my python module and __init__.py in it. I restart Zope and in the Zope interface, proceed to add some rally nifty ZClasses and DTML methods and such into my new Product. Now I want to distribute it. How? I can archive lib/python/Products/X, but all that contains is the python source I started with. I can hit the "Export" button in Control Panel/Products and create a .zexp file with all my Products properties and ZClasses, etc, but that does not contain the python source. Neither one is complete, and I end up doing this: (on the destination Zope server) create a lib/python/Products/X, and unarchive my source code. Restart Zope. Re-name the new Product (so the next step doesn't collide) Then go to Zope Products folder and import my X.zexp file. I think this works-- I'm actually not even sure why. There has got to be a better way. What am I missing? -- Alex Rice | alrice@swcp.com | http://www.swcp.com/~alrice Current Location: N. Rio Grande Bioregion, Southwestern USA
Hi, IF you are using zclasses, simply use the distribution tab to export it. When you click the button Zope will create a tgz file and send it to you. Just save it, to use it unzip it over the Zope directory structure & restart Zope! Cheers, Anthony Pfrunder Zope Community Development Partner
On Mon, 2 Aug 1999 14:47:22 +1000 (GMT+1000), Anthony Pfrunder <s341625@student.uq.edu.au> said: Anthony> IF you are using zclasses, simply use the distribution tab to Anthony> export it. When you click the button Zope will create a tgz Anthony> file and send it to you. Just save it, to use it unzip it over Anthony> the Zope directory structure & restart Zope! That's true, but, my point was that this method does not include python source which I created in lib/python/Products, therefore my product distribution is incomplete. Furthermore, in 2.0b, Zope seems to export in .zexp format, not .tgz format. It doesn't seem to be tar/gz compatible. Anyone? -- Alex Rice | alrice@swcp.com | http://www.swcp.com/~alrice Current Location: N. Rio Grande Bioregion, Southwestern USA
participants (2)
-
Alex Rice -
Anthony Pfrunder