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/tests/testOrdering.py   archetypes.schemaextender(Download)
import unittest
from Products.Archetypes.public import Schema
from Products.Archetypes.public import ManagedSchema
from Products.Archetypes.utils import OrderedDict
from archetypes.schemaextender.extender import get_schema_order
    def testIdentitySchemataReorder(self):
        schema=ManagedSchema()
        schema.addField(MockField("one", "one"))
        schema.addField(MockField("two", "two"))
        command=OrderedDict()
    def testSwapTwoSchemata(self):
        schema=ManagedSchema()
        schema.addField(MockField("one", "one"))
        schema.addField(MockField("two", "two"))
        command=OrderedDict()

src/p/r/Products.PloneHelpCenter-4.0/Products/PloneHelpCenter/tests/CustomSetup.py   Products.PloneHelpCenter(Download)
from Products.Archetypes.utils import OrderedDict
 
import Data
 
 
    return '  \n'.join(out)
 
functions = OrderedDict()
functions['Create Test Data'] = CreateTestData
functions['Create Test Users'] = CreateUsers

Previous  1 | 2 | 3 | 4