#!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                             Michael A.G. Aivazis
#                      California Institute of Technology
#                      (C) 1998-2005  All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
 
import urllib
from AbstractNode import AbstractNode
 
 
class Facility(AbstractNode):
 
 
    tag = "facility"
 
 
    def notify(self, parent):
        return parent.onFacility(self)
 
 
    def content(self, content):
        self.value += urllib.unquote(content)
        self.locator = self.document.locator
        return
 
 
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, document)
        self.name = attributes["name"]
        self.value = ''
        self.locator = None
        return
 
 
# version
__id__ = "$Id: Facility.py,v 1.1.1.1 2005/03/08 16:13:43 aivazis Exp $"
 
# End of file