Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # testservice.py
- from ladon.ladonizer import ladonize
- #from testservice2 import TestService2
- import testservice2
- class TestService(object):
- """Test service for ladon."""
- @ladonize(unicode,rtype=unicode)
- def helloWorld(self,name):
- """Say hello to specific people of the world.
- @param name: Your name
- @rtype: Hello to you
- """
- return "Hello %(name)s" % locals()
- class TestService3(TestService):
- """Testing inheritance"""
- @ladonize(unicode,rtype=unicode)
- def howRU(self,name):
- """Ask the target how he/she is
- @param name: Target's name'"""
- return "How are you %(name)s?" % locals()
- #testservice2.py
- from ladon.ladonizer import ladonize
- class TestService2(object):
- """Test service for ladon."""
- @ladonize(unicode,rtype=unicode)
- def goodBy(self,name):
- """Say good bye to specific people of the world.
- @param name: Your name
- @rtype: Say good bye to you
- """
- return "Good bye %(name)s." % locals()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement