<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Leonardo Rochael Almeida wrote:
<blockquote
 cite="mid:4605e9410805081246p429e603bw1f899e672faa51a2@mail.gmail.com"
 type="cite">
  <pre wrap="">On Thu, May 8, 2008 at 4:39 PM, Jan-Wijbrand Kolman
<a class="moz-txt-link-rfc2396E" href="mailto:janwijbrand@gmail.com">&lt;janwijbrand@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Leonardo Rochael Almeida wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">On Thu, May 8, 2008 at 3:48 PM, Kevin Smith <a class="moz-txt-link-rfc2396E" href="mailto:kevin@mcweekly.com">&lt;kevin@mcweekly.com&gt;</a> wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">[...]
class ViewletBase(BrowserView):
 """Viewlet adapter class used in meta directive as a mixin class."""

 zope.interface.implements(interfaces.IViewlet)

 def __init__(self, context, request, view, manager):
     super(ViewletBase, self).__init__(context, request)
     self.__parent__ = view
     self.context = context
     self.request = request
     self.manager = manager

Looks like __parent__ is the view, and manager is the viewletmanager....
I'm
not sure the viewlet is actually accessible here at all.
        </pre>
      </blockquote>
      <pre wrap="">The viewlet is accessible as "self" :-) the view is
self.__parent__.__parent__, right?
      </pre>
    </blockquote>
    <pre wrap="">I would say, self.__parent__ is the view the viewlet was registered for.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Ah, yes, of course
  </pre>
</blockquote>
Looks like a viewlet wart. You and I expect the __parent__ of a viewlet
to be it's viewletmanager .&nbsp; That makes a good case for 'view' being
the view, 'viewlet' being the viewlet, and 'manager' being the
viewletmanager.<br>
<br>
<br>
<blockquote
 cite="mid:4605e9410805081246p429e603bw1f899e672faa51a2@mail.gmail.com"
 type="cite">
  <pre wrap="">_______________________________________________
Grok-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a>
<a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/grok-dev">http://mail.zope.org/mailman/listinfo/grok-dev</a>


  </pre>
</blockquote>
</body>
</html>