summaryrefslogtreecommitdiff
path: root/src/python/Gauge.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/Gauge.py')
-rw-r--r--src/python/Gauge.py57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/python/Gauge.py b/src/python/Gauge.py
deleted file mode 100644
index abfa1c77..00000000
--- a/src/python/Gauge.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-#======================================================================
-# FILE: Gauge.py
-# CREATOR: mtearle
-#
-# SPDX-FileCopyrightText: 2001, Eric Busboom <eric@civicknowledge.com>
-# SPDX-FileCopyrightText: 2001, Patrick Lewis <plewis@inetarena.com>
-#
-# SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
-#
-#
-#
-#======================================================================
-
-from LibicalWrap import *
-from Error import LibicalError
-from Component import Component
-
-class Gauge:
- """
- Base class for gauge
- """
-
- class ConstructorFailedError(LibicalError):
- "Failed to create a Gauge "
-
- class CloneFailedError(LibicalError):
- "Failed to clone a component given Gauge "
-
- class CompareFailedError(LibicalError):
- "Failed to compare a component given Gauge "
-
- def __init__(self,ref=None,sql=None,expand=0):
- if ref != None:
- self._ref = ref
- elif sql != None:
- s = str(sql)
- self._ref = icalgauge_new_from_sql(s,expand)
- else:
- Gauge.ConstructorFailedError("No SQL Specified")
-
- def __del__(self):
- if self._ref != None:
- icalgauge_free(self._ref)
- self._ref = None
-
- def ref(self):
- return self._ref
-
- def compare(self, comp):
- if not isinstance(comp,Component):
- raise Gauge.CompareFailedError("Argument is not a component")
-
- if comp.ref() == None:
- raise Gauge.CompareFailedError("Argument is not a component")
-
- return icalgauge_compare(self._ref, comp.ref())