Search found 7 matches

by kmedcalf
Wed Nov 05, 2014 5:36 pm
Forum: Developers Corner
Topic: Python code
Replies: 4
Views: 23680

Re: Python code

Here is updated code with the passwords removed -- it is currently working for me against the new servers. There are two changes: 1) the URL is changed to point to the new server 2) the HTTP Authorization Handler is changed from HTTPDigestAuthHandler() to HTTPBasicAuthHandler() The new server does n...
by kmedcalf
Sun Oct 19, 2014 9:15 am
Forum: Support
Topic: DataDirect replacement service going live!
Replies: 139
Views: 287116

Re: DataDirect replacement service going live!

I am getting a valid reply with no data. It is picking up the lineups, just not returning data ... (NB worked yesterday after changing the servername). <?xml version='1.0' encoding='utf-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/20...
by kmedcalf
Mon Jan 23, 2012 8:24 pm
Forum: Developers Corner
Topic: Python xml parser code ScheduleDirect.py
Replies: 1
Views: 9867

Re: Python xml parser code ScheduleDirect.py

Advisories Records now stacked and output after the Program # This module parses using a very simple expat parser the ddata.xml file returned by # the TMSWebService.py sample program. It is a "Record Generator" that yeilds tuples # of (recordName, progress, attributeDictionary). All time values are ...
by kmedcalf
Mon Jan 23, 2012 8:21 pm
Forum: Developers Corner
Topic: Python build an SQLite Relational Database
Replies: 1
Views: 8075

Re: Python build an SQLite Relational Database

Fixed Advisories, so uncommented code to ignore them # This module uses the record stream returned by SchedulesDirect.py to build an SQLite # relational database. # # The code is released into the Public Domain. # If you break it, you own both halves. # You are free to use or modify this code. # # O...
by kmedcalf
Sat Jan 21, 2012 6:33 pm
Forum: Developers Corner
Topic: Python build an SQLite Relational Database
Replies: 1
Views: 8075

Python build an SQLite Relational Database

This code used the ScheduleDirect.py module to parse the XML data and build an SQLite Database from the data. Code is released into the Public Domain. TMSWebService.py will retrieve the data from SD, ScheduleDirect.py parses the XML into a record stream, LoadSQL.py uses ScheduleDirect.py and the dow...
by kmedcalf
Sat Jan 21, 2012 4:04 pm
Forum: Developers Corner
Topic: Python xml parser code ScheduleDirect.py
Replies: 1
Views: 9867

Python xml parser code ScheduleDirect.py

The attached code is sample Python code which uses a very simple expat parser to convert the ddata.xml file as returned by TMSWebService.py (the raw TMS XML Data) into a stream of record tuples. There is minimal error checking or processing of the raw XML data other than the conversion of all "times...
by kmedcalf
Sat Sep 13, 2008 7:20 am
Forum: Developers Corner
Topic: Python code
Replies: 4
Views: 23680

Re: Python code

Simple Retrieval of XML data with Python. Usage with gzipped=True may or may not work. Retrieval with the defaults works just peachy and results in a latin-1 encoded XML document stored in the file specified. Simply provide a username and password and the data will be retrieved and stored to disk. I...