12345678910111213141516171819202122232425262728 |
- from Base import Base
- from Util import Strings
- class Tcont(Base):
- def __init__(self):
- Base.__init__(self)
- def get_tcont_id(self):
- """
- Get the tcont id
- :return: Return the tcont id or blank
- """
- data_compare = self.name.lower().split()
- index = Strings.index_value(data_compare, "tcont")
- if index >= 0:
- return data_compare[index + 1].strip()
- else:
- return ""
- def get_tcont_profile(self):
- data_compare = self.name.lower().split()
- index = Strings.index_value(data_compare, "profile")
- if index >= 0:
- return data_compare[index + 1].strip()
- else:
- return ""
|