SHARE
TWEET

Untitled

a guest Sep 26th, 2011 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from ladon.ladonizer import ladonize
  2. from ladon.types.ladontype import LadonType
  3.  
  4. class data_response(LadonType):
  5.         first = unicode
  6.         second = int
  7.  
  8. class testf_response(LadonType):
  9.         state = unicode
  10.         data = data_response
  11.  
  12. class testt(object):
  13.  
  14.         @ladonize(unicode, unicode, rtype=testf_response)
  15.         def testf(self, first, second):
  16.                 result = testf_response()
  17.                 result.state = "ff"
  18.                 result.data = data_response()
  19.                 result.data.first = "test"
  20.                 result.data.second = 2
  21.                 return result
  22.  
  23.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top