Hi all...

  In my adventures to get "singing & dancing" working in my repoze.zope2
instance my first problem was than repoze doesn't obey defaultView
directive...

from configure.zcml
---
  <defaultView
      for="collective.dancing.channel.IPortalNewsletters"
      name="index_html"
      />

  <page
      name="index_html"
      for="collective.dancing.channel.IPortalNewsletters"
      class=".controlpanel.ControlPanelView"
      permission="dancing.ManageNewsletters"
      />
---

from channel.py
---
class IPortalNewsletters(interface.Interface):
    pass

class PortalNewsletters(OFS.Folder.Folder):
    interface.implements(IPortalNewsletters)

    def Title(self):
        return u"Newsletters"
---

so the defaultView for a PortalNewsletters object should be index_html
(ControlPanelView)...

that works on zope2, but doesn't work on repoze.zope2... I only see the
view if explicitly indicate it in the
url, ...portal_newsletters/index_html

so, whats wrong? anybody faced this problem before?


        Saludos...

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to