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

Type ItemClass

source code

                object --+        
                         |        
                      type --+    
                             |    
                     Activator --+
                                 |
                object --+       |
                         |       |
                      type --+   |
                             |   |
repository.item.Item.ItemClass --+
                                 |
                                ItemClass
Known Subclasses:
CollectionClass

Metaclass for schema.Item

Nested Classes [hide private]
  _kind_class
Instance Methods [hide private]
 
__init__(cls, name, bases, cdict)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_find_schema_item(cls, view) source code
 
_create_schema_item(cls, view) source code
 
_init_schema_item(cls, kind, view) source code
 
update(cls, parcel, itsName, **attrs)
Ensure that there is a `name` child of `parent` with `attrs`
source code
 
targetType(cls)
Backreferences to an Item class go to that class
source code

Inherited from type: __call__, __cmp__, __delattr__, __getattribute__, __hash__, __new__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __reduce__, __reduce_ex__, __str__

Class Variables [hide private]

Inherited from repository.item.Item.ItemClass: __finals__

Properties [hide private]
  __kind_info__
__kind_info__

Inherited from type: __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__init__(cls, name, bases, cdict)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: Activator.__init__

update(cls, parcel, itsName, **attrs)

source code 

Ensure that there is a `name` child of `parent` with `attrs`

If `parent` already has a child of name `name`, it is updated with `attrs` and its kind is set to match this class. Otherwise, a new item of the class' kind is created with the given `attrs`. Either way, the resulting item is returned.

This classmethod is typically used in ``installParcel()`` functions to create and/or update parcel items.

targetType(cls)

source code 
Backreferences to an Item class go to that class
Overrides: Activator.targetType

Property Details [hide private]

__kind_info__

__kind_info__
Get Method:
unreachable(cls) - __kind_info__
Set Method:
<Locale: en_US>
Delete Method:
<Locale: en_US>