[Zope3-dev] Views on Views ;-)

Chris Withers chrisw@nipltd.com
Wed, 29 May 2002 07:28:24 +0100


Jim Fulton wrote:
> 
> - I really like the idea of explicitly defining the pages provided by
>   views and having the pages appear as pages on the content. This
>   makes page construction feel more natural, eliminating the extra URL
>   step for the view.

I may be missing something here but I'll shout up anyway ;-)

My impression of Zope 3 URLs was that it would let you do:

http://server/folder/something/view1;view/page_in_view.html
...which submits to the method:
http://server/folder/something/view1;view/method_in_view1
...which in turn returns to a second view of the object:
http://server/folder/something/view2;view/page_in_view.html

How would that look in the new way of doing things?
How would you distinguish between page_in_view from view1 and page_in_view from
view2?

>   Given this, I wonder if we should switch to the namespace syntax
>   used by XPath (and perl and C++ ;)::
> 
>      aFolder/view::grants.html

Hmmm... does that mean if I have:

myDoc/view::pdf.pdf

...when I click to download I get a file called view::pdf.pdf?

That in turn raises the question of what happened to the idea of:

myDoc.pdf 

meaning "give me the 'pdf' view of the 'myDoc' object?"

>   disallow ids/names that begin with identifier characters followed by
>   "::". I expect that this limitation would be acceptable.

I dunno, that sounds like its innocous enough that some day down he line we're
all gonna desperately need to do it ;-)

cheers,

Chris