[Zope] I think, it is a bug in acquisition

2000-08-16 Thread cuiod-tec Jens Gelhaar

Maybe I have found a situation, where images are not working or rather
acquisition.
For example, you create 2 documents and one image
  doc1  (DTML Document)
 contents: "document 1 dtml-var doc2
  doc2  (DTML Document)
 contents: "document 2 dtml-var image
  image (Image)
 contents: image
When you put everything in one folder and try to render doc1, everything
works fine. You get your image at the end. But if you put doc1 in a folder
below like
  doc2
  image
  subfolder
doc1
you get the appended error. When you remove the image call from doc2
everything works again. I checked this with JPicture - the same. Beside,
today I posted another mail with "[Zope] __call__ error message - I gave
up". In this situation I thought my coding was wrong because I wanted to
list all documents with
dtml-in "objectItems('DTML Document')"
dtml-var sequence-item
/dtml-in

Any Help?

Jens

Error Type: AttributeError
Error Value: __call__




Troubleshooting Suggestions

The 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 E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File E:\Programme\WebSite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File E:\Programme\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: doc1)
  File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: doc1)
  File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 171, in
__call__
(Object: doc1)
  File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: doc1)
  File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 167, in
__call__
(Object: doc2)
  File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: doc2)
AttributeError: (see above)




___
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 )




Re: [Zope] I think, it is a bug in acquisition

2000-08-16 Thread Rik Hoekstra





Maybe I have found a situation, where images are not working or rather
acquisition.
For example, you create 2 documents and one image
  doc1  (DTML Document)
 contents: "document 1 dtml-var doc2
  doc2  (DTML Document)
 contents: "document 2 dtml-var image
  image (Image)
 contents: image
When you put everything in one folder and try to render doc1, everything
works fine. You get your image at the end. But if you put doc1 in a folder
below like
  doc2
  image
  subfolder
doc1
you get the appended error.

When you remove the image call from doc2
everything works again.

You're probably right about this, or my Zen has left me. I did some testing
and it will work allright if you move doc2 to the subfolder. i wonder if it
is an acquisition bug, though, as it seems to work with other objects in the
same setup. Could this be an Image bug?

I checked this with JPicture - the same. Beside,
today I posted another mail with "[Zope] __call__ error message - I gave
up". In this situation I thought my coding was wrong because I wanted to
list all documents with
dtml-in "objectItems('DTML Document')"
dtml-var sequence-item
/dtml-in


try (untested)

dtml-in "objectItems(['DTML Document'])"
  dtml-var sequence-item
/dtml-in

the object items returns you a tuple with (id, object). Are you sure you
want that - it won't show on the html page

perhaps

dtml-in "objectIds(['DTML Document'])"
  dtml-var sequence-item
/dtml-in


or

dtml-in "objectValues(['DTML Document'])"
  dtml-var sequence-item
/dtml-in

will bring you more luck

Any Help?


hth

Rik



___
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 )