changeset 136:92b7582b8f44

Use new style classes
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 31 Oct 2012 14:22:23 +0100
parents ce707fbb9666
children 5a4946fd9e6d
files getan/controller.py getan/project.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Wed Oct 31 14:21:44 2012 +0100
+++ b/getan/controller.py	Wed Oct 31 14:22:23 2012 +0100
@@ -18,7 +18,8 @@
 
 logger = logging.getLogger()
 
-class GetanController:
+class GetanController(object):
+
     def __init__(self, backend, pv_class, ev_class):
         self.ev_class = ev_class
         self.pv_class = pv_class
--- a/getan/project.py	Wed Oct 31 14:21:44 2012 +0100
+++ b/getan/project.py	Wed Oct 31 14:22:23 2012 +0100
@@ -10,7 +10,7 @@
 
 from datetime import datetime, timedelta
 
-class Project:
+class Project(object):
 
     def __init__(self, id, key, desc, total):
         self.id      = id
@@ -60,7 +60,7 @@
         return total
 
 
-class Entry:
+class Entry(object):
 
     def __init__(self, id, project_id, start, end, desc):
         self.id         = id
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)