[Zope] (no subject)

Brian Hickman mailto:bkkr@worldnet.att.net
Sat, 23 Sep 2000 14:13:08 -0700

I am trying to build my first ZClass.  Actorclass inherits from classes
Object Manager and Catalogue Aware.

In  Product Management at /Control_Panel / Products I created a product with
id="LegalObjects".  I have one ZClass in the product.  The ZClass has
Id="Actorclass", title="Actor Class for Legal Objects", metaname="Actor".

Actorclass_addform points to the dtml method "Actorclass_add" with the
following line <form action="Actorclass_add">.

The code for the dtml method "Actorclass_add" is as follows:

<HEAD><TITLE>Add Actorclass</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">

<dtml-with "Actorclass.createInObjectManager(REQUEST['Id'], REQUEST)">
    <dtml-call "propertysheets.Person.manage_editProperties(REQUEST)">

<dtml-if NoRedir>

<dtml-if DestinationURL>
    <dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')">
    <dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')">


The property sheet "Person" is a propertysheet of the ZClass "Actorclass".
It contains the same named variables submitted by Actorclass_addform.

I go to Zope's root, select "Actor" from the list of available objects.  The
Actorclass_addform comes up.  When I submit the completed form, Zope returns
an error report, informing me that Zope has encountered an error while
publishing this resource.

Error Type: NameError
Error Value: Actorclass

"This resource may be trying to reference a nonexistent object or variable

Traceback (innermost last):
  File E:\Zope\Test22\lib\python\ZPublisher\Publish.py, line 222, in
  File E:\Zope\Test22\lib\python\ZPublisher\Publish.py, line 187, in publish
  File E:\Zope\Test22\lib\python\Zope\__init__.py, line 221, in
    (Object: RoleManager)
  File E:\Zope\Test22\lib\python\ZPublisher\Publish.py, line 171, in publish
  File E:\Zope\Test22\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: Actorclass_add)
  File E:\Zope\Test22\lib\python\ZPublisher\Publish.py, line 112, in
    (Object: Actorclass_add)
  File E:\Zope\Test22\lib\python\OFS\DTMLMethod.py, line 167, in __call__
    (Object: Actorclass_add)
  File E:\Zope\Test22\lib\python\DocumentTemplate\DT_String.py, line 502, in
    (Object: Actorclass_add)
  File E:\Zope\Test22\lib\python\DocumentTemplate\DT_With.py, line 133, in
    (Object: Actorclass.createInObjectManager(REQUEST['Id'], REQUEST))
  File E:\Zope\Test22\lib\python\DocumentTemplate\DT_Util.py, line 337, in
    (Object: Actorclass.createInObjectManager(REQUEST['Id'], REQUEST))
    (Info: REQUEST)
  File &lt;string&gt;, line 0, in ?
NameError: (see above)


I am trying to follow the beehive GmbH Z Class tutorial Release 1.1.  After
many tries, I conclude I am missing something obvious that will prevent
success until it is identified and overcome.

I am using Zope version 2.2 under Windows NT 4.0, service pack 6.

Any suggestions on what I am doing wrong are appreciated.  I am sorry I can
not identify my mistake.

Thank you for any assistance.


The Law Office of Brian Hickman
P.O. Box 1985
Woodinville, WA 9802
Telephone: (425) 482-0300