Back to index

plone3  3.1.7
SimpleFolder.py
Go to the documentation of this file.
00001 from Products.Archetypes.atapi import *
00002 from Products.Archetypes.config import PKG_NAME
00003 
00004 schema = BaseSchema
00005 
00006 class SimpleFolder(BaseFolder):
00007     """A simple folderish archetype"""
00008     schema = schema
00009 
00010     def manage_afterMKCOL(self, id, result, REQUEST=None, RESPONSE=None):
00011         """For unit tests
00012         """
00013         self.called_afterMKCOL_hook = True
00014 
00015     def manage_afterPUT(self, data, marshall_data, file, context, mimetype,
00016                         filename, REQUEST, RESPONSE):
00017         """For unit tests
00018         """
00019         self.called_afterPUT_hook = True
00020 
00021 registerType(SimpleFolder, PKG_NAME)