Personal tools
You are here: Home Weblog Archive 2006 July 21 How to use at_post_create_script to with multi-schemata content types
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

How to use at_post_create_script to with multi-schemata content types

by tibi last modified 2006-07-21 08:30
Filed Under:

When using at_post_create_script to hook up in the "post creation" events of AT, if the content type has multiple schematas, the script will be called each time the "next" button is pushed.

To properly use the script, a check can be added to see if the "save" button was pressed:

security.declarePrivate('at_post_create_script')
def at_post_create_script(self, **kwargs):
    if self.REQUEST.get('form_submit', None) == 'Save':
        pass   #do something here

       

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: