Changes between Version 13 and Version 14 of TracDev/ComponentArchitecture
- Timestamp:
- May 20, 2010, 11:45:22 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ComponentArchitecture
v13 v14 75 75 76 76 Direct `Component` sub-classes also do not need to worry about invoking the base classes `__init__` method (which is empty). 77 78 === Components instantiating other Components === 79 80 If one `Component` instantiates another, it typically will use the same `ComponentManager`, instead of creating a new `ComponentManager`. 81 82 {{{ 83 #!python 84 class MyComponent(Component): 85 def callOtherComponent(self): 86 MyOtherComponent(self.compmgr).someFunction() 87 }}} 88 89 Note that within trac, the component manager is more commonly referenced as `self.env`. 77 90 78 91 == Declaring an extension point ==