Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 2 years ago

Closed 2 years ago

Last modified 23 months ago

#10692 closed Bug Report - General (fixed)

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

Reported by: keemllib@… Owned by: wagnerrp
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 2 years ago.
config.xml.bad.gz (268 bytes) - added by anonymous 2 years ago.
Compressed to get past the spam filter.
config.xml.good.gz (336 bytes) - added by anonymous 2 years ago.
Attachment delayed to get past spam filter.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by anonymous

Changed 2 years ago by anonymous

Compressed to get past the spam filter.

Changed 2 years ago by anonymous

Attachment delayed to get past spam filter.

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

  • Resolution set to fixed
  • Status changed from new to closed

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 23 months ago by wagnerrp

  • Milestone changed from unknown to 0.26

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.