Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(23) | Call(12) | Derive(0) | Import(11)
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ReferenceEngine.py Products.Archetypes(Download)
from Products.Archetypes.interfaces import IReferenceCatalog from Products.Archetypes.utils import make_uuid, getRelURL, shasattr from Products.Archetypes.config import ( TOOL_NAME, UID_CATALOG, REFERENCE_CATALOG, UUID_ATTR)
base = container rc = getToolByName(container, REFERENCE_CATALOG) url = getRelURL(base, self.getPhysicalPath()) rc.catalog_object(self, url) def manage_beforeDelete(self, item, container): Referenceable.manage_beforeDelete(self, item, container) rc = getToolByName(container, REFERENCE_CATALOG) url = getRelURL(container, self.getPhysicalPath())
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ReferenceEngine.py Products.Archetypes(Download)
from Products.Archetypes.interfaces import IReferenceCatalog from Products.Archetypes.utils import make_uuid, getRelURL, shasattr from Products.Archetypes.config import ( TOOL_NAME, UID_CATALOG, REFERENCE_CATALOG, UUID_ATTR)
base = container rc = getToolByName(container, REFERENCE_CATALOG) url = getRelURL(base, self.getPhysicalPath()) rc.catalog_object(self, url) def manage_beforeDelete(self, item, container): Referenceable.manage_beforeDelete(self, item, container) rc = getToolByName(container, REFERENCE_CATALOG) url = getRelURL(container, self.getPhysicalPath())
src/p/r/Products.Relations-0.9b1/Products/Relations/components/contentreference.py Products.Relations(Download)
from Products.Archetypes.interfaces import IExtensibleMetadata from Products.Archetypes.utils import getRelPath, getRelURL from Products.Relations.config import *
rc = getToolByName(aq, config.REFERENCE_CATALOG) url = getRelURL(uc, obj.getPhysicalPath()) uc.catalog_object(obj, url) #rc.catalog_object(obj, url)
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/UIDCatalog.py Products.Archetypes(Download)
from Products.Archetypes.config import TOOL_NAME from Products.Archetypes.interfaces import IUIDCatalog from Products.Archetypes.utils import getRelURL from plone.indexer.interfaces import IIndexableObject from plone.indexer.decorator import indexer
def _catalogObject(self, obj, path): """Catalog the object. The object will be cataloged with the absolute path in case we don't pass the relative url. """ url = getRelURL(self, obj.getPhysicalPath())
src/p/r/Products.PloneFormGen-1.7.14/Products/PloneFormGen/content/form.py Products.PloneFormGen(Download)
from Products.Archetypes.public import * from Products.Archetypes.utils import shasattr, getRelURL from Products.Archetypes.interfaces.field import IField
# remove from uid_catalog uid_catalog = getToolByName(self, 'uid_catalog', None) uid_catalog.uncatalog_object(getRelURL(self, obj.getPhysicalPath())) else:
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/UIDCatalog.py Products.Archetypes(Download)
from Products.Archetypes.config import TOOL_NAME from Products.Archetypes.interfaces import IUIDCatalog from Products.Archetypes.utils import getRelURL from plone.indexer.interfaces import IIndexableObject from plone.indexer.decorator import indexer
def _catalogObject(self, obj, path): """Catalog the object. The object will be cataloged with the absolute path in case we don't pass the relative url. """ url = getRelURL(self, obj.getPhysicalPath())
src/p/r/Products.PloneFormGen-HEAD/Products/PloneFormGen/content/form.py Products.PloneFormGen(Download)
from Products.Archetypes.public import * from Products.Archetypes.utils import shasattr, getRelURL from Products.Archetypes.interfaces.field import IField
# remove from uid_catalog uid_catalog = getToolByName(self, 'uid_catalog', None) uid_catalog.uncatalog_object(getRelURL(self, obj.getPhysicalPath())) else:
src/p/r/Products.Relations-0.9b1/Products/Relations/ruleset.py Products.Relations(Download)
from Products.Archetypes.Referenceable import Referenceable from Products.Archetypes.ReferenceEngine import Reference from Products.Archetypes.utils import shasattr, getRelURL from Products.Archetypes.public import * from Products.Archetypes.exceptions import ReferenceException
for ref in refs: ref.relationship = self.getId() url = getRelURL(aq_parent(aq_inner(ref)), ref.getPhysicalPath()) ref_ctl.catalog_object(ref, url, idxs=['relationship'])
src/c/o/collective.plone.gsxml-0.4.7/src/collective/plone/gsxml/content.py collective.plone.gsxml(Download)
from Products.Archetypes.interfaces import IBaseFolder from Products.Archetypes.public import FileField, TextField from Products.Archetypes.utils import getRelURL from Products.Marshall.registry import getComponent
# UID is correct at this time. for ref in self.context.at_references.objectValues(): url = getRelURL(self.context.at_references, ref.getPhysicalPath()) # record this change
src/p/l/plone.app.referenceablebehavior-0.6/plone/app/referenceablebehavior/referenceable.py plone.app.referenceablebehavior(Download)
from Products.Archetypes.interfaces import referenceable from Products.Archetypes.ReferenceEngine import Reference as BaseReference from Products.Archetypes.utils import getRelURL from Products.CMFCore.utils import getToolByName from OFS.Folder import Folder
base = container rc = getToolByName(container, config.REFERENCE_CATALOG) url = getRelURL(base, self.getPhysicalPath()) rc.catalog_object(self, url)
1 | 2 Next