Re: [Zope] container and context for folderish objects

2005-05-11 Thread Milos Prudek
Milos Prudek wrote:
I created a very simple folderish product. Everything works fine. But I 
 was surprised that "context" and "container" seem to behave differently 
for folderish object than for normal Folder.
To answer my own question: I misunderstood what container does. Desired 
behaviour can be obtained via



--
Milos Prudek
http://www.spoxdesign.com - your web usability testing
___
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] container and context for folderish objects

2005-05-10 Thread Milos Prudek
I created a very simple folderish product. Everything works fine. But I 
 was surprised that "context" and "container" seem to behave 
differently for folderish object than for normal Folder.

Here's the problem: my product's instance "a" contains a DTML Document 
"doc" and some photos "img1", "img2". A simple ZPT "lst" queries object ids:




I need to call this ZPT as follows:
/a/doc/lst
and I expect to get a list of objects contained in "a". The problem is 
that lst does not provide that. The first line shows nothing, and the 
second line shows content of the parent Folder! I would have expected 
that "container" is the "a", the folderish object. Why does it not work?

I \know that I can  get my list by calling /a/lst, but unfortunately I 
cannot do that.

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