Help, please?<br><br><div class="gmail_quote">2011/2/18 <a href="mailto:d.camata@gmail.com">d.camata@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:d.camata@gmail.com">d.camata@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello everybody, it&#39;s me AGAIN.<div><br></div><div>I created a PropertySheet like this:</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">

class DiscussionThread:<br>&quot;&quot;&quot;<br>DiscussionThread properties and categories<br>&quot;&quot;&quot;<br>_properties = (<br># Rating property<br>{ &#39;id&#39; : &#39;rating&#39;,<br>&#39;description&#39; : &#39;the rating of the thread&#39;,<br>

&#39;type&#39; : &#39;string&#39;,<br>&#39;mode&#39; : &#39;w&#39; },<br>)</blockquote><div><br></div><div>And assigned it to my DiscussionThread type in portal_types. But now, when I try to create a DiscussionThread object I have the following error:</div>

<div><br></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre style="word-wrap:break-word;white-space:pre-wrap">Traceback (innermost last):
  Module ZPublisher.Publish, line 114, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 325, in _exec
  Module None, line 8, in Folder_create
   - &lt;PythonScript at /erp5/Folder_create used for /erp5/discussion_thread_modulo&gt;
   - Line 8
  Module Products.ERP5Type.Document.Folder, line 458, in newContent
  Module Products.ERP5Type.Document.Folder, line 165, in newContent
  Module Products.ERP5Type.ERP5Type, line 384, in constructInstance
AttributeError: None</pre></span></div><div>When I undo the property sheet assigment it works.</div><div><br></div>Can anybody give me a light, please?<br>-- <br>Douglas Camata<br>Graduando em Ciência da Computação (UENF)<div>

<br><div>Blog: <a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></div><div>Github: <a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></div>
<div>
Twitter: <a href="http://twitter.com/douglascamata" target="_blank">@douglascamata</a></div><div><a href="http://twitter.com/douglascamata" target="_blank"></a>Skype: douglas_camata</div><div>-----------------------------------<br>

Linux User #509211</div></div><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Douglas Camata<br>Graduando em Ciência da Computação (UENF)<div><br><div>Blog: <a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></div>
<div>Github: <a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></div><div>Twitter: <a href="http://twitter.com/douglascamata" target="_blank">@douglascamata</a></div><div><a href="http://twitter.com/douglascamata" target="_blank"></a>Skype: douglas_camata</div>
<div>-----------------------------------<br>Linux User #509211</div></div><br>