[Zope] How to ensure modified script in external Methods come into use...
hi, I have modified the external medthod. I want to know how to test whether the modified method is being used Is it by default that the modified script is used or i have to do something to see that the changed script is being used .. I mean the external method is in the Zope/Extensions directory .. wishes, suhail ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] regarding tal:on-error
hi, I am thinking of using tal:on-error to catch an exception and traverse to a default pagetemplate. could some one please help me regarding the code please clarify if the following statement is valid. div tal:on-error= pa href=error tal:attributes=href python: container.error.absolute_url()/a/p/div i believe the above is the wrong form of implementation. I actually need to traverse to container.error.absolute_url(). please could some one give me the details regarding how to traverse the the following url if the error has occured in a block of code... kindly reply... . ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] using tal:on-error to display a html page..
Hi, I would like to display a Html page if an exception occcurs using tal:on-error... if possible please let me know how it should be done..or else please tell me an another provedure to do the error handling... I would like to revert to a page if an error occurs. thanks in advance.. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] how to call a new Html page from the phyton script...
hi i would like to call a new page template i.e to change control to an html page fromt the phyton script... please suggest me an method.. thank you .. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] regarding tal:on-error
i need to catch an exception in a HTML page and need to pass the contol an another page in the container object. please suggest me how to do it... thankyou. On Mon, Jun 30, 2008 at 3:52 PM, Andreas Jung [EMAIL PROTECTED] wrote: --On 30. Juni 2008 13:23:53 +0100 suhail shaik [EMAIL PROTECTED] wrote: hi, I am thinking of using tal:on-error to catch an exception and traverse to a default pagetemplate. could some one please help me regarding the code please clarify if the following statement is valid. div tal:on-error= pa href=error tal:attributes=href python: container.error.absolute_url()/a/p/div tal:on-error in general is evil. Don't use it. Afaik it eats even ZODB conflict-errors which might cause some trouble. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] index error, list index out of range
some one please help me regarding why the index error is occuring... i find the application works fine for a few values of textidx but only for a few distinct values this error occurs kindly help me Traceback (innermost last): - Module ZPublisher.Publish, line 119, in publish - Module ZPublisher.mapply, line 88, in mapply - Module ZPublisher.Publish, line 42, in call_object - Module Shared.DC.Scripts.Bindings, line 313, in __call__ - Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec - Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec - Module Products.PageTemplates.ZopePageTemplate, line 426, in pt_render - Module Products.PageTemplates.PageTemplate, line 89, in pt_render - Module zope.pagetemplate.pagetemplate, line 117, in pt_render - Module zope.tal.talinterpreter, line 271, in __call__ - Module zope.tal.talinterpreter, line 346, in interpret - Module zope.tal.talinterpreter, line 824, in do_loop_tal - Module zope.tal.talinterpreter, line 346, in interpret - Module zope.tal.talinterpreter, line 536, in do_optTag_tal - Module zope.tal.talinterpreter, line 521, in do_optTag - Module zope.tal.talinterpreter, line 516, in no_tag - Module zope.tal.talinterpreter, line 346, in interpret - Module zope.tal.talinterpreter, line 590, in do_setGlobal_tal - Module zope.tales.tales, line 696, in evaluate *URL: /news/SearchReport* *Line 79, Column 2* *Expression: PythonExpr container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1], kfMax)* *Names:* {'container': Folder at /news, 'context': Folder at /news, 'default': object object at 0xb7d62528, 'here': Folder at /news, 'loop': {u'result': Products.PageTemplates.Expressions.PathIterator object at 0x1993cfcc}, 'nothing': None, 'options': {'args': ()}, 'repeat': Products.PageTemplates.Expressions.SafeMapping object at 0x186ab80c, 'request': HTTPRequest, URL=http://kmi-vid01.open.ac.uk:8080/news/SearchReport, 'root': Application at , 'template': ZopePageTemplate at /news/SearchReport, 'traverse_subpath': [], 'user': User 'mmis'} - Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__ __traceback_info__: container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1], kfMax) - Module PythonExpr, line 1, in expression - Module Shared.DC.Scripts.Bindings, line 313, in __call__ - Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec - Module Products.PythonScripts.PythonScript, line 327, in _exec - Module None, line 26, in getChapterInfo *PythonScript at /news/getChapterInfo used for /news/data/20071124* *Line 26* - Module AccessControl.ZopeGuards, line 67, in guarded_getitem IndexError: list index out of range ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] re: help required in [result.data_record_id_]
Hi, I am a novice in zope. i have to debug a program where i get the key value error, traversal error. a lil info from the error log. Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__ - __traceback_info__: here.getStoryNumber(here.catalog.data.getobject(result.data_record_id_, REQUEST=None).getId()) Module PythonExpr, line 1, in expression Module Products.ZCatalog.ZCatalog, line 590, in getobject Module OFS.Traversable, line 284, in unrestrictedTraverse - __traceback_info__: (['20071122_9.txt', 'stories', 'text'], '20071122') KeyError: '20071122' i am unable to understand why this error is occuring . at the expression. PythonExpr here.getStoryNumber(here.catalog.data.getobject(result.data_record_id_, REQUEST=None).getId()) i would be happy if some one could give me a sense of direction and give a brief idea where the error could have occured and how i should approach. thanks in advance. suhail ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )