RE: [Zope] SmartSections question
Hey Stephan, Thanks for your response, very much appreciated. Here's what I found: - fresh install on win2k, Zope 2.4.3 (binary release, python 2.1, win32-x86) - TransparentFolders-0.3.2 - OrderedFolder 0.3.0 - Formulator 1.1.0 - SmartSections 0.3.0 Traceback (innermost last): File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\vanilla\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\vanilla\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in __call__ (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\Shared\DC\Scripts\Bindings.py, line 354, in _bindAndExec (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\App\special_dtml.py, line 244, in _exec (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\DocumentTemplate\DT_Util.py, line 231, in eval (Object: manage_form_title(this(), _, form_title=translate('Add Smart Section'), )) (Info: this) File <string>, line 0, in ? NameError: (see above) I was thinking of having a go with ZBabel & the CVS version soon, would feedback on my efforts be of use? I look forward to the next OrderedFolder release, nice one. Cheerio, Simon. -----Original Message----- From: Stephan Richter [mailto:srichter@cbu.edu] Sent: 22 January 2002 17:15 To: Simon Brogden; zope@zope.org Subject: Re: [Zope] SmartSections question
I played with the SmartSections online demo on Iuveno's site (http://demo.iuveno-net.de/iuveno/Products/SmartSection/Demo) and it looked pretty damn good. I can't get it working. Has anyone had success or have any pointers?
I've installed both Transparent & Ordered folder products as instructed with no errors. SmartSections appears in the "Add" drop-down but I get the traceback error below when I try to Add it.
It complains about not having "translate" connected to a database. I've got to create a d/b connection, no worries. Does anyone know any more detail about what tables or configuration are needed?
Weired. I think the error is wrong. The bug is actually in OrderedFolders 0.4.0. There was an undetected dependency on ZBabel, which is fixed in the current CVS version. Of course, you can also use OrderedFolder 0.3.0 or install ZBabel. :-) BTW, I will make a fixed OrderedFolder release soon. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management
On Wed, 2002-01-23 at 12:29, Simon Brogden wrote: hello people
Hey Stephan, Thanks for your response, very much appreciated. Here's what I found:
- fresh install on win2k, Zope 2.4.3 (binary release, python 2.1, win32-x86) - TransparentFolders-0.3.2 - OrderedFolder 0.3.0 - Formulator 1.1.0 - SmartSections 0.3.0
Traceback (innermost last): File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\vanilla\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\vanilla\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in __call__ (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\Shared\DC\Scripts\Bindings.py, line 354, in _bindAndExec (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\App\special_dtml.py, line 244, in _exec (Object: addSmartSection) File C:\PROGRA~1\vanilla\lib\python\DocumentTemplate\DT_Util.py, line 231, in eval (Object: manage_form_title(this(), _, form_title=translate('Add Smart Section'), )) (Info: this) File <string>, line 0, in ? NameError: (see above)
I was thinking of having a go with ZBabel & the CVS version soon, would feedback on my efforts be of use?
I look forward to the next OrderedFolder release, nice one.
This appears to be the same error that I receive here... Let's look src code: SmartSection.py ------------------------------------------- (...) try: from Products.ZBabel.Utils import translate except: from NoBabelTag import translate methods = { 'translate': translate } manage_addSmartSectionForm = DTMLFile('dtml/addSmartSection', globals()) (...) ------------------------------------------------------------ dtml/addSmartSection.dtml ---------------------------------- <dtml-var manage_page_header> <dtml-var "manage_form_title(this(), _, form_title=translate('Add Smart Section'), )"> (...) ------------------------------------------------------------ I haven't install ZBabel, so NoBabelTag must be used... NoBabelTag.py ---------------------------------------------- (...) def translate(self, text): return text (...) ------------------------------------------------------------ IMHO, translate function isn't in globals' namespace... But, how do I add it to namespace? Sorry for my english, I'm not native speaker... Any comments are welcome :) []s andré
participants (2)
-
André Camargo -
Simon Brogden