Table of Contents

Class: Symbol pubcore.py

Symbol: Base class of componets and nouns/things. It contains methods and variables to handle components mostly.

Symbol
Base class for nouns and components -- used by the component based object system

Methods   
__init__
addComponents
delComponents
  __init__ 
__init__ ( self )

  addComponents 
addComponents ( self,  com )

method that adds components to the components list. checks three possible ways it can be called, with either a list, a class or an instance. Only when called with an instance does the component get added to the list, in other cases it's converted into an instance and resent to addComponents

Exceptions   
TypeError( '%com must be of type List, Class or Instance' )
  delComponents 
delComponents ( self,  com )

Can be called in the same way as addComponents, with a list, class or instance. However dealing with deleting componets is a bit harder. When given a list the list is looped through and calls to delComponents are made. When given a class all classinstances are deleted. When given an instance just that instance is removed.

Exceptions   
TypeError( '%com must be of type List, Class or Instance' )

Table of Contents

This document was automatically generated on Mon Aug 8 17:04:06 2005 by HappyDoc version 2.1