🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27659

django - (de)serializacja xml

#27659
From: Stefan
Date: Mon, 30 Aug 2010 10:49
7 lines
1311 bytes
Mam problem, ponieważ próbuje django (1.2.1) zmusić do odczytania danych 
z xmla i wyplucia jsona. Próbuje użyć do tego serializers z django.core 
ale gdy daje

serializers.serialize('json', serializers.deserialize('xml', data))

to nic nie dostaje []. Co w takim razie robię źle?
Technical Details
Message-ID: <4c7b8ccb$0$27039$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!news2.arglkargh.de!news.wiretrip.org!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!news2.arglkargh.de!news.wiretrip.org!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Mon, 30 Aug 2010 12:49:47 +0200
From: Stefan <stefan.py@onet.pl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
Newsgroups: pl.comp.lang.python
Subject: django - (de)serializacja xml
Lines: 7
Message-ID: <4c7b8ccb$0$27039$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.15.83.218
X-Trace: 1283165387 unt-rea-a-02.news.neostrada.pl 27039 83.15.83.218:55232
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit