Personal tools
You are here: Home Weblog Archive 2006 July 27 Adding a new view method to a portal type
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Adding a new view method to a portal type

by tibi last modified 2006-07-27 08:56
Filed Under:

While this method is superceeded by GenericSetup, it's usefull enough that I place it here.

ptypes = portal.portal_types
psite = getattr(ptypes, 'Plone Site')
view_methods = psite.view_methods
vm = list(view_methods) + ['main_frontpage']
psite.manage_changeProperties(view_methods=vm)
Weblog
Atom
RDF
RSS 2.0
Powered by Quills
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: