[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:

<HTML>
<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-with>

<dtml-if NoRedir>
<dtml-else>

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

</body>
</html>

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
Actorclass."


<!--
Traceback (innermost last):
  File E:\Zope\Test22\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  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
zpublisher_exception_hook
    (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
call_object
    (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
__call__
    (Object: Actorclass_add)
  File E:\Zope\Test22\lib\python\DocumentTemplate\DT_With.py, line 133, in
render
    (Object: Actorclass.createInObjectManager(REQUEST['Id'], REQUEST))
  File E:\Zope\Test22\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
    (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.

Brian

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