<<mshawproduct1-1_0_tar.gz>> Jim, Here's a product that works in my current 2.0.1 Zope instance. It lets me add PDF documents to my site. It was built by following the HOW-TO found on the Zope.Org site. I created a distribution from the Distribution tab, then import the product into my new 2.1.2 instance which is an upgrade of the 2.0.1 site. However, I get the following error when trying to access a page containing a list of PDF documents. Zope Error[PARA]Zope has encountered an error while publishing this resource. [PARA]Error Type: KeyError[PARA][PARA]Troubleshooting Suggestions[PARA]* This resource may be trying to reference a nonexistent object or variable pub_date. [PARA]* The URL may be incorrect. [PARA]* The parameters passed to this resource may be incorrect. [PARA]* A resource that this resource relies on may be encountering an error. [PARA]For more detailed information about the error, please refer to the HTML source for this page. [PARA]If the error persists please contact the site maintainer. Thank you for your patience. This is the code for the page that causes the error. <!-- Start Document List --> <table border=0 cellspacing=4 cellpadding=2 WIDTH="100%"> <tr bgcolor="#DDEECC"> <td><b>Title</b></td><td align="center">Pub Date</td> </tr> <!--#in "PARENTS[0].objectValues(['PDF File'])" sort=id--> <tr bgcolor="#DDEECC"> <td> <FONT color="#666666" FACE="Arial" SIZE="2"> <a href="<!--#var id url_quote-->"><!--#var title--></a> </FONT> </td><td align="center"> <FONT color="#666666" FACE="Arial" SIZE="2"> <dtml-var pub_date> </FONT> </td> </tr> <!--#/in--> </table> <!-- End Document List --> If I comment out the reference to pub_date, this is what I get [NL][PARA]Title Pub Date This object from the unknown product is broken! ** This object from the unknown product is broken! ** This object from the unknown product is broken! ** Any ideas? TIA. Sorry for being such as needy newbie :) -Mark -----Original Message----- From: Jim Fulton [mailto:jim@digicool.com] Sent: Friday, January 21, 2000 1:52 PM To: Butch Landingin Cc: zope@zope.org Subject: Re: [Zope] ZopePacks: A Proposal for a new Zope Product... Butch Landingin wrote:
Hi all,
I've created a proposal for a new Zope product which I'm in the process of building.
The url of the proposal is:
http://www.zope.org/Members/butchland/ZopePackProposal/index_html
Its a long document and it suffers a little in the succintness/clarity department (sorry about that :()
In summary, I'm proposing a mechanism by which we can manage ZClasses and other objects (e.g. Folders) exported via .zexp files and somewhat make the process of deploying ZClass-based applications easier and error-free.
I hope you take the time out to read it and give me your valuable opinion, advice, and help.
Here's one comment that should provide a good place to start. There is already a mechanism for creating product distributions for products created through the web. When you develop a product with ZClasses and you want to distribute it, you can use a web interface to create a tar ball that can be installed just like any other Zope product. There is no need to fool around with export files and no need to have an inconsistent installation mechanisms. This is documented in the Zope Content Manager's Guide, http://www.zope.org/Documentation/Guides/ZCMG, in the chapter on "Zope Applications and Products", http://www.zope.org/Documentation/Guides/ZCMG-HTML/ZCMG.6.html, in the section on "Creating Product Distributions", http://www.zope.org/Documentation/Guides/ZCMG-HTML/ZCMG.6.4.html. This mechanism is far from perfect and I look forward to suggestions and implementation for enhancements. We also have some specific ideas for enhancing this mechanism. This seems to be one of those topics of "Zope Zen" that is not widely known. (Very few people at DC seem to be aware of it.) This is a bit ironic, since this feature has been *documented* for well over a year. :( Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. _______________________________________________ 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 )