<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The addform directive should do as you
desire.&nbsp; You mentioned you wanted to jump the an edit form directly upon adding
instead of going to the contents view. This is what addform was designed to do.
If my understanding is correct, can you send along the zcml snippets? <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
zope3-users-bounces@zope.org [mailto:zope3-users-bounces@zope.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>John Smith<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 12, 2006 10:41
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Zope3-users@zope.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Zope3-Users] Add and
Edit form</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I am a little unclear into which object I should add the nextURL
method.<br>
<br>
In myclass/browser/configure.zcml I have addMenuItem and addForm directives. I
have tried adding the nextURL method to the class specified in the 'class'
parameter of the addForm directive. That does not work.<br>
<br>
Stephan replied that the zope.app.form classes is where to override the nextURL
method, but where do I fit a zope.app.form instance into my configuration?<br>
<br>
Thanks,<br>
<br>
John<br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>Cliff Ford
&lt;Cliff.Ford@ed.ac.uk&gt;</span></i></b> wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>This is an example mextURL function that I used to add a folder <br>
containing a page, and then go to the folder. Going to the page is just <br>
an addition to the last line.<br>
<br>
HTH<br>
<br>
Cliff<br>
<br>
def nextURL(self):<br>
<br>
&quot;&quot;&quot; This function is called for redirection after folder
creation.<br>
We can use it to fill out metadata collected from a custom add <br>
form.<br>
&quot;&quot;&quot;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><a
href="http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http:/uk.cars.yahoo.com/">Yahoo!
Cars</a> <font color=red><span style='color:red'>NEW</span></font> - sell your
car and browse thousands of new and used cars online <a
href="http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http:/uk.cars.yahoo.com/">search
now</a> </span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

</div>

</div>

</body>

</html>