Fwd: Re: [Zope3-dev] Bug: defaultView registry majorly broken

Stephan Richter srichter@cbu.edu
Wed, 13 Feb 2002 09:51:50 -0600


And this one...

I don't understand why it works for Folder, but not for my objects. I do 
exactly the same.

Regards,
Stephan
>X-Sender: srichter@mercury-1.cbu.edu
>X-Mailer: QUALCOMM Windows Eudora Version 5.1
>To: Zope3-dev@zope.org
>From: Stephan Richter <srichter@cbu.edu>
>Subject: Re: [Zope3-dev] Bug: defaultView registry majorly broken
>Sender: zope3-dev-admin@zope.org
>X-BeenThere: zope3-dev@zope.org
>X-Mailman-Version: 2.0.8 (101270)
>List-Help: <mailto:zope3-dev-request@zope.org?subject=help>
>List-Post: <mailto:zope3-dev@zope.org>
>List-Subscribe: <http://lists.zope.org/mailman/listinfo/zope3-dev>,
>         <mailto:zope3-dev-request@zope.org?subject=subscribe>
>List-Id: Discuss development of and for Zope3 <zope3-dev.zope.org>
>List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope3-dev>,
>         <mailto:zope3-dev-request@zope.org?subject=unsubscribe>
>List-Archive: <http://lists.zope.org/pipermail/zope3-dev/>
>Date: Wed, 13 Feb 2002 09:19:11 -0600
>
>At 01:19 AM 2/13/2002 -0600, Stephan Richter wrote:
>>Hey everyone,
>>
>>I tried to fix the default view registry tonight, but I finally gave up, 
>>sinc eI think there is something conceptionally broken. For Folder the 
>>default view works, because it is a PageTemplateFile. However for Image 
>>and File nothing works. I found that in Traversers.py default_*** the 
>>object tries to lookup its default view, but fails since the registry is 
>>empty. I was then debugging the configuration code and I could not detect 
>>setDefaultView being called anywhere.
>
>I think I found the bad one:
>
>in Zope/Publisher/Browser/metaConfigure in the method defaultView(), you 
>register the view twice with provideView, but I think one time 
>setDefaultView needs to be called. Can someone who knows better look into this?
>
>Regards,
>Stephan
>
>--
>Stephan Richter
>CBU - Physics and Chemistry Student
>Web2k - Web Design/Development & Technical Project Management
>
>
>_______________________________________________
>Zope3-dev mailing list
>Zope3-dev@zope.org
>http://lists.zope.org/mailman/listinfo/zope3-dev

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management