Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/r/Products.PloneHelpCenter-4.0/Products/PloneHelpCenter/content/HowTo.py   Products.PloneHelpCenter(Download)
from Products.PloneHelpCenter.interfaces import IHelpCenterHowTo
from schemata import HelpCenterItemSchemaNarrow
from PHCContent import PHCContentMixin, HideOwnershipFields, IHelpCenterContent
 
from Products.ATContentTypes.interface import IATFolder, IATDocument
 
HowToSchema = ATDocumentSchema.copy() + ConstrainTypesMixinSchema + HelpCenterItemSchemaNarrow
HideOwnershipFields(HowToSchema)
finalizeATCTSchema(HowToSchema, folderish=True, moveDiscussion=False)
 

src/p/r/Products.PloneHelpCenter-4.0/Products/PloneHelpCenter/content/TutorialPage.py   Products.PloneHelpCenter(Download)
 
from Products.PloneHelpCenter.config import *
from PHCContent import HideOwnershipFields
from Products.PloneHelpCenter.interfaces import IHelpCenterMultiPage
 
TutorialPageSchema = ATContentTypes.content.document.ATDocumentSchema.copy()
HideOwnershipFields(TutorialPageSchema)