Package application :: Module schema :: Class Descriptor
[hide private]
[frames] | no frames]

Class Descriptor

source code

                     object --+    
                              |    
               ActiveDescriptor --+
                                  |
                     object --+   |
                              |   |
chandlerdb.schema.c.CDescriptor --+
                                  |
                                 Descriptor
Known Subclasses:
Many, Mapping, One, Sequence

Descriptor for a schema-defined attribute

Instance Methods [hide private]
 
__init__(self, type=<Locale: en_US>, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
activateInClass(self, cls, name, set_type=True)
Descriptor was defined/used in class `cls` under name `name`
source code
 
_setattr(self, attr, value)
Private routine allowing bypass of normal setattr constraints
source code
 
__setattr__(self, attr, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__setInverse(self, inverse) source code
 
__repr__(self)
repr(x)
source code
 
__setDoc(self, val) source code
 
setDoc(self) source code
 
docInfo(self) source code
 
_find_schema_item(self, view) source code
 
_create_schema_item(self, view) source code
 
_init_schema_item(self, attr, view) source code

Inherited from chandlerdb.schema.c.CDescriptor: __delete__, __get__, __set__, isValueRequired

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]
 
__new__(cls, type=<Locale: en_US>, **kw)
Returns: a new object with type S, a subtype of T
source code
Class Variables [hide private]
  annotates = <Locale: en_US>
  _frozen = <Locale: en_US>
  _inverse = <Locale: en_US>
  type = <Locale: en_US>
  owner = <Locale: en_US>
Properties [hide private]
  inverse
The inverse of this role
  doc
doc
  description
doc
  afterChange
  cardinality
  copyPolicy
  countPolicy
  defaultValue
  deletePolicy
  domains
  indexed
  inheritFrom
  initialValue
  notify
  otherName
  required
  superAttribute

Inherited from chandlerdb.schema.c.CDescriptor: attr, name

Inherited from object: __class__

Method Details [hide private]

__new__(cls, type=<Locale: en_US>, **kw)
Static Method

source code 
Returns:
a new object with type S, a subtype of T

Overrides: chandlerdb.schema.c.CDescriptor.__new__
(inherited documentation)

__init__(self, type=<Locale: en_US>, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: chandlerdb.schema.c.CDescriptor.__init__
(inherited documentation)

activateInClass(self, cls, name, set_type=True)

source code 
Descriptor was defined/used in class `cls` under name `name`
Overrides: ActiveDescriptor.activateInClass

__setattr__(self, attr, value)

source code 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

inverse

The inverse of this role
Get Method:
unreachable(s)
Set Method:
application.schema.Descriptor.__setInverse(self, inverse)
Delete Method:
<Locale: en_US>

doc

doc
Get Method:
unreachable(self) - doc
Set Method:
application.schema.Descriptor.__setDoc(self, val)
Delete Method:
<Locale: en_US>

description

doc
Get Method:
unreachable(self) - doc
Set Method:
application.schema.Descriptor.__setDoc(self, val)
Delete Method:
<Locale: en_US>