Hello everybody, it'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>"""<br>DiscussionThread properties and categories<br>"""<br>_properties = (<br># Rating property<br>{ 'id' : 'rating',<br>'description' : 'the rating of the thread',<br>
'type' : 'string',<br>'mode' : 'w' },<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><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: 'Times New Roman'; 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
- <PythonScript at /erp5/Folder_create used for /erp5/discussion_thread_modulo>
- 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>