Ladonized param definition must be a LadonType or iterable

Asked by Ales Klimsa

Hi Jaakob,
I have problem with compex types. I defined my own complex Type Customer:

from ladon.types.ladontype import LadonType

class Customer(LadonType):
    ID = int
--------------
A I'm trying use it in WS method:

@ladonize(PORTABLE_STRING, Customer, rtype = int)
 def addCustomer(self, sessionId, customer):

But this error message appears. Could you help me, what is wrong? Thanks

  File "/python3/lib/python3.2/site-packages/ladon-0.6.5-py3.2.egg/ladon/types/typemanager.py", line 117, in analyze_param
    raise NeedToDefineParseTimeException("Ladonized param definition must be a LadonType or iterable")
ladon.exceptions.types.NeedToDefineParseTimeException: Ladonized param definition must be a LadonType or iterable

Question information

Language:
English Edit question
Status:
Solved
For:
ladon Edit question
Assignee:
No assignee Edit question
Solved by:
Ales Klimsa
Solved:
Last query:
Last reply:
Revision history for this message
jsgaarde (jakob-simon-gaarde) said :
#1

Hi Ales

I have no trouble making doing that. I have added an example: http://paste.ubuntu.com/774338/

Revision history for this message
Ales Klimsa (ales-klimsa) said :
#2

Sorry, my mistake, it's already OK. Thanks for answer