Error when making a custom Archetype product available as a default view using Plone 3.0.1

Matthew Wilkes matt at matthewwilkes.name
Mon Nov 5 16:32:33 UTC 2007


On 5 Nov 2007, at 12:53, PaulPanzer wrote:

>
> Sorry for responding to my own post. but i didn't get rid of this  
> quaint
> 'NoneType' object has no attribute 'Title'-error. now i switched to  
> plone
> 3.0.2...but nothing has changes. It's interesting that the  
> instantmessage
> product of the AT Developer Manual found at
> http://plone.org/products/instantmessage/releases/1.0  shows the same
> behaviour:
>
> Module plone.app.contentmenu.menu, line 286, in getMenuItems
> AttributeError: 'NoneType' object has no attribute 'Title'
>
> did i forget to implement an new interface or inherit from a new class
> ...introduced in plone 3.0?
> i try to define a Title() method myself. i get the same error.

The NoneType bit is the hint, it means you're trying to call Title on  
a variable that is None, not that your object doesn't have a Title  
method.

Matt

>
>
> i've read the migration tips on
> http://plone.org/documentation/manual/upgrade-guide/version/2.5-3.0/products/referencemanual-all-pages
> but found nothing suitable.
>
> any advice and comments are welcome.
>
> thanks...
>
>
> PaulPanzer wrote:
>>
>> Hi, I've writen a product with Archetypes to integrate external  
>> html-code
>> into my plone site. Basically I followed the instructions on
>> http://plone.org/documentation/how-to/integrate-external-content.  
>> In Plone
>> 2.5 it works fine. Now I switched to Plone 3.0.1 and had to  
>> customize a
>> few things to make it run. The only thing that don't work, is  
>> setting a
>> PublicationsHTML object as a dafault page. Everything else like  
>> install,
>> "View" "Edit" etc. works.
>> I attached a code snippet below. Maybe someone can point me out  
>> where I
>> made a fault.
>>
>> Thanks...
>>
>> -paul
>>
>> .....
>>
>
> -- 
> View this message in context: http://www.nabble.com/Error-when-making-a-custom-Archetype-product-available-as-a-default-view-using-Plone-3.0.1-tf4607783s20094.html#a13586349
> Sent from the Product Developers mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers





More information about the Product-Developers mailing list