Re: Sending XML data from Django to another server (SAP)

2019-12-10 Thread Integr@te System
Hi, https://pypi.org/project/django-import-export-xml/ On Tue, Dec 10, 2019, 19:20 Pema Galey wrote: > Thank you for your interest.. > But I have developed my Django application and now I am looking for best > method to send data from Django server to SAP using XML Format. >

Re: Sending XML data from Django to another server (SAP)

2019-12-10 Thread Pema Galey
Thank you for your interest.. But I have developed my Django application and now I am looking for best method to send data from Django server to SAP using XML Format. Just I want the recommendation. Thank you > On Dec 7, 2019, at 6:46 PM, Dvs Khamele wrote: > > Hi do you hire contr

Re: Sending XML data from Django to another server (SAP)

2019-12-07 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? I can help you in this and related tasks Best Regards, Divyesh Khamele On Sat, 7 Dec 2019 at 19:51, Pema Galey wrote: > Hi All, > Someone recommend in sending the *data from Django server to SAP server > which interprets in X

Sending XML data from Django to another server (SAP)

2019-12-07 Thread Pema Galey
Hi All, Someone recommend in sending the *data from Django server to SAP server which interprets in XML format.* Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
Hi Ewen, thanks for the reply. I have extended user model with a profile model and a new field (xml_ky). The goal is to verify each user profile and if they have an xml url on field xml_ky, than populate the database with the properties located on that url. Thanks for your help. quinta-feira

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
quarta-feira, 12 de Junho de 2019 às 17:22:01 UTC+1, Nuno Vieira escreveu: > > Hi there. > > I´m having some problems on parsing a real estate xml to database. > The user profile have url field to import properties automatically from > xml feed (url). The user ca

Re: parse xml from url to database

2019-06-12 Thread Taylor Hughes-Scott
Are you able to provide an example url or xml file. That would help to figure out why no listings are created. On Thu., 13 Jun. 2019, 9:04 am Ewen Le Bihan, wrote: > Hi, where does prof.xml_ky comes from ? > > Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit :

Re: parse xml from url to database

2019-06-12 Thread Ewen Le Bihan
Hi, where does prof.xml_ky comes from ? Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit : > > Hi there. > > I´m having some problems on parsing a real estate xml to database. > The user profile have url field to import properties automatically from > xml feed (

parse xml from url to database

2019-06-12 Thread Nuno Vieira
Hi there. I´m having some problems on parsing a real estate xml to database. The user profile have url field to import properties automatically from xml feed (url). The user can insert mannually or automatically, if the user insert the url feed then it should be able to get the objects and save

Re: attribute required and error XML

2017-03-02 Thread chun974
Thanks, ludovic coues, I have find the solution. I used eclipse whith django. In the setting.py I have modify (DEFAULT_CONTENT_TYPE='application/xhtml+xml') to (DEFAULT_CONTENT_TYPE='text/html'). It's OK with this. You're right!! Thanks :) ! Le mercredi 1 mars 2017 10:53:54 UTC+1, ludovic coues

Re: attribute required and error XML

2017-03-01 Thread ludovic coues
I can't answer on your issue exactly, but is not an XML doctype. It's the html5 doctype which as far as I know is SGML and not XML. Try removing the line starting with wrote: Hi all, I have an problem. When I use the django library form, It create an attribute "required" fo

attribute required and error XML

2017-02-28 Thread chun974
Hi all, I have an problem. When I use the django library form, It create an attribute "required" for an input. But when I look on my explorer (firefox or chrome or IE) i have a XML error. "XML parsing error: malformed". this is my code : " class LoginFo

Re: Django w/ XML DOM

2015-09-18 Thread Timothy W. Cook
lxml - I assume using XPath will do what you want. I am not familiar with XML cursor and jaxb. On Fri, Sep 18, 2015 at 9:03 PM, Arnab Banerji <arna...@gmail.com> wrote: > Hi - I am looking for a way to display XML documents in Django and get the > xml section information from cur

Django w/ XML DOM

2015-09-18 Thread Arnab Banerji
Hi - I am looking for a way to display XML documents in Django and get the xml section information from cursor location using XMLCursor like capabilities from XMLBeans (or its replacement, jaxb). Is there a supported library for that? Unfortunately, JSON would not be a good structure

Re: Cannot get xml using xmlhttprequest GET from an external javascript document

2015-03-14 Thread Tim Graham
to determine what you are actually doing simply from the description. On Saturday, March 14, 2015 at 5:15:55 PM UTC-4, Chen Kun wrote: > > I tested the link and the link returns me a XML in the browser. In my > external javascript document, I try to use get XMLhttprequest to get the &

Cannot get xml using xmlhttprequest GET from an external javascript document

2015-03-14 Thread Chen Kun
I tested the link and the link returns me a XML in the browser. In my external javascript document, I try to use get XMLhttprequest to get the document but it fails. The readystate=4 but status=0. Does anyone know the reason? Thanks. -- You received this message because you are subscribed

Re: Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
t; On Sat, Sep 27, 2014 at 8:10 AM, Timothy W. Cook <t...@mlhim.org> wrote: > >> I have a view that opens an XML file (it happens to be a schema but >> that doesn't matter) that specifies a stylesheet. >> It works as expected when opening the XML file locally. &g

Re: Rendering XML using XSLT

2014-09-27 Thread John
Sep 27, 2014 at 8:10 AM, Timothy W. Cook <t...@mlhim.org > <mailto:t...@mlhim.org>> wrote: > > I have a view that opens an XML file (it happens to be a schema > but that doesn't matter) that specifies a stylesheet. > It works as expected when opening the XM

Re: Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
Some details I forgot are that this is Django 1.6.4, Python 3.4.1. The 404 error is on http://192.168.1.9:8080/get_xsd/ccd-description.xsl On Sat, Sep 27, 2014 at 8:10 AM, Timothy W. Cook <t...@mlhim.org> wrote: > I have a view that opens an XML file (it happens to be a schema but that

Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
I have a view that opens an XML file (it happens to be a schema but that doesn't matter) that specifies a stylesheet. It works as expected when opening the XML file locally. ​The stylesheet isn't applied when viewing the file via Django and I see in Firebug that I am getting a 404

Re: Any stable and trusted packages for python XML?

2014-09-20 Thread Timothy W. Cook
XML is more complex than JSON and AFAIK there isn't a generic tool to do this. I work with XML all the time with Python/Django and I would only recommend lxml http://lxml.de/ On Fri, Sep 19, 2014 at 9:39 PM, Chen Xu <xuche...@gmail.com> wrote: > Hi Everyone, > I wonder if

Any stable and trusted packages for python XML?

2014-09-19 Thread Chen Xu
Hi Everyone, I wonder if there is any good, stable and trusted django or python package that can convert dict to xml, and load xml into dict, just like what the json package does. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "D

Re: Model Objects and Updating db via XML

2014-05-23 Thread Amirouche Boubekki
s am I using to bring in the data? > Django knows how to load data from json, xml, whatnot only if it knows about the format. I don't remember we considered Django native serialization/unserialization support (see my mail on Python ML). The thing is that, in your project, it seems like import i

Re: Model Objects and Updating db via XML

2014-05-14 Thread Sayth Renshaw
il.com> wrote: > On Tue, May 13, 2014 at 8:40 PM, Sayth Renshaw <flebber.c...@gmail.com> > wrote: > > Can I ask for some assistance please. > > > > For my project I will need to upate the database from an external xml > file > > consistently. The xml is like

Re: Model Objects and Updating db via XML

2014-05-14 Thread Tom Evans
On Tue, May 13, 2014 at 8:40 PM, Sayth Renshaw <flebber.c...@gmail.com> wrote: > Can I ask for some assistance please. > > For my project I will need to upate the database from an external xml file > consistently. The xml is like this one > http://old.racingnsw.com.au/Si

Re: Model Objects and Updating db via XML

2014-05-14 Thread Sayth Renshaw
ote: > Fixtures are usually in json. Not sure if the is support for importing > fixtures in XML > In any case you can always parse them yourself and create the proper > objects > > Don't forget that this is an open source project, you can code XML support > and contribute >

Re: Model Objects and Updating db via XML

2014-05-14 Thread Avraham Serour
Fixtures are usually in json. Not sure if the is support for importing fixtures in XML In any case you can always parse them yourself and create the proper objects Don't forget that this is an open source project, you can code XML support and contribute On May 13, 2014 10:40 PM, "Sayth Re

Model Objects and Updating db via XML

2014-05-14 Thread Sayth Renshaw
Do I need to provide more information or clarity, or is this a harder question than I imagined and I just need to wait for a guru to come through? Sayth -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Model Objects and Updating db via XML

2014-05-13 Thread Sayth Renshaw
Can I ask for some assistance please. For my project I will need to upate the database from an external xml file consistently. The xml is like this one http://old.racingnsw.com.au/Site/_content/racebooks/20140515GOSF0.xml If i have create my model objects, most of which will have a direct

djnago xml model specification?

2013-05-20 Thread Michał Nowotka
eate new fields from scratch just reading attributes from the original model. This makes no sense: inspect model to create another model. In that case would be much better to create model from some XML specification that would be easier to read and modify and which is not bound to any particular

How to send xml payload by django test client?

2013-05-19 Thread Adam
Hi, I am new to Django and Python...That is not a very good point for me to start up a new Django based web application. I am trying my best to learn how to work with Django. If this is a stupid question, please forgive my ignorance. How could I send a xml payload by Django test client to my

Re: How to Handle XML and CSV processing in Django

2013-05-15 Thread Muhammad Ali
Philip, thank you for the tutorial. That comes in very handy as well. All the best. :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: How to Handle XML and CSV processing in Django

2013-05-14 Thread phil...@bailey.st
On 14/05/13 18:41, Muhammad Ali wrote: > Thanks a lot for these resources. > > All the best, > Muhammad > Hi Muhammad, if you have a csv dataset you can try to import the data into mysql following my short tutorial.

Re: How to Handle XML and CSV processing in Django

2013-05-14 Thread Muhammad Ali
Thanks a lot for these resources. All the best, Muhammad -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Re: How to Handle XML and CSV processing in Django

2013-05-13 Thread Russell Keith-Magee
On Tue, May 14, 2013 at 1:38 PM, Muhammad Ali wrote: > Russell, > > Thank you very much for the insight. > > This was very helpful. :) > > As for the "Django-specific format" that you mentioned, what are you > referring to here? > If you've got a tutorial project, try

Re: How to Handle XML and CSV processing in Django

2013-05-13 Thread Muhammad Ali
Russell, Thank you very much for the insight. This was very helpful. :) As for the "Django-specific format" that you mentioned, what are you referring to here? Thanks for your time. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to Handle XML and CSV processing in Django

2013-05-13 Thread Russell Keith-Magee
that I downloaded > from the web. But I hit a wall when I realized that I don't know how to > handle processing the XML or CSV files once I have them. > > Am I going to import these files into my app's or project's models.py > file? Or, are they to be processed in a different Py

How to Handle XML and CSV processing in Django

2013-05-13 Thread Muhammad Ali
the XML or CSV files once I have them. Am I going to import these files into my app's or project's models.py file? Or, are they to be processed in a different Python file and then be called into one of the other generic Django modules [models, views, etc.] ? Or are the raw (CSV, XML or other

Re: xml dom (minidom) and python UPDATE

2012-10-23 Thread Bill Freeman
Have you tried simplified code on a simplified XML file, playing with it in the shell to get a feel for what you can and can't do? And built up from there. I'm sorry that I can't be more direct. I always reach for lxml and its elementTree emulation when I have XML to parse. Bill On Tue, Oct

xml dom (minidom) and python UPDATE

2012-10-23 Thread MikeKJ
Ok so I have realised that what I think I need is a dict of dicts so far I have a dict, stuff which will be populated by boat and engine BUT it doesnt seem to work using for z in [boat, engine]: stuff.update(z) to populate stuff but still seem to be getting a single boat

xml dom (minidom) and python

2012-10-23 Thread MikeKJ
I cant see the wood for the trees here. help I got this big string of xml from a url which is of data associated to a boat and many boats the tags are 'VehicleRemarketingBoatLineItem' which is the overall tag for a boat set of data whcih contains various tags and tag groups, so dom

Re: handling incoming xml response

2012-09-28 Thread creecode
Hello Sait, On Friday, September 28, 2012 6:38:34 AM UTC-7, Sait Maraşlıoğlu wrote: > > Can u tell me how u handle incoming xml responses, > Generally you start with an XML parsing library. Which one you choose depends on what you are trying to do and also what makes sen

handling incoming xml response

2012-09-28 Thread Sait Maraşlıoğlu
Can u tell me how u handle incoming xml responses, I cant find a way to make them comprehensible and ready to use. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/

handling xml response

2012-09-14 Thread Sait Maraşlıoğlu
I dont know, how to handle an xml response with django. dhtmlx returns someting like that. ?gr_id=*6*=*abc*=*dsdsd*=*6*=*1234*=*this%20is%20Sparta!* gr_id = 6 c0= abc c1 = dsdsd c2= 6 and so on ... These fields corresponds a field in my django model and I dont have an idea how to handle it. I

Re: Problem to complète the xml template

2012-07-05 Thread nef
Hello, Thank you for your help. I have solved my problem. As I did not need a loop because there is just an object. My mistake was at my query that did not return objects. Thank you for your response On Thursday, July 5, 2012 7:42:06 AM UTC, JirkaV wrote: > > > Hello, > >

Re: Problem to complète the xml template

2012-07-05 Thread bruno desthuilliers
On Wednesday, July 4, 2012 8:12:50 PM UTC+2, nef wrote: > > Hello, > Bonjour > I want to cry a function allowing me to complete a template *. Xml. May I > have a problem with the passage of the object render_to_response. In short > here is my code. In fact, I do not

Re: Problem to complète the xml template

2012-07-05 Thread Jirka Vejrazka
> Hello, > http://cdm-fr.fr/2006/schemas/CDM-fr.xsd; language="fr-FR"> > {% if formations %} > > Hi there, you probably want to follow your {% if formations %} statement with: {% for formation in formations %} Check Django template documentation again - you're moving along

Problem to complète the xml template

2012-07-04 Thread nef
Hello, I want to cry a function allowing me to complete a template *. Xml. May I have a problem with the passage of the object render_to_response. In short here is my code. In fact, I do not know how to return an object that can permattre me to complete my template automatically. I am using

Use django and xml to communicate whith ORI-OAI

2012-07-03 Thread nef
Hello, I am working with django and I have a medium level. I want to use xml to interchange data with an application that already exists. This application is ORI-OAI. This is an application that advertises the information in the field of education, especially in France. Only I do not know yet

Re: Httprequest with xml body - how to parse with elementtree?

2012-05-27 Thread francescortiz
This link could help: http://lmgtfy.com/?q=python+parse+xml On Saturday, May 26, 2012 4:24:29 PM UTC+2, Benjamin Carlson wrote: > > I'm new to django, and am trying to write a web service. > > The request will have xml in the body. How can I parse that into > elementtree root n

Httprequest with xml body - how to parse with elementtree?

2012-05-26 Thread Benjamin Carlson
I'm new to django, and am trying to write a web service. The request will have xml in the body. How can I parse that into elementtree root node? Thanks in advance! -Ben -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Django HttpResponse performance with mimetype=application/atom+xml or text/xml

2012-05-10 Thread Vinuta Shetty
t; 1. I am writing an application where I render the needed information > in the XML file (to be more specific GeoRSS) > 2. I am generating the GeoRSS with the means of the GeoAtom1RSS django > class, and passing it to HttpResponse in this way: > > response = HttpResponse(mimetype='application/at

Re: CsrfViewMiddleware from a xml post?

2012-01-24 Thread Robert Steckroth
entById("vote"); element.person.value = person; element.submit(); } On Tue, Jan 24, 2012 at 11:39 AM, Reinout van Rees <rein...@vanrees.org> wrote: > On 24-01-12 16:47, Robert Steckroth wrote: >> >> Hey Gang, is it possible to include a csrf token with a

Re: CsrfViewMiddleware from a xml post?

2012-01-24 Thread Reinout van Rees
On 24-01-12 16:47, Robert Steckroth wrote: Hey Gang, is it possible to include a csrf token with a xml post? It looks like there are options in the view to control this but getting into the header would be nice. Django made it easy for you! There's a javascript snippet you can copy/paste

CsrfViewMiddleware from a xml post?

2012-01-24 Thread Robert Steckroth
Hey Gang, is it possible to include a csrf token with a xml post? It looks like there are options in the view to control this but getting into the header would be nice. This isn't working along with many other tries. Anyone know what the header should look like this offhand? xmlhttp.open

Re: Newbie question on re-defining an XML schema in my Django data model...

2011-11-29 Thread Brian Schott
) class Meta: ordering = ['index',] Brian Schott bfsch...@gmail.com On Nov 29, 2011, at 10:44 AM, Marc Edwards wrote: > I need some help in resetting my thinking on creating my Django data > model. > > I have previously created an XML schema definition for m

Re: Newbie question on re-defining an XML schema in my Django data model...

2011-11-29 Thread Tom Evans
On Tue, Nov 29, 2011 at 3:44 PM, Marc Edwards <jmarcedwa...@gmail.com> wrote: > I need some help in resetting my thinking on creating my Django data > model. > > I have previously created an XML schema definition for my data model, > but am now trying to re-create this XML d

Newbie question on re-defining an XML schema in my Django data model...

2011-11-29 Thread Marc Edwards
I need some help in resetting my thinking on creating my Django data model. I have previously created an XML schema definition for my data model, but am now trying to re-create this XML data model in a Django data model. In my XML schema, I had defined "collections" of XML com

Re: Build mobile apps for DJango sites — Would XML/JSON passing be the best approach?

2011-11-21 Thread esatterwh...@wi.rr.com
ject using DJango. > > My project will provide a web-interface and a mobile app. > > I was thinking to build the mobile app from XML sheets, i.e.: > > > > > text here > text here > text here > text here > text here > > > Then I could easily parse the XM

Re: Build mobile apps for DJango sites — Would XML/JSON passing be the best approach?

2011-11-21 Thread Andre Terra
project will provide a web-interface and a mobile app. > > I was thinking to build the mobile app from XML sheets, i.e.: > > > > > text here > text here > text here > text here > text here > > > Then I could easily parse the XML file using Qt and

Build mobile apps for DJango sites — Would XML/JSON passing be the best approach?

2011-11-21 Thread Alec Taylor
Good evening, I am strongly considering building my project using DJango. My project will provide a web-interface and a mobile app. I was thinking to build the mobile app from XML sheets, i.e.: text here text here text here text here text here Then I could easily parse the XML file using

Re: Piston XML Attributes

2011-10-23 Thread Guy Nesher
Thanks On Oct 23, 9:17 pm, Masklinn <maskl...@masklinn.net> wrote: > On 2011-10-23, at 21:20 , Guy Nesher wrote:> Hi, > > > I've started playing with Piston several days ago but I'm unable to > > create XML attributes. > > Do I need to create a special emitter fo

Re: Piston XML Attributes

2011-10-23 Thread Masklinn
On 2011-10-23, at 21:20 , Guy Nesher wrote: > Hi, > > I've started playing with Piston several days ago but I'm unable to > create XML attributes. > Do I need to create a special emitter for that ? >From what I can read in the XMLEmitter code, I would think so yes: Piston's &g

Piston XML Attributes

2011-10-23 Thread Guy Nesher
Hi, I've started playing with Piston several days ago but I'm unable to create XML attributes. Do I need to create a special emitter for that ? Guy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: django request xml

2011-07-29 Thread Tom Evans
On Fri, Jul 29, 2011 at 9:54 AM, Exia <arios...@gmail.com> wrote: > hi, I'd like to send an xml to a django web server. > I've written a python program like this: > > req = urllib2.Request('http://127.0.0.1/abc/', strxml) > f = urllib2.urlopen(req) > > b

django request xml

2011-07-29 Thread Exia
hi, I'd like to send an xml to a django web server. I've written a python program like this: req = urllib2.Request('http://127.0.0.1/abc/', strxml) f = urllib2.urlopen(req) but I don't know how to deal with it in views.py of django in the server... what should I do in the following function

Re: Parsing an XML feed using ElementTree

2011-05-25 Thread Sithembewena Lloyd Dube
tringIO(compressed_data) > gzipper = gzip.GzipFile(fileobj=compressed_stream) > data = gzipper.read() > current_path = os.path.realpath(MEDIA_ROOT + '/xml-files/d.xml') > data_file = open(current_path, 'w') > data_file.write(data) > data_fil

Re: Parsing an XML feed using ElementTree

2011-05-25 Thread Sithembewena Lloyd Dube
) gzipper = gzip.GzipFile(fileobj=compressed_stream) data = gzipper.read() current_path = os.path.realpath(MEDIA_ROOT + '/xml-files/d.xml') data_file = open(current_path, 'w') data_file.write(data) data_file.close() xml_data = ET.parse(open(current_path, 'r

Re: Parsing an XML feed using ElementTree

2011-05-24 Thread Brian Bouterse
We all have our opinions. Either way this conversation is OT from Django. On Tue, May 24, 2011 at 4:07 PM, Masklinn wrote: > On 2011-05-24, at 21:57 , Brian Bouterse wrote: > > +1 for xpath > > > > I also like using > >

Re: Parsing an XML feed using ElementTree

2011-05-24 Thread Masklinn
On 2011-05-24, at 21:57 , Brian Bouterse wrote: > +1 for xpath > > I also like using > xml.dom.minidomsince > it is so simple and straightforward. > I'm sorry, but I whole-heartedly disagree with this. ElementTree is orders of magnitude

Re: Parsing an XML feed using ElementTree

2011-05-24 Thread Brian Bouterse
+1 for xpath I also like using xml.dom.minidom<http://docs.python.org/library/xml.dom.minidom.html>since it is so simple and straightforward. If you XML is poorly formed go with beautiful soup<http://www.crummy.com/software/BeautifulSoup/> . Brian 2011/5/24 Тимур Зарипов <q21

Re: Parsing an XML feed using ElementTree

2011-05-24 Thread Тимур Зарипов
I'd really reallly suggest you to use lxml library <http://lxml.de/> for xml parsing -- it has xpath in it. On Tue, May 24, 2011 at 2:13 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi Everyone, > > I am trying to parse an XML feed and display the text of each chi

Re: Parsing an XML feed using ElementTree

2011-05-24 Thread Daniel Roseman
On Tuesday, May 24, 2011 11:13:31 AM UTC+1, Lloyd Dube wrote: > > Hi Everyone, > > I am trying to parse an XML feed and display the text of each child node > without any success. My code in the python shell is as follows: > > >>>import urllib > >>&

Parsing an XML feed using ElementTree

2011-05-24 Thread Sithembewena Lloyd Dube
Hi Everyone, I am trying to parse an XML feed and display the text of each child node without any success. My code in the python shell is as follows: >>>import urllib >>>from xml.etree import ElementTree as ET >>>content = urllib.urlopen(' http://xml.matchbook.com/

Re: XML parsing

2011-01-31 Thread Adrian Bool
I am trying to parse my response by the following method > elif request.method == 'POST': >reqp=request.raw_post_data >response = HttpResponse(mimetype='text/xml') >response.write(reqp) >print response >xmldoc = minidom.parse(

XML parsing

2011-01-31 Thread sami nathan
HI I am trying to parse my response by the following method elif request.method == 'POST': reqp=request.raw_post_data response = HttpResponse(mimetype='text/xml') response.write(reqp) print response xmldoc = minidom.parse('binary.xml') reflist

xml-rpc

2010-11-01 Thread Lic . José M . Rodriguez Bacallao
is possible tu run xml-rpc code from django_xmlrpc project through django test server (python manage.py runserver)? -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que

Re: REST XML + HTML API suggestions

2010-09-21 Thread Brian Bouterse
I typically check the content type and have the response match the content type of the incoming request. I also typically have this be the only decision that lives within views.py, and in turn calls out to code in other modules to handle xml and/or html presentation respectively. Also, I would

Re: REST XML + HTML API suggestions

2010-09-21 Thread Alexandre González
I'm using django-piston in my app, and it's incredible. You can use XML in your RESTful API, but if you like to user another emitter as JSON, Pickle... you can do at-the-moment! Incredible! On Tue, Sep 21, 2010 at 11:11, vikalp sahni <vikalpsa...@gmail.com> wrote: > Hi, > >

Re: REST XML + HTML API suggestions

2010-09-21 Thread vikalp sahni
at 11:09 AM, Brendon <brendon.j.co...@gmail.com> wrote: > Hi all, > > I want to use DJango to implement an XML based RESTful API and a > website together using DJango. I am wondering if anyone here is aware > of any tutorials on ways of achieving this in DJango without > d

REST XML + HTML API suggestions

2010-09-20 Thread Brendon
Hi all, I want to use DJango to implement an XML based RESTful API and a website together using DJango. I am wondering if anyone here is aware of any tutorials on ways of achieving this in DJango without duplicating too much code? Basically what I want to achieve is to use the same core logic

Custom Feed Generator XML

2010-09-13 Thread Scott W
Hi, I'm trying to extend the Atom1Feed in the Syndication Framework to print out a list of names stored within Django, similar to the way GData and OData work. I would like to know how to display attributes within an XML tag. So, for example: Scott W s...@... 555-4341 I also want

Re: XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
Regards, > Xavier. > > Le 6 sept. 2010 à 16:58, Sithembewena Lloyd Dube a écrit : > > Hi all, > > I added a sitemap app to my Django 1.2.1. app to and when I browse to > sitemap.xml on my development machine, Django does generate valid xml > sitemap. > However, it's us

Re: XML sitemap not using correct domain name

2010-09-06 Thread Xavier Ordoquy
.2.1. app to and when I browse to > sitemap.xml on my development machine, Django does generate valid xml > sitemap. > However, it's using www.example.com/ in the generated links instead of my > local IP address and port number. is this behaviour customisable without a > hack - and

XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
Hi all, I added a sitemap app to my Django 1.2.1. app to and when I browse to sitemap.xml on my development machine, Django does generate valid xml sitemap. However, it's using www.example.com/ in the generated links instead of my local IP address and port number. is this behaviour customisable

Re: Help needed for XML to xslt conversion

2010-08-13 Thread Boguslaw Faja
ple to pick the data from simple xml for example > > > > > >     >         Empire Burlesque >         Bob Dylan >         USA >         Columbia >         10.90 >         1985 >     > > > to convert it into a table following xsl works > >

Help needed for XML to xslt conversion

2010-08-13 Thread Rahul
Hi I have seen a lots of example to pick the data from simple xml for example Empire Burlesque Bob Dylan USA Columbia 10.90 1985 to convert it into a table following xsl works

Re: Parsing xml containing image - rawImage gif

2010-07-05 Thread Andy McKay
On 2010-07-05, at 8:09 AM, Bjørn Høj Jakobsen wrote: > I have the following xml. how do I pass the image to a file. This isn't really relevant to Django. There are libraries in Python for parsing XML, try using those: http://docs.python.org/modindex.html#cap-X There are also SOAP librar

Parsing xml containing image - rawImage gif

2010-07-05 Thread Bjørn Høj Jakobsen
I have the following xml. how do I pass the image to a file. http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xmlns:enc="http:// schemas.xmlsoap.org/soap/encodi

XSD from a Django model (as per XML serializer)

2010-06-09 Thread Spaceman Paul
Is there a way to generate an XSD for the "simple xml dialect" produced by the XML serializer for a given Django model? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: XML database updates

2010-06-04 Thread Venkatraman S
On Fri, Jun 4, 2010 at 9:40 PM, Nick <nickt...@gmail.com> wrote: > I have been playing with > ElementTree and BeautifulSoup but there is just something I'm not > getting. > What is the problem that you are facing? if your XML is well defined, then parse it, extract

XML serialize - sql cursor

2010-05-25 Thread Bruno Galindro da Costa
Hi all, I need to serialize in XML, through django.core.serializers class, the result of the function bellow. Is it possible? If not, how can I execute the query bellow through Django´s API? *MY FUNCTION:* def select_site_sql(): cursor = connection.cursor() cursor.execute("&qu

Output data across models in XML

2010-05-19 Thread Andrew
I'm trying to make a webservice that outputs XML representation of data from a model. The model itself looks roughly like this: - class Product(models.Model): short_description=models.CharField(max_length=300) long_description=models.CharField(max_length=2000) price

Re: Strange natural keys serialization XML format (Django SVN-12978)

2010-04-25 Thread h-k-ii
Thank you for your advise. I created ticket regarding 1 and 3 to http://code.djangoproject.com/ticket/13418 On Apr 16, 4:12 pm, Russell Keith-Magee wrote: > On Fri, Apr 16, 2010 at 8:40 PM, h-k-ii wrote: > > You are correct. > > > Based on my

Re: Strange natural keys serialization XML format (Django SVN-12978)

2010-04-16 Thread Russell Keith-Magee
On Fri, Apr 16, 2010 at 8:40 PM, h-k-ii wrote: > You are correct. > > Based on my experience with natural keys, I would propose improvements > for the documentation [1] - but perhaps these are matters of personal > opinion: We're always open to suggestions on how to

Re: Strange natural keys serialization XML format (Django SVN-12978)

2010-04-16 Thread h-k-ii
at 5:26 PM, h-k-ii <hunajaki...@gmail.com> wrote: > > I find dumpdata output in XML format quite strange for natural keys. > > Each character in a key reference is wrapped in a . > > > Is this a bug to be reported or a feature? > > It certainly doesn't look right; so

Re: Strange natural keys serialization XML format (Django SVN-12978)

2010-04-16 Thread Russell Keith-Magee
On Fri, Apr 16, 2010 at 5:26 PM, h-k-ii <hunajaki...@gmail.com> wrote: > I find dumpdata output in XML format quite strange for natural keys. > Each character in a key reference is wrapped in a . > > Is this a bug to be reported or a feature? It certainly doesn't look right;

Strange natural keys serialization XML format (Django SVN-12978)

2010-04-16 Thread h-k-ii
I find dumpdata output in XML format quite strange for natural keys. Each character in a key reference is wrapped in a . Is this a bug to be reported or a feature? * >python manage.py dumpdata --format xml --natural appname ... Doctype1 ... D o c t

Re: Django HttpResponse performance with mimetype=application/atom+xml or text/xml

2010-03-30 Thread Dan Carroll
How big is the XML? Since you've already verified that the generation isn't the problem, this could be a browser issue. Most browsers attempt to parse and style the XML (to show it in a nice document tree), which could take a while for really huge files. When choosing to output with the HTML

Django HttpResponse performance with mimetype=application/atom+xml or text/xml

2010-03-29 Thread serjant
Hi all. Can somebody help me and point me to solving the following problem: 1. I am writing an application where I render the needed information in the XML file (to be more specific GeoRSS) 2. I am generating the GeoRSS with the means of the GeoAtom1RSS django class, and passing

  1   2   3   4   >