Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10692 closed Bug Report - General (fixed)

The New Format Of config.xml Is Converted To The Old Format

Reported by: keemllib@… Owned by: Raymond Wagner
Priority: minor Milestone: 0.26
Component: Bindings - Python Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

My ~/.mythtv/config.xml gets converted from the new format to the old, with no new lines (the whole file is one line.) Good and bad files are attached. This happens whenever I execute my python 'upcoming' script.

To duplicate:
Verify that ~/.mythtv/config.xml is in the 'new' format
Execute the script below (the fragment is enough to convert it)
cat ~/.mythtv/config.xml, it will be one line in the 'old' format
#!/usr/bin/env python
    
from MythTV import MythBE
    
be = MythBE()

Attachments (3)

version.txt (759 bytes) - added by anonymous 12 years ago.
config.xml.bad.gz (268 bytes) - added by anonymous 12 years ago.
Compressed to get past the spam filter.
config.xml.good.gz (336 bytes) - added by anonymous 12 years ago.
Attachment delayed to get past spam filter.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by anonymous

Attachment: version.txt added

Changed 12 years ago by anonymous

Attachment: config.xml.bad.gz added

Compressed to get past the spam filter.

Changed 12 years ago by anonymous

Attachment: config.xml.good.gz added

Attachment delayed to get past spam filter.

comment:1 Changed 12 years ago by Raymond Wagner <rwagner@…>

Resolution: fixed
Status: newclosed

In a2f0333714242dbd8fb0f24c84f0d5dccbf3c4b4/mythtv:

Update Python bindings to use the new config.xml format.

This creates a new DatabaseConfig? class to manage access credentials for
the database, moving it out of DBCache. DBCache (and MythDB) will still
continue to take the same arguments it did previously. Both the old and
new format are supported, and old format files will be rewritten upon
successful connection to the database. Files are now properly
pretty-printed when created.

This also converts everything over to absolute importing.

Fixes #10692.

comment:2 Changed 12 years ago by Raymond Wagner

Milestone: unknown0.26
Note: See TracTickets for help on using tickets.