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

All Samples(53)  |  Call(8)  |  Derive(0)  |  Import(45)

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
from Products.Archetypes.log import log
    def populateProps(self, field):
        """This is called when the field is created."""
        name = field.getName()
        if not self.label:
            self.label = capitalize(name)

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
from Products.Archetypes.log import log
    def populateProps(self, field):
        """This is called when the field is created."""
        name = field.getName()
        if not self.label:
            self.label = capitalize(name)

src/p/r/Products.ATSchemaEditorNG-0.6/Products/ATSchemaEditorNG/ParentManagedSchema.py   Products.ATSchemaEditorNG(Download)
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import DisplayList
from util import create_signature
                    # test for special cases where there is no
                    # getter with conformant naming scheme
                    con_name = capitalize(field.getName())
                    dogenerate = not shasattr(self, 'get%s' % con_name)
 

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ClassGen.py   Products.Archetypes(Download)
from App.class_init import InitializeClass
from Products.Archetypes.log import log
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
 
 
        prefix = _modes[mode]['prefix']
        name = capitalize(field.getName())
        return "%s%s" % (prefix, name)
 

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ClassGen.py   Products.Archetypes(Download)
from App.class_init import InitializeClass
from Products.Archetypes.log import log
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
 
 
        prefix = _modes[mode]['prefix']
        name = capitalize(field.getName())
        return "%s%s" % (prefix, name)
 

src/i/c/icsemantic.core-1.0-dev-r371/icsemantic/core/content/multilingual.py   icsemantic.core(Download)
from zope.i18n.interfaces import IUserPreferredLanguages
 
from Products.Archetypes.utils import capitalize
from Products.ATContentTypes.interfaces import IATContentType
from Products.CMFCore.utils import getToolByName
                    # replace fields accessors
                    getName = field.accessor
                    getMultilingualName = "getMultilingual%s" % capitalize(name)
                    if hasattr(klass, getName) and \
                       hasattr(klass, getMultilingualName):
            fields = klass.schema.fields()
            for field in fields:
                methodName = "getMultilingual%s" % capitalize(field.getName())
                if hasattr(klass, methodName):
                    try:
        return value
    method = generatedMultilingualAccessor
    methodName = "getMultilingual%s" % capitalize(name)
    method = function(method.func_code,
                      method.func_globals,

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/p/r/Products.CompoundField-1.1/Products/CompoundField/ClassGen.py   Products.CompoundField(Download)
from types import FunctionType as function
 
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
from Products.Archetypes.debug import warn

src/p/r/Products.CompoundField-1.1/Products/CompoundField/__init__.py   Products.CompoundField(Download)
from Products.Archetypes import listTypes
from Products.Archetypes.atapi import *
from Products.Archetypes.utils import capitalize
from Products.CMFCore import DirectoryView
from Products.CMFCore import permissions as cmfpermissions

src/c/y/cyn.in-HEAD/products/ZipFileTransport/__init__.py   cyn.in(Download)
from Products.Archetypes.atapi import *
from Products.Archetypes import listTypes
from Products.Archetypes.utils import capitalize
 
import os, os.path

  1 | 2 | 3 | 4 | 5  Next