Is it possible to return a simple array of arrays using ladon?
I'm coding a webservice according to http://
Ladon's been great and proved to be simple to use, however i can't get the desired ouput
from ladon.ladonizer import ladonize
from ladon.compat import PORTABLE_STRING
from ladon.types.
class Array(LadonType):
content = [PORTABLE_STRING]
class HDClaro(object):
@ladonize(
def consultaServici
What i need is something on the lines of:
Array
(
[0] => Array
(
[0] => COLOR // NOMBRE DEL SERVICIO
[1] => 0 // ESTADO DEL SERVICIO 1= ACTIVO, 0= CANCELADO
[2] => 4.00 // COBRO POR EL SERVICIO
[3] => 30501 // MARCACION CORTA DE SUSCRIPCION
[4] => 3050 // MARCACION CORTA DE BAJA
[5] => 23/11/2010 // FECHA DE SUSCRIPCION
[6] => 14:35:23 // HORA DE SUSCRIPCION
[7] => SMS // MEDIO DE SUSCRIPCION
[8] => 24/11/2010 // FECHA DE BAJA (EN CASO QUE EL ESTADO DE SERVICIO = 0)
[9] => 13:14:50 // HORA DE BAJA (EN CASO QUE EL ESTADO DE SERVICIO = 0)
[10] => SMS // MEDIO DE BAJA (EN CASO QUE EL ESTADO DE SERVICIO = 0)
)
[1] => Array // UN SUB-ARRAY POR CADA REGISTRO
(
[0] => AMOR
[1] => 0
[2] => 4.00
[3] => 30501
[4] => 3050
[5] => 24/11/2010
[6] => 13:19:54
[7] => SMS
[8] => 24/11/2010
[9] => 13:21:18
[10] => SMS
)
)
But I'm getting:
Array
(
[item] => Array
(
[0] => Array
(
)
[1] => Array
(
)
Any help on the direction would be greatly appreciated, also I'd be willing to work on Ladon itself if i get some mentoring
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- ladon Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask armonge for more information if necessary.