69 """ |
69 """ |
70 Protected method to add information about global variables. |
70 Protected method to add information about global variables. |
71 |
71 |
72 @param attr Attribute object to be added (Attribute) |
72 @param attr Attribute object to be added (Attribute) |
73 """ |
73 """ |
74 if not self.globals.has_key(attr.name): |
74 if attr.name not in self.globals: |
75 self.globals[attr.name] = attr |
75 self.globals[attr.name] = attr |
76 |
76 |
77 def _getglobal(self, name): |
77 def _getglobal(self, name): |
78 """ |
78 """ |
79 Protected method to retrieve a global variable by name. |
79 Protected method to retrieve a global variable by name. |
90 """ |
90 """ |
91 Protected method to add information about attributes. |
91 Protected method to add information about attributes. |
92 |
92 |
93 @param attr Attribute object to be added (Attribute) |
93 @param attr Attribute object to be added (Attribute) |
94 """ |
94 """ |
95 if not self.attributes.has_key(attr.name): |
95 if attr.name not in self.attributes: |
96 self.attributes[attr.name] = attr |
96 self.attributes[attr.name] = attr |
97 |
97 |
98 def _getattribute(self, name): |
98 def _getattribute(self, name): |
99 """ |
99 """ |
100 Protected method to retrieve an attribute by name. |
100 Protected method to retrieve an attribute by name. |