[Zope-CMF] Trouble adding an Event

Jeff jeff@thecolemans.ws
Mon, 4 Jun 2001 15:50:37 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0120_01C0ED0E.19802F10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I don't know if anyone has reported this.
I just did a install of beta 1.1 and ran the calendar install script =
(Zope/Zope 2.3.2 (binary release, python 1.5.2, win32-x86) =
ZServer/1.1b1).
When adding a new event I got the following:

An exception occurred in a DTML method or document.=20

Error type: NameError
Error value: portal_metadata=20

Innermost method: /ROOThiprivacy/event_edit_form=20
Name not found or not allowed: portal_metadata=20

      Namespace Stack (innermost entry at top) =20
      ID Type Contains name?=20
      (N/A)  mapping with keys: ['document_id', 'document_title']  No =20
      event1  InstanceDict  Unauthorized: User editor is not allowed to =
access /ROOThiprivacy/portal_metadata, which is contained in =
/ROOThiprivacy/Members/editor/event1. The user, whose roles are =
('Member', 'Reviewer'), would need to have one of the following roles: =
('Manager',). =20
      REQUEST  ZPublisher.HTTPRequest.HTTPRequest  No =20

Source of /ROOThiprivacy/event_edit_form with fault:

<snip>

fault line

<dtml-let contentSubject=3DSubject
             allowedSubjects=3D"portal_metadata.listAllowedSubjects( =
this() )">
  =20

<snip>


------=_NextPart_000_0120_01C0ED0E.19802F10
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I don't know if anyone has reported=20
this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I just did a install of beta 1.1 and =
ran the=20
calendar install script (<FONT face=3D"Times New Roman" =
size=3D3>Zope/Zope 2.3.2=20
(binary release, python 1.5.2, win32-x86) =
ZServer/1.1b1)</FONT>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When adding a new event I got the=20
following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<P>An exception occurred in a DTML method or document. </P>
<P>Error type: <STRONG>NameError</STRONG><BR>Error value:=20
<STRONG>portal_metadata</STRONG> </P>
<P>Innermost method: <STRONG>/ROOThiprivacy/event_edit_form</STRONG> =
<BR>Name=20
not found or not allowed: <STRONG><FONT=20
color=3Dred>portal_metadata</FONT></STRONG> </P>
<TABLE bgColor=3D#cccccc border=3D1>
  <TBODY>
  <TR>
    <TH colSpan=3D3>Namespace Stack (innermost entry at top) </TH></TR>
  <TR>
    <TH>ID</TH>
    <TH>Type</TH>
    <TH>Contains name?</TH></TR>
  <TR>
    <TD>(N/A)&nbsp;</TD>
    <TD>mapping with keys: ['document_id', 'document_title']&nbsp;</TD>
    <TD>No&nbsp;</TD></TR>
  <TR>
    <TD>event1&nbsp;</TD>
    <TD>InstanceDict&nbsp;</TD>
    <TD>Unauthorized: User editor is not allowed to access=20
      /ROOThiprivacy/portal_metadata, which is contained in=20
      /ROOThiprivacy/Members/editor/event1. The user, whose roles are =
('Member',=20
      'Reviewer'), would need to have one of the following roles:=20
    ('Manager',).&nbsp;</TD></TR>
  <TR>
    <TD>REQUEST&nbsp;</TD>
    <TD>ZPublisher.HTTPRequest.HTTPRequest&nbsp;</TD>
    <TD>No&nbsp;</TD></TR></TBODY></TABLE>
<P><STRONG>Source of <A=20
href=3D"http://localhost:8080/ROOThiprivacy/event_edit_form/manage_main">=
<STRONG>/ROOThiprivacy/event_edit_form</STRONG></A>=20
with <A=20
href=3D"http://localhost:8080/ROOThiprivacy/Members/editor/event1/event_e=
dit_form#fault">fault</A>:</STRONG></P>
<P><STRONG>&lt;snip&gt;</STRONG></P>
<P><STRONG>fault line</STRONG></P>
<P><A name=3Dfault><FONT color=3Dred><STRONG>&lt;dtml-let=20
contentSubject=3DSubject<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
allowedSubjects=3D"portal_metadata.listAllowedSubjects( this()=20
)"&gt;</STRONG></FONT><BR>&nbsp;&nbsp; </A></P>
<P><FONT face=3DArial =
size=3D2>&lt;snip&gt;</FONT></P></DIV></BODY></HTML>

------=_NextPart_000_0120_01C0ED0E.19802F10--