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

All Samples(69)  |  Call(35)  |  Derive(1)  |  Import(33)

src/a/r/archetypes.schemaextender-2.1.3/archetypes/schemaextender/extender.py   archetypes.schemaextender(Download)
import os
 
from Globals import DevelopmentMode
from Products.Archetypes.interfaces import ISchema
from Products.Archetypes.utils import OrderedDict
    with the schemata names as keys fields names as values.
    """
    result = OrderedDict()
    for name in schema.getSchemataNames():
        fields = schema.getSchemataFields(name)

src/l/i/lineage.themeselection-1.3/src/lineage/themeselection/extender.py   lineage.themeselection(Download)
from zope.interface import implements
from archetypes.schemaextender.interfaces import IOrderableSchemaExtender
from archetypes.schemaextender.field import ExtensionField
from Products.Archetypes import atapi
from Products.Archetypes.utils import OrderedDict
    def getOrder(self, original):
        neworder = OrderedDict()
        for schemata in original.keys():
            neworder[schemata] = original[schemata]
            if schemata == 'settings' \

src/c/o/collective.gmaplocation-0.4/src/collective/gmaplocation/extender.py   collective.gmaplocation(Download)
)
from archetypes.schemaextender.field import ExtensionField
from Products.Archetypes.utils import OrderedDict
from Products.Archetypes.public import (
    FloatField,
    def getOrder(self, original):
        neworder = OrderedDict()
        keys = original.keys()
        last = keys.pop()
        keys.insert(1, last)

src/f/t/ftw.workspace-2.1.0/ftw/workspace/browser/helper.py   ftw.workspace(Download)
from datetime import datetime
from datetime import timedelta
from plone.memoize import ram
from Products.Archetypes.utils import OrderedDict
from Products.CMFCore.utils import getToolByName
def group_by_date(results):
    grouped_results = OrderedDict()
    grouped_results['today'] = []
    grouped_results['yesterday'] = []
    grouped_results['this_week'] = []

src/l/i/lineage.themeselection-HEAD/src/lineage/themeselection/extender.py   lineage.themeselection(Download)
from Products.Archetypes import atapi
from Products.Archetypes.utils import OrderedDict
from archetypes.schemaextender.field import ExtensionField
from archetypes.schemaextender.interfaces import IOrderableSchemaExtender
from zope.interface import implements
    def getOrder(self, original):
        neworder = OrderedDict()
        for schemata in original.keys():
            neworder[schemata] = original[schemata]
            if schemata == 'settings' \

src/c/o/collective.easyform-1.0a1/collective/easyform/actions.py   collective.easyform(Download)
    SavedDataBTree = IOBTree
from DateTime import DateTime
from Products.Archetypes.utils import OrderedDict
from Products.CMFCore.utils import getToolByName
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
        subject = self.get_subject(fields, request, context)
 
        headerinfo = OrderedDict()
 
        headerinfo['To'] = self.secure_header_line(to)

src/c/o/collective.contextimage-1.3.1/src/collective/contextimage/extender.py   collective.contextimage(Download)
)
from archetypes.schemaextender.field import ExtensionField
from Products.Archetypes.utils import OrderedDict
from Products.Archetypes.public import (
    ImageField,

src/t/o/tomcom.browsers.base-2.13.21.2/tomcom/browsers/base/__init__.py   tomcom.browsers.base(Download)
#Daily helper
from Products.CMFCore.utils import getToolByName
from Products.Archetypes.utils import OrderedDict
from DateTime import DateTime
 

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_utils2.py   Products.Archetypes(Download)
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.utils import OrderedDict
 
 
class OrderedDictTest(ATTestCase):
 
    def afterSetUp(self):
        self.d = OrderedDict()

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_utils2.py   Products.Archetypes(Download)
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.utils import OrderedDict
 
 
class OrderedDictTest(ATTestCase):
 
    def afterSetUp(self):
        self.d = OrderedDict()

Previous  1 | 2 | 3 | 4  Next