/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/extension.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/extension.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/thuban/Thuban/Model/extension.py revision 217 by bh, Wed Jul 17 10:50:40 2002 UTC branches/WIP-pyshapelib-bramz/Thuban/Model/extension.py revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC
# Line 7  Line 7 
7    
8  __version__ = "$Revision$"  __version__ = "$Revision$"
9    
10    from Thuban import _
11    
12  from messages import EXTENSION_CHANGED, EXTENSION_OBJECTS_CHANGED  from messages import EXTENSION_CHANGED, EXTENSION_OBJECTS_CHANGED
13    
14  from base import TitledObject, Modifiable  from base import TitledObject, Modifiable
# Line 16  class Extension(TitledObject, Modifiable Line 18  class Extension(TitledObject, Modifiable
18    
19      """Represent a extension. A extension is a package of additional      """Represent a extension. A extension is a package of additional
20         functionality to Thuban and contains a number of Objects         functionality to Thuban and contains a number of Objects
21             that can be freely defined in an extension.         that can be freely defined in an extension.
22             Each object must a a TitleObject with additional set "object.name".         Each object must a a TitleObject with additional set "object.name".
23           Furthermore, each object must implement the methods Subscribe,
24           Unsubscribe and Destroy (i.e. derive from Modifiable).
25    
26      Extension objects send the following message types:      Extension objects send the following message types:
27    
# Line 83  class Extension(TitledObject, Modifiable Line 87  class Extension(TitledObject, Modifiable
87          Modifiable.UnsetModified(self)          Modifiable.UnsetModified(self)
88    
89      def TreeInfo(self):      def TreeInfo(self):
90          return ("Extension: %s" % self.title,          return (_("Extension: %s") % self.title,
91                  ["%s: %s" % (object.title, object.name)                  ["%s: %s" % (object.title, object.name)
92                   for object in self.objects])                   for object in self.objects])

Legend:
Removed from v.217  
changed lines
  Added in v.2734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26