[Product-Developers] finishing a product

deesto john.destefano at gmail.com
Thu Apr 17 15:40:23 UTC 2008



Jon Stahl wrote:
> 
> Hedley Roos wrote:
>> To make the topic the default view only once it exists you can use an
>> old Zope trick: call the Topic object index_html. In fact, only the id
>> (aka Short Name) has to be index_html. The Title can be whatever you
>> want.
>>
>> Note that some people may frown on this approach :)
>   
> Indeed.  ;-)  See 
> http://dev.plone.org/collective/browser/PressRoom/trunk/content/PressRoom.py 
> for an example of code that creates a Folder inside a folderish type, 
> then creates a Topic set as the default page for the folder, using 
> obj.setDefaultPage.
> 

Thanks Jon.  This is a great idea.  I'm trying to mimic your code, but I'm
getting hung up, as your object creation triggers the creation of
sub-folders, and it's in these folders that the default Topic object is
created (as you've explained).  In my case, only one folder-ish object is
created.  How would I adapt your example to this case (by adding a Topic
when the top-level folder-ish object is created, or maybe even automate the
creation of the object [and Topic] when the product is installed)?
-- 
View this message in context: http://www.nabble.com/-Product-Developers--finishing-a-product-tp16542809s20094p16745002.html
Sent from the Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list