117 """ |
117 """ |
118 Mixin class implementing the notion of visibility. |
118 Mixin class implementing the notion of visibility. |
119 """ |
119 """ |
120 def __init__(self): |
120 def __init__(self): |
121 """ |
121 """ |
122 Method to initialize the visibility. |
122 Constructor |
123 """ |
123 """ |
124 if self.name.startswith('__'): |
124 if self.name.startswith('__'): |
125 self.setPrivate() |
125 self.setPrivate() |
126 elif self.name.startswith('_'): |
126 elif self.name.startswith('_'): |
127 self.setProtected() |
127 self.setProtected() |