Re: [Zope-dev] Zope 2.4.2 Error

2001-10-23 Thread Matthew T. Kromer

E. Seifert wrote:

Hi list,

I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
following traceback:

Traceback (innermost last):
[...]



(Object: standard_html_header)
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: standard_site_menue)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in
renderwob
(Object: objectValues(['SimpleNav Element']))
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: ab)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__
(Object: render)
KeyError: validate

Is there someone who can help me?

TIA
Erich


Hi Erich,
 
Sorry it took me so long to read Zope-dev and see this question.

There's a section in lib/python/OFS/DTMLMethod.py which was changed in 
2.4.2 to accelerate DTML security processing, but it doesn't look like a 
subsequent patch to make it handle reentry was routed to 2.4 yet. 
 (Actually, I think it's waiting in a dev branch, because it's not on 
the trunk yet either.)  For the time being, what you can do is comment 
out both lines in DTMLMethod.py which read

self.__dict__['validate'] = security.DTMLValidate

and

   del self.__dict__['validate']

It looks like the renderable product you're using is causing the 
DTMLMethod to be reentered, which is tripping out this bug (ie you can 
only delete validate once -- the second time it fails).  


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] Zope 2.4.2 Error

2001-10-20 Thread E. Seifert

Thanks Andreas,

 -Original Message-
 From: Andreas Jung [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, October 20, 2001 12:07 AM
 To: E. Seifert; [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] Zope 2.4.2 Error


 Jup, I assume you are using some 3rd party products that
 still use the old SearchIndex stuff. Nothing to worry about
 -just a warning.


But what's about this error then (it's not just a warning)? Does it perhaps
relate to the Renderable Product?

TIA
Erich

   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf
   Of E. Seifert
   Sent: Friday, October 19, 2001 11:01 PM
   To: [EMAIL PROTECTED]
   Subject: [Zope-dev] Zope 2.4.2 Error
  
  
   Hi list,
  
   I just installed the 2.4.2 update over my Linux Zope 2.4.1
 and I get the
   following traceback:
  
   Traceback (innermost last):
 File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
   publish_module
 File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
   publish
 File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
   zpublisher_exception_hook
   (Object: de)
 File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
   publish
 File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160,
   in mapply
   (Object: index_html)
 File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
   call_object
   (Object: index_html)
 File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199,
   in __call__
   (Object: index_html)
 File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
 546,
   in __call__
   (Object: index_html)
 File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in
 __call__
   (Object: standard_html_header)
 File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
 546,
   in __call__
   (Object: standard_html_header)
 File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
 line
   17, in __str__
   (Object: standard_site_menue)
 File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in
 __call__
   (Object: render)
 File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
 546,
   in __call__
   (Object: render)
 File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770,
 in
   renderwob
   (Object: objectValues(['SimpleNav Element']))
 File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
 line
   17, in __str__
   (Object: ab)
 File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in
 __call__
   (Object: render)
   KeyError: validate
  
   Is there someone who can help me?
  
   TIA
   Erich
  
  
   ___
   Zope-Dev maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope-dev
   **  No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )
  
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] Zope 2.4.2 Error

2001-10-20 Thread E. Seifert

Hi Andreas,

thanks again for your answer.

 Why do you say it is an error. It is a deprecation warning.
 This warning framework is also used in Python to warn
 about the usage of deprecated features that will change or
 go away in a later release. But it is not an error and does
 not limit your functionality.

I'm not talking about the deprecation warning but about the error message I
received after installing the update (it was in the citation - I should have
mentioned it more explicitly):

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
(Object: de)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199, in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__
(Object: standard_html_header)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: standard_html_header)
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: standard_site_menue)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in
renderwob
(Object: objectValues(['SimpleNav Element']))
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: ab)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__
(Object: render)
KeyError: validate

Bye
Erich


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] Zope 2.4.2 Error

2001-10-19 Thread E. Seifert

Oh, I forgot to mention that I also get the following message after starting
Zope up the first time:

snippet
/usr/local/zope/lib/python/SearchIndex/__init__.py:9
1: DeprecationWarning: The usage of the SearchIndex package is deprecated
since
Zope 2.4.
This package is only kept for backwards compatibility for a while
and will go away in a future release.

Please use instead the re-factored modules in Products/PluginIndexes.

  warnings.warn(The usage of the SearchIndex package is deprecated since \
/snippet

Erich


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
 Of E. Seifert
 Sent: Friday, October 19, 2001 11:01 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope-dev] Zope 2.4.2 Error


 Hi list,

 I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
 following traceback:

 Traceback (innermost last):
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
 publish_module
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
 zpublisher_exception_hook
 (Object: de)
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: index_html)
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: index_html)
   File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199,
 in __call__
 (Object: index_html)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: index_html)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__
 (Object: standard_html_header)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: standard_html_header)
   File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
 17, in __str__
 (Object: standard_site_menue)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__
 (Object: render)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: render)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in
 renderwob
 (Object: objectValues(['SimpleNav Element']))
   File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
 17, in __str__
 (Object: ab)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__
 (Object: render)
 KeyError: validate

 Is there someone who can help me?

 TIA
 Erich


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.4.2 Error

2001-10-19 Thread Andreas Jung

Jup, I assume you are using some 3rd party products that
still use the old SearchIndex stuff. Nothing to worry about
-just a warning.

Andreas
- Original Message -
From: E. Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 17:31
Subject: RE: [Zope-dev] Zope 2.4.2 Error


 Oh, I forgot to mention that I also get the following message after
starting
 Zope up the first time:

 snippet
 /usr/local/zope/lib/python/SearchIndex/__init__.py:9
 1: DeprecationWarning: The usage of the SearchIndex package is deprecated
 since
 Zope 2.4.
 This package is only kept for backwards compatibility for a while
 and will go away in a future release.

 Please use instead the re-factored modules in Products/PluginIndexes.

   warnings.warn(The usage of the SearchIndex package is deprecated since
\
 /snippet

 Erich


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
  Of E. Seifert
  Sent: Friday, October 19, 2001 11:01 PM
  To: [EMAIL PROTECTED]
  Subject: [Zope-dev] Zope 2.4.2 Error
 
 
  Hi list,
 
  I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
  following traceback:
 
  Traceback (innermost last):
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
  publish_module
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
  publish
File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
  zpublisher_exception_hook
  (Object: de)
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
  publish
File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160,
  in mapply
  (Object: index_html)
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
  call_object
  (Object: index_html)
File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199,
  in __call__
  (Object: index_html)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: index_html)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in
__call__
  (Object: standard_html_header)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: standard_html_header)
File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
line
  17, in __str__
  (Object: standard_site_menue)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in
__call__
  (Object: render)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: render)
File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770,
in
  renderwob
  (Object: objectValues(['SimpleNav Element']))
File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
line
  17, in __str__
  (Object: ab)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in
__call__
  (Object: render)
  KeyError: validate
 
  Is there someone who can help me?
 
  TIA
  Erich
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )