source: subversion/applications/routing/pyroute-dev/meta.py @ 34690

Last change on this file since 34690 was 18455, checked in by buerste, 10 years ago

-remove BOM
-fix version strings

  • Property svn:keywords set to Rev
File size: 1.3 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4"""Meta-information (self-testing, self-diagnosis, etc.) for pyroute
5
6Usage:
7        Library for pyroute
8"""
9
10__version__ = "$Rev: 18455 $"[1:-2]
11__license__ = """This program is free software: you can redistribute it and/or modify
12it under the terms of the GNU General Public License as published by
13the Free Software Foundation, either version 3 of the License, or
14(at your option) any later version.
15
16This program is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19GNU General Public License for more details.
20
21You should have received a copy of the GNU General Public License
22along with this program. If not, see <http://www.gnu.org/licenses/>."""
23_debug = 0
24
25
26from base import pyrouteModule
27from listable import *
28
29class moduleInfo(pyrouteModule, listable):
30        def __init__(self, modules):
31                pyrouteModule.__init__(self, modules)
32
33        def numItems(self):
34                return(len(self.m))
35        def getItemText(self,n):
36                return("Module: \"%s\"" % (self.m.keys()[n]))
37        def getItemStatus(self,n):
38                module = self.m.values()[n]
39                if("getStatus" in dir(module)):
40                        return module.getStatus();
41                return("")
42        def getItemClickable(self,n):
43                return(True)
44        def getItemAction(self,n):
45                return("")
Note: See TracBrowser for help on using the repository browser.