Re: [Archetypes-users] Problems, registering a view.[SOLVED]

3 views
Skip to first unread message

Victor Terán

unread,
Dec 9, 2010, 10:47:25 AM12/9/10
to David Glick, archetyp...@lists.sourceforge.net
Following the last instructios of David and a code that is making another friend that had a similar problem, the problem was solved. I just change the info of my monky patch in my browser/configure.zcml to this. I delete the attributes layer, allowed interfaces and allowed attributes. 

<configure
    xmlns:browser="http://namespaces.zope.org/browser"
    i18n_domain="cenditel.multimedia">

  <include package="plone.app.contentmenu" />

  <!-- -*- extra stuff goes here -*- -->

  <browser:page
      for="cenditel.multimedia.interfaces.audio.Iaudio"
      class=".audioview.audioView"
      name="audio_view"
      template="videoview-3.pt"
      permission="zope.Public"      
      />
  
<!--layer="cenditel.multimedia.interfaces.audio.IaudioSpecific"
allowed_interface=".audioview.IaudioView"
allowed_attributes="portal_state"-->

  <browser:page
      for="cenditel.multimedia.interfaces.video.Ivideo"
      class=".videoview.videoView"
      name="video_view"
      template="videoview.pt"
      permission="zope.Public"      
      />

<!--layer="cenditel.multimedia.interfaces.video.IvideoSpecific"
allowed_interface=".videoview.IvideoView"
allowed_attributes="portal_state"-->

</configure>


2010/12/9 Victor Terán <elal...@gmail.com>
does not work. I am gettig the same tracerback that yesterday. 

2010-12-09 09:47:47 INFO Zope Ready to handle requests
2010-12-09 09:51:19 ERROR Zope.SiteErrorLog 1291904479.480.621625932841 http://localhost:8080/justvideos/test/@@audio_view
Traceback (innermost last):
  Module ZPublisher.Publish, line 110, in publish
  Module ZPublisher.BaseRequest, line 506, in traverse
  Module ZPublisher.HTTPResponse, line 686, in debugError
NotFound:   <h2>Site Error</h2>
  <p>An error was encountered while publishing this resource.
  </p>
  <p><strong>Debugging Notice</strong></p>

  Zope has encountered a problem publishing your object.<p>
  <hr noshade="noshade"/>

  <p>Troubleshooting Suggestions</p>

  <ul>
  <li>The URL may be incorrect.</li>
  <li>The parameters passed to this resource may be incorrect.</li>
  <li>A resource that this resource relies on may be
      encountering an error.</li>
  </ul>

  <p>For more detailed information about the error, please
  refer to the error log.
  </p>

  <p>If the error persists please contact the site maintainer.
  Thank you for your patience.
  </p>

some other idea?, please help :-(

2010/12/8 David Glick <david...@groundwire.org>

Try setting the type's default view to audio_view without the @@
David

On 12/8/10 12:21 PM, Victor Terán wrote:
> Hello every one, I am traying to registering a simple view for a
> content type that I am making, but I am having some troubles whit
> that. I do not know why but when i saved the content type, I am
> getting a "does not exist error", checking in the terminal after
> delete the elements of error_log I am getting this tracerback.
>
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 119, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 42, in call_object
>   Module App.Management, line 87, in manage_workspace
> Redirect: http://localhost:8080/justvideos/manage_main
> 2010-12-08 15:25:34 ERROR Zope.SiteErrorLog
> 1291838134.670.00556198444575
> http://localhost:8080/justvideos/test/@@audio_view
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 110, in publish
>   Module ZPublisher.BaseRequest, line 506, in traverse
>   Module ZPublisher.HTTPResponse, line 686, in debugError
> NotFound:   <h2>Site Error</h2>
>   <p>An error was encountered while publishing this resource.
>   </p>
>   <p><strong>Debugging Notice</strong></p>
>
>   Zope has encountered a problem publishing your object.<p>
> Cannot locate object at:
> http://localhost:8080/justvideos/test/@@audio_view</p>
>   <hr noshade="noshade"/>
>
>   <p>Troubleshooting Suggestions</p>
>
>   <ul>
>   <li>The URL may be incorrect.</li>
>   <li>The parameters passed to this resource may be incorrect.</li>
>   <li>A resource that this resource relies on may be
>       encountering an error.</li>
>   </ul>
>
>   <p>For more detailed information about the error, please
>   refer to the error log.
>   </p>
>
>   <p>If the error persists please contact the site maintainer.
>   Thank you for your patience.
>   </p>
>
> I was searching in the Plone documentation and I found a reference to
> this, but the instruction about the use of "pdb.ser_trace()" in the
> __init__() method does not work for me. I am thinking that is a
> problem in the configuration of the zcml slugs. But I am not sure,
> otherwise I have two content types and the other is working
> perfectilly. I hope some one could help me,  I am go to paste next my
> /profiles/default/audio.xml http://pastebin.com/GrR1MNDB, my
> profiles/types.xml http://pastebin.com/yYmKCwKj, my browserlayer.xml
> http://pastebin.com/hfVWrC8t and the configure.zcml of the browser
> package http://pastebin.com/d7JFYYS6.
>
> Grettings,
>
> Víctor Teran

----------
David Glick
 Web Developer
 david...@groundwire.org
 206.286.1235x32

Groundwire: You Are Connected
 http://groundwire.org

Online tools and strategies for the environmental movement.  Sign up for Groundwire News!
 http://groundwire.org/email-capture

Check out our 2010 Website Benchmarks Report. How do you stack up?
 http://groundwire.org/resources/articles/2010-website-benchmarks-report



Reply all
Reply to author
Forward
0 new messages