Back to index

plone3  3.1.7
Namespaces | Classes | Functions | Variables
Archetypes.Schema Namespace Reference

Namespaces

namespace  Composite
namespace  Facade
namespace  factory

Classes

class  Schemata
class  WrappedSchemata
class  SchemaLayerContainer
class  BasicSchema
class  Schema
class  WrappedSchema
class  ManagedSchema
class  MetadataSchema

Functions

def getNames
def getSchemata

Variables

string __docformat__ = 'reStructuredText'
list _marker = []
tuple MDS = MetadataStorage()
 FieldList = Schema
 MetadataFieldList = MetadataSchema

Function Documentation

def Archetypes.Schema.getNames (   schema)
Returns a list of all fieldnames in the given schema.

Definition at line 25 of file __init__.py.

00025 
00026 def getNames(schema):
00027     """Returns a list of all fieldnames in the given schema."""
00028     return [f.getName() for f in schema.fields()]

Here is the caller graph for this function:

Returns an ordered dictionary, which maps all Schemata names to fields
that belong to the Schemata.

Definition at line 29 of file __init__.py.

00029 
00030 def getSchemata(obj):
00031     """Returns an ordered dictionary, which maps all Schemata names to fields
00032     that belong to the Schemata."""
00033 
00034     schema = obj.Schema()
00035     schemata = OrderedDict()
00036     for f in schema.fields():
00037         sub = schemata.get(f.schemata, WrappedSchemata(name=f.schemata))
00038         sub.addField(f)
00039         schemata[f.schemata] = sub.__of__(obj)
00040 
00041     return schemata

Here is the caller graph for this function:


Variable Documentation

string Archetypes.Schema.__docformat__ = 'reStructuredText'

Definition at line 22 of file __init__.py.

Definition at line 23 of file __init__.py.

Definition at line 993 of file __init__.py.

tuple Archetypes.Schema.MDS = MetadataStorage()

Definition at line 965 of file __init__.py.

Definition at line 994 of file __init__.py.