[frames | no frames] [show private | hide private]

Module TaskEngine.Context

Contexts are basically dictionaries used for value lookup. attribute lookup is allowed.

Context Chains are a stack of dictionaries that are searched in order.

The Context Stack is a global stack of dictionaries. it offers methods to create a chain from the stack composed of arbitrary elements.

The Context Registry, is a registry of chain names to context name sets, its used internally by the context stack to resolve chain_name -> chain

these could really benefit from using python22isms

Author: kapil thangavelu <kvthan@wm.edu> License: GPL Copyright: kapil thangavelu @2002 CVS: $Id: Context.py,v 1.2 2002/10/01 08:35:12 ender Exp $
Classes
Context  
ContextChain  
ContextChainTests  
ContextStack  
ContextStackTests  
ContextTests  

Function Summary
  getContext()
  test_suite()

Variable Summary
TaskEngine.Context._ContextChainRegistry ContextChainRegistry
instance method defineContextChain
instance method getChainsFor
instance method getContextsFor
Interface IContext
Interface IContextChain
Interface IContextChainRegistry
Interface IContextStack
Interface Interface
TaskEngine.Context.ContextStack stack
list _marker

Function Details

getContext

getContext()

test_suite

test_suite()


Variable Details

ContextChainRegistry

Type:
TaskEngine.Context._ContextChainRegistry
Value:
<TaskEngine.Context._ContextChainRegistry instance at 0x821339c>       

defineContextChain

defineContextChain = TaskEngine.Context._ContextChainRegistry.defineContextChain
Type:
instance method
Value:
<bound method _ContextChainRegistry.defineContextChain of <TaskEngine.\
Context._ContextChainRegistry instance at 0x821339c>>                  

getChainsFor

getChainsFor = TaskEngine.Context._ContextChainRegistry.getChainsFor
Type:
instance method
Value:
<bound method _ContextChainRegistry.getChainsFor of <TaskEngine.Contex\
t._ContextChainRegistry instance at 0x821339c>>                        

getContextsFor

getContextsFor = TaskEngine.Context._ContextChainRegistry.getContextsFor
Type:
instance method
Value:
<bound method _ContextChainRegistry.getContextsFor of <TaskEngine.Cont\
ext._ContextChainRegistry instance at 0x821339c>>                      

IContext

Type:
Interface
Value:
<Interface TaskEngine.Context.IContext at 81b46fc>                     

IContextChain

Type:
Interface
Value:
<Interface TaskEngine.Context.IContextChain at 81f8324>                

IContextChainRegistry

Type:
Interface
Value:
<Interface TaskEngine.Context.IContextChainRegistry at 8209734>        

IContextStack

Type:
Interface
Value:
<Interface TaskEngine.Context.IContextStack at 81f2b5c>                

Interface

Type:
Interface
Value:
<Interface Interface._Interface.Interface at 820e8dc>                  

stack

Type:
TaskEngine.Context.ContextStack
Value:
...                                                                    

_marker

Type:
list
Value:
[]                                                                     

Generated by Epydoc 1.1 on Mon Oct 21 19:45:08 2002 http://epydoc.sf.net