00001 # smolt - Fedora hardware profiler 00002 # 00003 # Copyright (C) 2009 Sebastian Pipping <sebastian@pipping.org> 00004 # 00005 # This program is free software; you can redistribute it and/or modify 00006 # it under the terms of the GNU General Public License as published by 00007 # the Free Software Foundation; either version 2 of the License, or 00008 # (at your option) any later version. 00009 # 00010 # This program is distributed in the hope that it will be useful, 00011 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 # GNU General Public License for more details. 00014 # 00015 # You should have received a copy of the GNU General Public License 00016 # along with this program; if not, write to the Free Software 00017 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 class Distro: 00020 def _raise_abstract(self): 00021 raise Exception('Function must be overwritten.') 00022 00023 def key(self): 00024 self._raise_abstract() 00025 00026 def detected(self, debug=False): 00027 return False 00028 00029 def gather(self, gate, debug=False): 00030 pass 00031 00032 def data(self): 00033 self._raise_abstract() 00034 00035 def html(self): 00036 self._raise_abstract()
1.6.3