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

All Samples(7)  |  Call(2)  |  Derive(1)  |  Import(4)

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/Portal.py   Products.CMFDefault(Download)
from OFS.SimpleItem import Item
 
from Products.CMFCore.PortalObject import PortalObjectBase
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
from Products.CMFDefault.permissions import AddPortalContent
class CMFSite(PortalObjectBase, DefaultDublinCoreImpl):
 
    """
        The *only* function this class should have is to help in the setup
        of a new CMFSite.  It should not assist in the functionality at all.

src/e/r/erp5-HEAD/product/ERP5Type/patches/CMFCoreSkinnable.py   erp5(Download)
# value on PortalObjectBase. They must be updated there too, otherwise
# patching is incompletely available at ERP5Site class level.
from Products.CMFCore.PortalObject import PortalObjectBase
PortalObjectBase.__getattr__ = CMFCoreSkinnableSkinnableObjectManager___getattr__
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/exportimport/tests/test_properties.py   Products.CMFCore(Download)
    def setUp(self):
        from Products.CMFCore.PortalObject import PortalObjectBase
 
        self._obj = PortalObjectBase('foo_site')
        self._BODY = _PROPERTIES_BODY
    def _initSite(self, foo=2, bar=2):
        from Products.CMFCore.PortalObject import PortalObjectBase
 
        self.root.site = PortalObjectBase('foo_site')
        site = self.root.site