Thanks, this was the error.<div><br></div><div><div>I followed this tutorial correctly, even the creation of the database.</div><div>But when I go to fill out the form and send it gives the following errors:</div><div><br>

</div><div><pre style="word-wrap:break-word;white-space:pre-wrap">Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 26, in _call
  Module Products.CMFFormController.FormController, line 384, in validate
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.CMFFormController.FSControllerValidator, line 58, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 130, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 20, in fgvalidate_base
   - <FSControllerValidator at /Plone/fgvalidate_base used for /Plone/advanced-form>
   - Line 20
  Module Products.PloneFormGen.content.form, line 574, in fgvalidate
  Module Products.PloneFormGen.content.form, line 589, in fgProcessActionAdapters
  Module Products.Archetypes.ClassGen, line 56, in generatedAccessor
  Module Products.TALESField._field, line 59, in get
  Module Products.CMFCore.Expression, line 50, in __call__
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 105, in render
  Module Products.PageTemplates.ZRPythonExpr, line 80, in call_with_ns
  Module Shared.DC.Scripts.Bindings, line 336, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 3, in py_form_process
   - <PythonScript at /Plone/advanced-form/py_form_process>
   - Line 3
AttributeError: Request</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="word-wrap:break-word"><span style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Someone tell me what is it? Thanks.</font></span></pre>

</div><div><div style="color:rgb(136,136,136)"><br></div><div style="color:rgb(136,136,136)">Att,</div><div style="color:rgb(136,136,136)"><br></div><div style="color:rgb(136,136,136)"># Nicolas Azevedo Costa.</div><div style="color:rgb(136,136,136)">

# 5º período de Bacharelado em Sistemas de Informação. </div><div style="color:rgb(136,136,136)"># Instituto Federal Catarinense - Câmpus Araquari, SC.</div></div><br>
<br><br><div class="gmail_quote">2012/7/17 Jean Jordaan <span dir="ltr"><<a href="mailto:jean.jordaan@gmail.com" target="_blank">jean.jordaan@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Wed, Jul 18, 2012 at 3:00 AM, Nicolas Azevedo <<a href="mailto:nicolasazev@gmail.com">nicolasazev@gmail.com</a>> wrote:<br>
> I'm following this<br>
> tutorial(<a href="http://plone.org/products/ploneformgen/documentation/tutorial/advanced-sql-crud-with-ploneformgen/tutorial-all-pages" target="_blank">http://plone.org/products/ploneformgen/documentation/tutorial/advanced-sql-crud-with-ploneformgen/tutorial-all-pages</a>)<br>


> to learn how to use this product, but when I create the python script<br>
> "py_insert_data" happens a syntax error "invalid syntax (Script (Python),<br>
> line 17)."<br>
<br>
</div>I just looked at the page for a second, and I noticed there's a<br>
missing colon at the end of this line:<br>
<br>
    for key in data['keywords']<br>
<br>
It should be:<br>
<br>
    for key in data['keywords']:<br>
<br>
Read the scripts carefully, and try them out step by step to make sure<br>
you follow what they're doing.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
jean                                              . .. .... //\\\oo///\\<br>
</font></span></blockquote></div><br></div>