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

All Samples(13)  |  Call(5)  |  Derive(0)  |  Import(8)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Widget.py   Products.Archetypes(Download)
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import unique
from Products.Archetypes.utils import capitalize
from Products.Archetypes.generator import macrowidget
 
        value = existing_keywords + new_keywords
        value = [k for k in list(unique(value)) if k]
 
        if not value and emptyReturnsMarker:

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Widget.py   Products.Archetypes(Download)
 
from Products.Archetypes.utils import className
from Products.Archetypes.utils import unique
from Products.Archetypes.utils import capitalize
from Products.Archetypes.generator import macrowidget
 
        value = existing_keywords + new_keywords
        value = [k for k in list(unique(value)) if k]
 
        if not value and emptyReturnsMarker:

src/c/y/cyn.in-HEAD/src/ubify.cyninv2theme/ubify/cyninv2theme/__init__.py   cyn.in(Download)
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFCore.permissions import SetOwnPassword
from Products.Archetypes.utils import unique
 
from ubify.policy import CyninMessageFactory as _
def getTagsAndTagsCount(results):
 
    from Products.Archetypes.atapi import Vocabulary, DisplayList
    from Products.Archetypes.utils import unique
    coll = {}
                values = tags.split(",")
                values = [val.strip().lower() for val in values]
                values = [k.lower() for k in list(unique(values)) if k]
            except AttributeError:
                values = []

src/a/t/atreal.richfile.metadata-1.0.0rc1/atreal/richfile/metadata/__init__.py   atreal.richfile.metadata(Download)
from zope.i18nmessageid import MessageFactory
RichFileMetadataMessageFactory = MessageFactory('atreal.richfile.metadata')
 
from Products.Archetypes.utils import unique
 
        return
 
    supported_mimetypes = unique(HACHOIR_MT + EXIF_MT)
 
    registerRFPlugin(IMetadata, supported_mimetypes)

src/c/y/cyn.in-HEAD/src/ubify.coretypes/ubify/coretypes/widgets.py   cyn.in(Download)
 
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.utils import unique
 
class TagSuggestWidget(TypesWidget):
            values = value.split(",")
            values = [val.strip().lower() for val in values]
            values = [k.lower() for k in list(unique(values)) if k]            
        except AttributeError:
            return empty_marker

src/c/o/collective.easytemplate-0.8.0/collective/easytemplate/fields.py   collective.easytemplate(Download)
from Products.Archetypes.Registry import registerWidget
from Products.Archetypes.debug import log
from Products.Archetypes.utils import className, unique, capitalize
from Products.Archetypes.Field import TextField, ObjectField, encode, decode, registerField
 

src/i/c/icsemantic.thesaurus-1.0-dev-r371/icsemantic/thesaurus/browser/archetypes.py   icsemantic.thesaurus(Download)
from icsemantic.thesaurus.Thesaurus import thesaurus_utility
from incrementalSearchSelectWidget import *
from Products.Archetypes.utils import unique
from pyThesaurus.Thesaurus import ConceptsConflict
import cgi