summaryrefslogtreecommitdiff
path: root/Param/Int/__init__.py
blob: b7a5d3221ddc43fb7ce73ab37e6757c31a6d11a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
from Param import Param

def ParamInt(Param):
  def __init__(self, value, classname=""):
    self._classname = classname
    super(ParamInt).__init__()
    try: 
      self.value = int(value)
    except Exception as e:
      self.err_warn("Not an int: %s" % str(value))
      self.err_warn(str(e))