[Zope] ZClass question?

Webmaster webmaster@ohiohistory.org
Tue, 27 Jun 2000 10:37:24 -0400


I am running 2.2.0b2 on a RH linux and have created a simple ZClass. All of
my modified constructor objects work perfect however when I created a
separate dtml method to add instances I get some weird errors.

First when I try and create a new instance remotely I get a zope error
"unauthorized" no matter what username and password I type. If I try and
create a new instance locally on the same box (or within the internal
network) I get a KeyError and then at the bottom of the same page is a
second included page with a 404 file not found error. If I change the method
from "post" to "get" so I can see if the new_goLiveDate is being passed I
get the "unauthorized" error.

Any idea what is going on?
Here is my "add_instance_html" code.

<dtml-call "REQUEST.set('goLiveDate',REQUEST.form['new_goLiveDate'])">
<dtml-with "manage_addProduct['myZClass']"> 
 <dtml-call "myZClass_add(_.None,_, NoRedir=1)">
</dtml-with>

<dtml-in "objectValues(['myclass'])">
  <dtml-if "(_['sequence-item'].id == 
          REQUEST.form['new_goLiveDate'])">
    <dtml-call "REQUEST.set('new_goLiveDate',_['sequence-item'])">
  </dtml-if>
</dtml-in>
<dtml-call
"_['new_goLiveDate'].propertysheets.myZClass_info.manage_changeProperties({
   'title'		: REQUEST.form['title'],
   'summary'	: REQUEST.form['summary'],
   'text'		: REQUEST.form['text'] 
})">

Let me know if you need more info.

-Jamey