Re: [Zope] dtml document bug

2000-10-30 Thread Dieter Maurer

Dmitry Slusarchuk writes:
  I'm new to Zope development but I have already encountered such a problem:
  dtml-var myimage from dtml document generates the following:
  Zope Error
  Zope has encountered an error while publishing this resource. 
  
  Error Type: AttributeError
  Error Value: __call__
  
  this problem disappears when I do smth like dtml-var myimage
  from dtml method. what should I do?
  
  In addition 
  I run Zope ver. 2.2.2 and Python 1.5.2 under Win98.
This looks like the "cDocumentTemplate/Acquisition" bug
(see the locator (URL:http://classic.zope.org:8080/Locator)
for a description).

The problem usually occurs in the context of a

dtml-with folder

You can work around it by using

dtml-with "PARENTS[0].folder"

instead.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] dtml document bug

2000-10-20 Thread Dmitry Slusarchuk

I'm new to Zope development but I have already encountered such a problem:
dtml-var myimage from dtml document generates the following:
Zope Error
Zope has encountered an error while publishing this resource. 

Error Type: AttributeError
Error Value: __call__

this problem disappears when I do smth like dtml-var myimage
from dtml method. what should I do?

In addition 
I run Zope ver. 2.2.2 and Python 1.5.2 under Win98.

Thanks to ev'body for a HELP!

___
Zope maillist  -  [EMAIL PROTECTED]
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 )