[Zope] Epoz 0.7.4 install in CMF 1.3.2

Wilson, Derek dwilson at abrazohealth.com
Tue Jan 6 15:02:19 EST 2004


Ok, I got farther... changing the document_edit_form to this:
<dtml-var standard_html_header>
<div class="Desktop">
<dtml-if message>
 <p>&dtml-message;</p>
 <hr>
</dtml-if>
<div class="Document">
<h2>Edit &dtml-getId;</h2>
<form action="document_edit" method="post"
enctype="multipart/form-data">
 <input type="hidden" name="SafetyBelt" value="&dtml-SafetyBelt;">
<table class="FormLayout">
 <tr>
  <th>
    Title
  </th>
  <td>
   <dtml-var Title>
  </td>
 </tr>
 
 <tr>
  <th>
    Description
  </th>
  <td>
   <dtml-var description>
  </td>
 </tr>
 
 <tr>
  <th>
   Format
  </th>
  <td>
   <input type="radio" name="text_format" value="structured-text"
          <dtml-if "text_format=='structured-text'">checked</dtml-if>
          id="cb_structuredtext" />
          <label for="cb_structuredtext">structured-text</label>
   <input type="radio" name="text_format" value="plain"
          <dtml-if "text_format=='plain'">checked</dtml-if>
   id="cb_html" />
   <label for="cb_html">plain text</label>
   <input type="radio" name="text_format" value="html"
          <dtml-if "text_format=='html'">checked</dtml-if>
   id="cb_html" />
   <label for="cb_html">html</label>
  </td>
 </tr>
 
 <tr>
  <th> Upload </th>
  <td>
   <input type="file" name="file" size="25">
  </td>
 </tr>
<tr>
  <dtml-if html>
    <dtml-call "manage_edit('', content_type='text/html',
filedata=_.str(html))">
  </dtml-if>
 
  <p><a href="<dtml-var URL1>">View Document</a></p>
 
  <form action="<dtml-var URL>" method="post">
   <dtml-var "Epoz('html:string', data=this().text,
                           toolbox='/toolbox',
                           lang='en',
                           style='width: 620px; height: 250px; border:
1px solid #000000;')">
   <input type="submit" name="submit" value=" Save Changes " >
  </form>
</tr>
 <tr>
  <td> <br> </td>
  <td>
    <input type="submit" name="choice" value=" Change ">
    <input type="submit" name="choice" value=" Change and View ">
  </td>
 </tr>
</table>
</form>
 
</div>
 
</div>
 
<dtml-var standard_html_footer>

Shows the form, as expected, but now I get:
 
Invalid request
The parameter, text, was omitted from the request. 
 
So, any ideas?
 
Thanks,
Derek Wilson

	-----Original Message-----
	From: Wilson, Derek 
	Sent: Tuesday, January 06, 2004 12:44 PM
	To: zope at zope.org
	Subject: [Zope] Epoz 0.7.4 install in CMF 1.3.2
	
	
	Hello all... I don't know if this is the right place to ask or
not, but here goes... I'm trying to install Epoz as the default document
editor for my CMF 1.3.2 site (no Plone). I tried changing the
"document_edit_form" in the skins to what it says in the readme... (as
below)
	 
	To start working with Epoz, simply create a DTML-Method with
	 id=edit::
	 
	  <dtml-var standard_html_header>
	  <dtml-if html>
	    <dtml-call "manage_edit('', content_type='text/html',
filedata=_.str(html))">
	  </dtml-if>
	 
	  <p><a href="<dtml-var URL1>">View Document</a></p>
	 
	  <form action="<dtml-var URL>" method="post">
	   <dtml-var "Epoz('html:string', data=this().data,
	                           toolbox='/toolbox',
	                           lang='en',
	                           style='width: 620px; height: 250px;
border: 1px solid #000000;')">
	   <input type="submit" name="submit" value=" Save Changes " >
	  </form>
	  <dtml-var standard_html_footer>
	 
	However, when I do that, I get the error:
	 
	Zope Error
	Zope has encountered an error while publishing this resource.
	Error Type: AttributeError
	Error Value: data
	
	
	Troubleshooting Suggestions
	The URL may be incorrect.
	The parameters passed to this resource may be incorrect.
	A resource that this resource relies on may be encountering an
error.
	For more detailed information about the error, please refer to
the HTML source for this page. 
	If the error persists please contact the site maintainer. Thank
you for your patience. 
	 
	Has anyone done this successfully?
	 
	 
	
	Thanks,
	 
	Derek Wilson
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040106/b6bf064f/attachment.html


More information about the Zope mailing list