title: Zope page template metadata not being read in Products
body: <p>My application runs on Zope 2.12.19 and Python 2.6.5.</p>
  
  <p>There is a page template file <code>pagetemplate.pt</code> with access restrictions defined in the <code>pagetemplate.pt.metadata</code> file. These access restrictions apply and work correctly for all web pages except for the ones in Zope Products.</p>
  
  <p>The contents of the <code>.metadata</code> file are below:</p>
  
  <pre><code>[default]
  title=
  
  [security]
  View=0:Authenticated,Manager,Owner,User
  Access contents information=0:Authenticated,Manager,Owner,User
  </code></pre>
  
  <p>For example, there is a Zope Product that lists all the users in the system and this uses the above page template. The user can access this page anonymously without logging in which implies that the metadata file is not being read.</p>
  
  <p>But to access any other page outside Products, the application forces the user to log in.
  Is there a problem with Products reading <code>.metadata</code> files?</p>
  
  <p>FYI - I do not use ZODB... instead everything (source code) is on the file system.</p>
  
  <p>The content of <code>configure.zcml</code> is below.</p>
  
  <pre><code>&lt;configure
      xmlns="http://namespaces.zope.org/zope"
      xmlns:five="http://namespaces.zope.org/five"
      xmlns:browser="http://namespaces.zope.org/browser"
      i18n_domain="AMSPermissions"&gt;
  
      &lt;!-- the users manage page --&gt;
      &lt;browser:page
      for="OFS.interfaces.IFolder"
      name="manage-users"
      template="standard_template.pt"
      class=".users.UsersView"
      permission="zope2.View"
      /&gt;
  
      &lt;!-- permissions checker --&gt;
      &lt;browser:page
      for="OFS.interfaces.IFolder"
      name="perm_check"
      class=".permissions.PermissionsCheckerView"
      permission="zope2.View"
      allowed_interface=".interfaces.IPermissionsCheckerView"
      /&gt;
  &lt;/configure&gt;.
  </code></pre>
  
  <p>Also, below is the sample code from the Product.</p>
  
  <pre><code>&lt;html metal:use-macro="context/standard_template/macros/page"&gt;
    &lt;metal:block fill-slot="heading"&gt;Users Overview&lt;/metal:block&gt;
    &lt;metal:block fill-slot="body" tal:define="users view/get_users"&gt;
       ---------Some code--------
    &lt;/metal:block&gt;
  &lt;/html&gt;
  </code></pre>