~cbehrens/nova/lp844160-build-works-with-zones

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/web/howto/listings/soap.rpy

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from twisted.web import soap
 
2
import os
 
3
 
 
4
def getQuote():
 
5
    return "That beverage, sir, is off the hizzy."
 
6
 
 
7
class Quoter(soap.SOAPPublisher):
 
8
    """Publish one method, 'quote'."""
 
9
 
 
10
    def soap_quote(self):
 
11
        return getQuote()
 
12
 
 
13
resource = Quoter()