<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Verdana">Hey,<br>
<br>
As you'll hear shortly, ZClasses &amp; DTML are the old way to do
things, and are not highly recommended, at this point.&nbsp;&nbsp; Having said
that, I've had success using them.<br>
<br>
To Add a ZClass into anything folderish, I've used...<br>
<br>
&lt;dtml-call
"RESPONSE.redirect('manage_addProduct/WWAudioClip/WWAudioClip_factory')"&gt;<br>
<br>
where WWAudioClip was the name of the Product and its ZClass<br>
<br>
I place this in a DTML Method that is at the point I wish the ZClass
object to be created, a target if you wish.&nbsp; Works fine.<br>
<br>
This will call the "Add" method in your ZClass.<br>
<br>
<br>
To Add a regular file object somewhere, I've used..<br>
<br>
&lt;dtml-call "this().manage_addFile(File_object_ID,
File_object_contents, File_object_title, content_type='audio/mpeg')"&gt;<br>
<br>
Parameters Zope ID to be set, Contents (string, whatever), and Zope
Title, and mime-type (optional)<br>
<br>
Google "Zope manage_addFile" for more info<br>
<br>
HTH,<br>
<br>
Jon&nbsp;<br>
</font></font><br>
<br>
Allen Huang wrote:
<blockquote
 cite="mid20051026161444.75866.qmail@web30205.mail.mud.yahoo.com"
 type="cite">
  <div>I want to create a empty file in a ZClass object when I first
created the ZClass object. How do I do that using DTML??</div>
  <p> </p>
  <hr size="1"> <a
 href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo!
FareChase - Search multiple travel sites in one click.</a>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Zope maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a>
<a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a>
**   No cross posts or HTML encoding!  **
(Related lists - 
 <a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a>
 <a class="moz-txt-link-freetext" href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</a> )
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Jonathan Cyr
<a class="moz-txt-link-abbreviated" href="mailto:cyrj@cyr.info">cyrj@cyr.info</a></pre>
</body>
</html>