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

All Samples(29)  |  Call(15)  |  Derive(0)  |  Import(14)

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)
    def _getUUIDFor(self, object):
        """generate and attach a new uid to the object returning it"""
        uuid = make_uuid(object.getId())
        setattr(object, UUID_ATTR, uuid)
 
    def _makeName(self, *args):
        """get a uuid"""
        name = make_uuid(*args)
        return name
 

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)
    def _getUUIDFor(self, object):
        """generate and attach a new uid to the object returning it"""
        uuid = make_uuid(object.getId())
        setattr(object, UUID_ATTR, uuid)
 
    def _makeName(self, *args):
        """get a uuid"""
        name = make_uuid(*args)
        return name
 

src/p/r/Products.ATVocabularyManager-1.6.6/Products/ATVocabularyManager/types/simple/vocabulary.py   Products.ATVocabularyManager(Download)
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.interfaces import IVocabulary
from Products.Archetypes.utils import make_uuid
from Products.Archetypes.utils import DisplayList
from Products.Archetypes.utils import OrderedDict
            else:
                value = unicode(row[1], IMPORT_ENCODING)
                key = row[0] or make_uuid(value)
                self.addTerm(key, value, termtype=termtype, silentignore=silentignore)
 

src/p/r/Products.ATVocabularyManager-HEAD/Products/ATVocabularyManager/types/simple/vocabulary.py   Products.ATVocabularyManager(Download)
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.interfaces import IVocabulary
from Products.Archetypes.utils import make_uuid
from Products.Archetypes.utils import DisplayList
from Products.Archetypes.utils import OrderedDict
            else:
                value = unicode(row[1], IMPORT_ENCODING)
                key = row[0] or make_uuid(value)
                self.addTerm(key, value, termtype=termtype, silentignore=silentignore)
 

src/v/n/vnccollab.theme-1.7.11-/vnccollab/theme/browser/util.py   vnccollab.theme(Download)
from Products.CMFPlone.utils import safe_unicode
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import make_uuid
from Products.Archetypes.event import ObjectInitializedEvent
from Products.statusmessages.interfaces import IStatusMessage
 
        context = aq_inner(self.context)
        id = make_uuid('temp-id')
        # make sure our id is unique
        id = context.invokeFactory(id=id, type_name='File')

src/p/r/Products.PlonePopoll-2.8b1/Products/PlonePopoll/content/PlonePopoll.py   Products.PlonePopoll(Download)
# Archetypes imports
from Products.Archetypes.atapi import *
from Products.Archetypes.utils import make_uuid
 
from Products.ATContentTypes import atct
        super(PlonePopoll, self).__init__(id)
        self.id = id
        self.uid = make_uuid(id)
 
 
def cloneHandler(ob, event):
    """ """
    ob.uid = make_uuid(id)
    return
 

src/c/y/cyn.in-HEAD/src/ubify.cyninv2theme/ubify/cyninv2theme/browser/tickers.py   cyn.in(Download)
        site = thesite.portal_url.getPortalObject()
        if not site.hasProperty('siteuid'):
            from Products.Archetypes.utils import make_uuid
            newuid = make_uuid()
            site.manage_addProperty('siteuid',newuid,'string')

src/p/r/Products.Relations-0.9b1/Products/Relations/components/inverse.py   Products.Relations(Download)
from Acquisition import ImplicitAcquisitionWrapper, aq_parent
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.public import *
from Products.Archetypes.ReferenceEngine import Reference
from Products.Archetypes.utils import make_uuid

src/p/r/Products.CMFPlomino-1.18.6/Products/CMFPlomino/PlominoDatabase.py   Products.CMFPlomino(Download)
from Products.Archetypes.BaseObject import BaseObject
from Products.Archetypes.debug import deprecated
from Products.Archetypes.utils import make_uuid
from Products.ATContentTypes.content.folder import ATFolder
from Products.CMFPlone.interfaces import IHideFromBreadcrumbs
        """
        if not docid:
            docid = make_uuid()
        self.documents[docid] = addPlominoDocument(docid)
        doc = self.documents.get(docid)

src/a/w/aws.pdfbook-1.1/aws/pdfbook/conversions.py   aws.pdfbook(Download)
from Products.CMFCore.FSImage import FSImage
from Products.CMFDefault.interfaces import IImage
from Products.Archetypes.utils import make_uuid
from Products.CMFPlone.utils import getFSVersionTuple, normalizeString
 
        for name, value in attrs:
            if name == 'src':
                new_id = make_uuid()
                self.images.append((new_id, value))
                break

  1 | 2  Next