<!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> </DIV>
<DIV><FONT face=Arial size=2> <dtml-with
UserData><BR> <dtml-with
"manage_addProduct['TCAide']"><BR>
<dtml-with "TCAUsers.createInObjectManager(REQUEST['clientid'],
REQUEST)"><BR>
<dtml-call
"propertysheets.TCAUsersPS.manage_changeProperties(REQUEST)"><BR>
<dtml-call reindex_object><BR>
</dtml-with><BR>
</dtml-with><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> </DIV>
<DIV><FONT face=Arial size=2>hth</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<DIV><FONT face=Arial size=2> </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> </DIV>
<DIV>Say I have variable </DIV>
<DIV>a = 'name a'</DIV>
<DIV>b = 'value b'</DIV>
<DIV>c = 'string c'</DIV>
<DIV> </DIV>
<DIV>what do I encode in my dtml method some_add </DIV>
<DIV> <dtml-with
"NewsClass.createInObjectManager(REQUEST['??????'], REQUEST)"></DIV>
<DIV> </DIV>
<DIV> ?????? 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
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>