2012/11/29 Ruben Hidalgo <[email protected]>
> Proviene de parsear un XML con urllib2.
> Mi funcion retorna una list mediante un bucle que extrae los valores via
> el metodo elem.xpath.
> Ejemplo:
>
> def getmylist():
> ...
> try:
> resp = getXML(urlopen(url))
> if resp:
> list= []
> for item in resp.elem.xpath:
> list.append(item.xpath('text()')[0])
> return list
> except:
> ....
> ...
> este list es el que trato de guardar en mi session.
>
> Creo que este parseado no lo toma como objeto.
>
Los elementos que hay en la lista no serán objetos tipo string... hazles
str( item.xpath('text()')[0]) para meterlos en al lista.
Mikek
--
Mikel Larreategi
[email protected]
CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
_______________________________________________
Usuarios-Plone mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-usuarios-plone