Trees | Indices | Help |
|
---|
|
1 #-*- coding: utf8 -* 2 # 3 # Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008 4 # 5 # This file is part of XYZCommander. 6 # XYZCommander is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU Lesser Public License as published by 8 # the Free Software Foundation, either version 3 of the License, or 9 # (at your option) any later version. 10 # XYZCommander is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU Lesser Public License for more details. 14 # You should have received a copy of the GNU Lesser Public License 15 # along with XYZCommander. If not, see <http://www.gnu.org/licenses/>. 1618 """ 19 XYZ system data container 20 """ 21 22 __slots__ = ["screen", 23 "top", 24 "skin", 25 "pm", 26 "km", 27 "hm", 28 "am", 29 "conf", 30 "input", 31 "term", 32 ] 335535 object.__setattr__(self, "screen", None) 36 object.__setattr__(self, "top", None) 37 object.__setattr__(self, "skin", None) 38 object.__setattr__(self, "pm", None) 39 object.__setattr__(self, "km", None) 40 object.__setattr__(self, "hm", None) 41 object.__setattr__(self, "am", None) 42 object.__setattr__(self, "conf", None) 43 object.__setattr__(self, "input", None) 44 object.__setattr__(self, "term", None)45 46 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4749 # Assure attributes get assigned only once 50 51 if object.__getattribute__(self, attr) is not None: 52 raise AttributeError(_(u"Attribute %s is a constant" % attr)) 53 else: 54 object.__setattr__(self, attr, val)
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 3 02:02:18 2009 | http://epydoc.sourceforge.net |