Advertisement
Guest User

Aldak

a guest
Dec 7th, 2011
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from ladon.ladonizer import ladonize
  2. from ladon.compat import PORTABLE_STRING
  3. from ladon.exceptions.types import LadonTypeException
  4. import psycopg2
  5. from adr.tridy import Album, Band
  6.  
  7. class TestService(object):
  8.     """
  9.     Search through albums and bands.
  10.     """
  11.  
  12.     @ladonize(PORTABLE_STRING,rtype=[ Band ])
  13.     def listBands(self,search_frase=PORTABLE_STRING('')):
  14.                 try:
  15.                         raise Exception('error')
  16.                      
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement