new_contents: # -*- coding: utf-8 -*-
  
  # Copyright(C) 2010  Romain Bignon, Florent Fourcot
  #
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, version 3 of the License.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
  
  from datetime import datetime
  from .base import IBaseCap, CapBaseObject
  
  
  __all__ = ['ICapWaterLevel']
  
  
  class Gauge(CapBaseObject):
      def __init__(self, id):
          CapBaseObject.__init__(self, id)
  
          self.add_field('name', basestring)
  	self.add_field('river', basestring)
          self.add_field('level', float)
          self.add_field('flow', float)
          self.add_field('lastdate', datetime)
          self.add_field('forecast', basestring)
  
  class GaugeHistory(CapBaseObject):
      def __init__(self):
          CapBaseObject.__init__(self, None)
  
          self.add_field('level', float)
          self.add_field('flow', float)
          self.add_field('date', datetime)
  
  
  class ICapWaterLevel(IBaseCap):
      def get_lastlevel(self):
          raise NotImplementedError()
  
      def get_list(self):
          raise NotImplementedError()
  
      def get_history(self, id):
          raise NotImplementedError()
  
      def last(self, id):
          raise NotImplementedError()
  
      def search(self, pattern):
          raise NotImplementedError()
  
  
  
  
subject: Add a new capabilitie to display information about a gauge