forked from quentinhardy/odat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Info.py
31 lines (27 loc) · 629 Bytes
/
Info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
# -*- coding: utf-8 -*-
from OracleDatabase import OracleDatabase
import logging
class Info (OracleDatabase):
'''
Information about the remote Oracle database
'''
def __init__(self,args):
'''
Constructor
'''
logging.debug("Info object created")
OracleDatabase.__init__(self,args)
self.version = ''
self.os = ''
def isVersion(self, version=None):
'''
return True if version 11
'''
if version in self.version : return True
else: return False
def __str__(self):
'''
String representation
'''
return "Oracle Version: {0} and OS Version: {1}".format(self.version,self.os)