<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here's a code snippet from one of our applications 
(you should be able to figure out what you need from this example):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;dtml-with 
UserData&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-with 
"manage_addProduct['TCAide']"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;dtml-with "TCAUsers.createInObjectManager(REQUEST['clientid'], 
REQUEST)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;dtml-call 
"propertysheets.TCAUsersPS.manage_changeProperties(REQUEST)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;dtml-call reindex_object&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/dtml-with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/dtml-with&gt;<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>UserData is a folder where new zclass instances are 
stored.</FONT></DIV>
<DIV><FONT face=Arial size=2>TCAUsers is our zclass</FONT></DIV>
<DIV><FONT face=Arial size=2>TCAUsersPS is the common instance propertysheet for 
the zclass</FONT></DIV>
<DIV><FONT face=Arial size=2>All of the property fields/values are stored in 
REQUEST (as a result of a user filling in an html form)</FONT></DIV>
<DIV><FONT face=Arial size=2>We call reindex_object because our zclasses are 
'catalog aware' and we are reindexing the catalog.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>hth</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=swapp0@yahoo.com href="mailto:swapp0@yahoo.com">Allen Huang</A> 
</DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org 
  href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 27, 2005 12:07 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] use combined 
  propertysheet variables to form a file name fora zObject</DIV>
  <DIV><BR></DIV>
  <DIV>I made a propertysheet for a customed zclass and I wish to use some 
  variables and combine them to form a name for my newed created object.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Say I have variable </DIV>
  <DIV>a = 'name a'</DIV>
  <DIV>b = 'value b'</DIV>
  <DIV>c = 'string c'</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>what do I encode in my dtml method some_add </DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &lt;dtml-with 
  "NewsClass.createInObjectManager(REQUEST['??????'], REQUEST)"&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;?????? into the combination of a, b, and c ?</DIV>
  <P>
  <HR SIZE=1>
  <A href="http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs">Start 
  your day with Yahoo! - make it your home page </A>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope maillist&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>