ANN: Zope Page Templates 1.0.0 beta 1
The first beta release of ZPT is ready! Come read about them at http://dev.zope.org/Wikis/DevSite/Projects/ZPT, and download from http://www.zope.org/Members/4am/ZPT. These should be especially interesting for teams of Zope developers in which the programming and page/site design tasks are handled by separate people. Cheers, Evan @ digicool
Oooo Evan, sending HTML mail to the list, bad monkey! Anyway to the point. Just installed ZPT1.0.0b1. Using the StandardLookAndFeel, then when creating SimpleWelcome example verbatim I get a traceback: Error Type: AttributeError Error Value: args Traceback (innermost last): File f:\zope2\lib\python\ZPublisher\Publish.py, line 223, in publish_module File f:\zope2\lib\python\ZPublisher\Publish.py, line 187, in publish File f:\zope2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: PageTemplate) File f:\zope2\lib\python\ZPublisher\Publish.py, line 171, in publish File f:\zope2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: pt_editAction) File f:\zope2\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: pt_editAction) File f:\zope2\lib\python\Products\PageTemplates\ZopePageTemplate.py, line 171, in pt_editAction (Object: PageTemplate) File f:\zope2\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in __call__ (Object: manage_main) File f:\zope2\lib\python\Shared\DC\Scripts\Bindings.py, line 353, in _bindAndExec (Object: manage_main) File f:\zope2\lib\python\App\special_dtml.py, line 236, in _exec (Object: manage_main) File f:\zope2\lib\python\DocumentTemplate\DT_Let.py, line 145, in render (Object: read=read) File f:\zope2\lib\python\Products\PageTemplates\PageTemplate.py, line 187, in read (Object: PageTemplate) File f:\Python\Lib\exceptions.py, line 74, in __str__ AttributeError: (see above) Any ideas? tia Phil ----- Original Message ----- From: Evan Simpson To: Zope Dev ; zope@zope.org ; zope-announce@zope.org Sent: Wednesday, March 28, 2001 12:10 AM Subject: [Zope] ANN: Zope Page Templates 1.0.0 beta 1 The first beta release of ZPT is ready! Come read about them at http://dev.zope.org/Wikis/DevSite/Projects/ZPT, and download from http://www.zope.org/Members/4am/ZPT. These should be especially interesting for teams of Zope developers in which the programming and page/site design tasks are handled by separate people. Cheers, Evan @ digicool
From: "Phil Harris" <phil.harris@zope.co.uk>
Oooo Evan, sending HTML mail to the list, bad monkey!
Mea culpa! Honestly, I don't know how my Outlook Express settings got that way. Must be gremlins.
Using the StandardLookAndFeel, then when creating SimpleWelcome example verbatim I get a traceback:
Error Type: AttributeError Error Value: args
Your "use-macro" path isn't correct, and since I forgot to provide TALESError with a way to print itself, you aren't getting a polite error message about it. Add the following to the TALESError class in PageTemplates/TALES.py: def __str__(self): if self.type is not None: return '%s on %s in "%s"' % (self.type, self.value, self.expression) return self.expression Now you should be able to see where the path is going wrong. Thanks, Evan @ digicool
Mea culpa! Honestly, I don't know how my Outlook Express settings got that way. Must be gremlins.
Nah. Outlook Express is one of the many innovative products brought to us by Microsoft. You probably need to upgrade to the latest version of their exciting Windows and Office lines of products and you'll be fine. Contact your dealer for licensing details ;) Sorry ;) Back to the subject: Cool! :) Can't wait to try it out! Good job, keep it up. Cya Jonathan
Am Mittwoch, 28. März 2001 01:10 schrieben Sie:
The first beta release of ZPT is ready!
Come read about them at http://dev.zope.org/Wikis/DevSite/Projects/ZPT, and download from http://www.zope.org/Members/4am/ZPT.
These should be especially interesting for teams of Zope developers in which the programming and page/site design tasks are handled by separate people.
Cheers,
Evan @ digicool
Hi Evan, I tried to get things to fly under Zope 2.3.0. I think I got everything setup correctly: TAL in .../python1.5/site-packages PageTemplate in .../Products ParsedXML in .../Products the PageTempate is available from the drop down box, but all I get is this: -------------------------------------------------- Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: _v_blocks Troubleshooting SuggestionsThe URL may be incorrect.The parameters passed to this resource may be incorrect.A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: ptAdd) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: ptAdd) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: ptAdd) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: ptAdd) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/App/special_dtml.py, line 236, in _exec (Object: ptAdd) AttributeError: (see above) ---------------------------------------------------- any hints ? - Thanks, Holger -- ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de
I have been utterly unable to replicate the AttributeError when trying to add a Page Template. Could those of you who have encountered this please let me know the *exact* Zope that you are using (platform and source vs. binary as well as version number. Fresh install or upgrade? From tarball or CVS?). Also, those of you using *nix platforms, please include the "ls -al" output from your PageTemplates directory. Thanks, Evan @ digicool
Evan: * Redhat 6.2 * Zope 2.3.1 (source release, python 1.5.2, linux2) * Fresh Install * From tarball on zope.org Filelist: ----------------------------------------------------- total 160 drwxrwxr-x 7 565 itfenv 4096 Apr 3 16:47 . drwxrwxr-x 19 506 users 4096 Apr 3 16:39 .. -rw-rw---- 1 565 users 6 Mar 27 12:37 .cvsignore -rw-rw---- 1 565 users 229 Mar 30 07:43 CHANGES.txt -rw-rw-r-- 1 565 users 13162 Mar 27 10:10 Expressions.py -rw-rw-r-- 1 root root 13628 Apr 3 16:44 Expressions.pyc -rwxrwxr-x 1 565 users 8167 Mar 29 05:21 PageTemplate.py -rw-rw-r-- 1 root root 6565 Apr 3 16:44 PageTemplate.pyc -rw-rw---- 1 565 users 108 Mar 27 13:21 README.txt -rw-rw-r-- 1 565 users 9976 Mar 29 05:22 TALES.py -rw-rw-r-- 1 root root 11452 Apr 3 16:44 TALES.pyc -rwxrwxr-x 1 565 users 12786 Mar 30 05:50 ZopePageTemplate.py -rw-rw-r-- 1 root root 13581 Apr 3 16:44 ZopePageTemplate.pyc -rw-rw-r-- 1 565 users 4172 Mar 23 12:19 __init__.py -rw-rw-r-- 1 root root 654 Apr 3 16:44 __init__.pyc drwxrwx--- 2 565 itfenv 4096 Mar 26 12:41 dtml drwxrwx--- 2 565 itfenv 4096 Mar 23 12:16 examples -rw-rw-r-- 1 root root 0 Apr 3 16:47 files.txt drwxrwx--- 2 565 users 4096 Mar 27 12:25 help drwxrwxr-x 4 565 itfenv 4096 Mar 27 12:38 tests -rw-rw---- 1 565 users 20 Mar 30 07:42 version.txt drwxrwx--- 2 565 users 4096 Mar 26 11:38 www ----------------------------------------------------- That is my Zope server at work, which is experiencing the problem. When I get home tonight, I'll give you the information on my Zope server at home which is also experiencing the problem. Hope it helps, Andrew ----- Original Message ----- From: "Evan Simpson" <evan@digicool.com> To: "Holger Lehmann" <lehmann@catworkx.de>; "Peter Simmons" <pete@bcmpweb.com> Cc: "zope list" <zope@zope.org> Sent: Tuesday, April 03, 2001 3:20 PM Subject: [Zope] ZPT _v_blocks error
I have been utterly unable to replicate the AttributeError when trying to add a Page Template.
Could those of you who have encountered this please let me know the *exact* Zope that you are using (platform and source vs. binary as well as version number. Fresh install or upgrade? From tarball or CVS?). Also, those of you using *nix platforms, please include the "ls -al" output from your PageTemplates directory.
Thanks,
Evan @ digicool
_______________________________________________ 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 )
Hi Evan, OS - Redhat 6.2 Zope - 2.3.0 Source Fresh Products Installed pe Name Size Last Modified DataSkinAddons (Installed product DataSkinAddons (DataSkinAddons-0-0-2)) 2001-02-18 05:19 PM EMarket (Installed product EMarket (EMarket-0-2-0a4)) 2001-02-18 05:19 PM Etailer (Installed product Etailer (Etailer-1.0.08)) 2001-03-24 02:35 PM ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) 2001-02-18 05:19 PM FSCounter (Installed product FSCounter) 2001-02-18 05:19 PM FlatDatabase (Installed product FlatDatabase) 2001-02-18 05:19 PM GUM (Broken product GUM) 2001-02-22 06:01 PM GenericEMarketClasses 2001-02-23 11:59 AM Hotfix_2001-02-23 (Installed product Hotfix_2001-02-23) 2001-02-25 12:56 PM Hotfix_2001-03-08 (Installed product Hotfix_2001-03-08) 2001-03-13 10:36 PM InternetInvoice 2001-02-18 05:36 PM MIMETools (Installed product MIMETools) 2001-02-19 11:59 AM MailHost (Installed product MailHost (MailHost-1-2-0)) 2001-02-18 05:19 PM NFGnav (Installed product NFGnav) 2001-03-05 04:23 PM OFSP (Installed product OFSP (OFSP-1-0-0)) 2001-02-18 05:19 PM POPMail 2001-02-19 11:59 AM POPMailBase (Installed product POPMailBase) 2001-02-18 05:19 PM PageTemplates (Installed product PageTemplates (PageTemplates-1-0-0)) 2001-04-03 09:44 PM ParsedXML (Installed product ParsedXML) 2001-03-28 02:46 PM PaymentExpressInterface 2001-03-28 05:22 PM PlugIns (Installed product PlugIns (PlugIns-0-4-3b2)) 2001-02-18 05:19 PM PythonScripts (Installed product PythonScripts (PythonScripts-1-0-0)) 2001-02-18 05:19 PM Session (Installed product Session (Session-0-2)) 2001-02-22 10:43 PM SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0)) 2001-02-18 05:19 PM StandardCacheManagers (Installed product StandardCacheManagers (StandardCacheManagers-1-0-0)) 2001-02-18 05:19 PM TestEMarket 2001-02-18 05:38 PM TimeTracker 2001-02-18 05:37 PM WAndWWebShop 2001-02-26 08:38 PM WapDocs 2001-03-01 01:46 PM ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) 2001-02-18 05:19 PM ZGadflyDA (Installed product ZGadflyDA) 2001-02-19 11:59 AM ZPatterns (Installed product ZPatterns (ZPatterns-0-4-3b2)) 2001-02-18 05:19 PM ZSQLMethods (Installed product ZSQLMethods) 2001-02-18 05:19 PM ZWiki (Installed product ZWiki (ZWiki-0-8-1)) 2001-02-18 05:19 PM ZWikiWebs (sample zwiki webs (ZWikiWebs-0.7.0)) 2001-02-18 05:37 PM ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) 2001-02-18 05:19 PM gvibDA (Installed product gvibDA (gvibDA-0-9-2)) 2001-02-18 05:31 PM zCommerce (Installed product zCommerce (zCommerce-0-2)) 2001-02-22 10:43 PM Dir Listing of PageTemplates dir: total 160 drwxrwxr-x 7 565 pete 4096 Apr 4 08:16 . drwxrwxr-x 31 506 users 4096 Apr 3 21:42 .. -rw-rw---- 1 565 users 6 Mar 28 05:37 .cvsignore -rw-rw---- 1 565 users 229 Mar 31 00:43 CHANGES.txt -rw-rw-r-- 1 565 users 13162 Mar 28 03:10 Expressions.py -rw-r--r-- 1 root root 13566 Apr 3 21:44 Expressions.pyc -rwxrwxr-x 1 565 users 8167 Mar 29 22:21 PageTemplate.py -rw-r--r-- 1 root root 6537 Apr 3 21:44 PageTemplate.pyc -rw-rw---- 1 565 users 108 Mar 28 06:21 README.txt -rw-rw-r-- 1 565 users 9976 Mar 29 22:22 TALES.py -rw-r--r-- 1 root root 11382 Apr 3 21:44 TALES.pyc -rwxrwxr-x 1 565 users 12786 Mar 30 22:50 ZopePageTemplate.py -rw-r--r-- 1 root root 13535 Apr 3 21:44 ZopePageTemplate.pyc -rw-rw-r-- 1 565 users 4172 Mar 24 05:19 __init__.py -rw-r--r-- 1 root root 650 Apr 3 21:43 __init__.pyc drwxrwx--- 2 565 pete 4096 Mar 27 05:41 dtml drwxrwx--- 2 565 pete 4096 Mar 24 05:16 examples drwxrwx--- 2 565 users 4096 Mar 28 05:25 help -rw-r--r-- 1 root root 0 Apr 4 08:16 output drwxrwxr-x 4 565 pete 4096 Mar 28 05:38 tests -rw-rw---- 1 565 users 20 Mar 31 00:42 version.txt drwxrwx--- 2 565 users 4096 Mar 27 04:38 www Hope That helps, Pete Evan Simpson wrote:
I have been utterly unable to replicate the AttributeError when trying to add a Page Template.
Could those of you who have encountered this please let me know the *exact* Zope that you are using (platform and source vs. binary as well as version number. Fresh install or upgrade? From tarball or CVS?). Also, those of you using *nix platforms, please include the "ls -al" output from your PageTemplates directory.
Thanks,
Evan @ digicool
From: "pete" <pete@bcmpweb.com>
drwxrwxr-x 7 565 pete 4096 Apr 4 08:16 . drwxrwxr-x 31 506 users 4096 Apr 3 21:42 .. -rw-rw---- 1 565 users 6 Mar 28 05:37 .cvsignore -rw-rw---- 1 565 users 229 Mar 31 00:43 CHANGES.txt -rw-rw-r-- 1 565 users 13162 Mar 28 03:10 Expressions.py -rw-r--r-- 1 root root 13566 Apr 3 21:44 Expressions.pyc
I'm beginning to see a pattern; Try unpacking and installing Zope and ZPT as the user under which Zope will run, rather than as 'root'. This will fix the file ownership. You shouldn't untar as root, unless the tarball was created on the same system and you really want to keep the original ownership. Cheers, Evan @ digicool
Hi Evan, Pete, yes that seemed to be it. I changed everything to mode 755 and owner to the user zope was running under. Now I can create new Page Templates, cool. Evan, do you mind setting the permissions to: Files: world readable Directories: world readable and executable - Thanks, Holger Am Mittwoch, 4. April 2001 06:03 schrieb Evan Simpson:
From: "pete" <pete@bcmpweb.com>
drwxrwxr-x 7 565 pete 4096 Apr 4 08:16 . drwxrwxr-x 31 506 users 4096 Apr 3 21:42 .. -rw-rw---- 1 565 users 6 Mar 28 05:37 .cvsignore -rw-rw---- 1 565 users 229 Mar 31 00:43 CHANGES.txt -rw-rw-r-- 1 565 users 13162 Mar 28 03:10 Expressions.py -rw-r--r-- 1 root root 13566 Apr 3 21:44
Expressions.pyc
I'm beginning to see a pattern; Try unpacking and installing Zope and ZPT as the user under which Zope will run, rather than as 'root'. This will fix the file ownership. You shouldn't untar as root, unless the tarball was created on the same system and you really want to keep the original ownership.
Cheers,
Evan @ digicool
-- ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de
participants (6)
-
Andrew Williams -
Evan Simpson -
Holger Lehmann -
Jonathan (Listserv Account) -
pete -
Phil Harris