Sorry for this trivial post - and let me know if this is the wrong list to post to, but I am struggling with acquisition (guess that makes me a newbie) and error handling in Zope. I have read the Zope Book, the Zope Web Application Construction book, and the online Developer's Guide. The examples do not seem to help. I want to organize my pages like: main folder/ subfolder 1/ sub-subfolder 1/ sub-subfolder 2/ subfolder 2/ sub-subfolder 3/ sub-subfolder 4/ subfolder 3/ I want to put common methods and scripts in one place (subfolder 1) and content in another (subfolder 2) and media resources like images in another (subfolder 3). Question Part 1: I want to set a cookie in a DTML method in sub-subfolder 3 and use it in a DTML document in sub-subfolder 4. Looks like the cookie is not visible by the DTML document. How do I make the cookie visible? Question Part 2: When trying to call Z SQL Methods or Python Scripts in a sub-subfolder 4 from sub-subfolder 3 I get syntax errors. How do I do that? Tried the following
From sub-subfolder 3 I call
<dtml-if expr="../sub-subfolder 4/function(parm)='_['variable']'"> etc... Question Part 3: I tried to split apart content in the reusable DTML documents, but in lower level folders Zope keeps appending folders to the URL and it keeps growing. Finds the documents in the hierarchy, but keeps adding to the URL length. How do I avoid this and still reference documents in parallel folders? Question Part 4: I am not sure the best way to deal with error messages. In scripts I can test conditions, but I am not sure how to pass the errors and messages back to the calling DTML method or document for presentation. <RANT> All of the books assume no errors and are vacuous on techniques like this that generally make up the bulk of a real application. </RANT> For example: I have a general validation script that I want to control the error handling function. It calls several reusable scripts for validating specific kinds of rules (like format, required fields, uniqueness, etc...). How do I structure this so that I can reuse code, access it properly, present the user with error messages. Thanks. ___________________ Tim Owen Cell: 517.285.7071 Home: 989.224.4905 eFax: 425.940.5905