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-in "objectValues(['myclass'])">
  <dtml-if "(_['sequence-item'].id == 
    <dtml-call "REQUEST.set('new_goLiveDate',_['sequence-item'])">
   'title'              : REQUEST.form['title'],
   'summary'    : REQUEST.form['summary'],
   'text'               : REQUEST.form['text'] 

Let me know if you need more info.


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to