from twisted.web import soap
from TwistedQuotes import quoters
import os

quotefile = os.path.join(os.path.split(__file__)[0], "quotes.txt")
quoter = quoters.FortuneQuoter([quotefile])

class Quoter(soap.SOAPPublisher):
    """Publish two methods, 'add' and 'echo'."""

    def soap_quote(self):
        return quoter.getQuote()

resource = Quoter()                 
