Mailing List Archive

Ticket #10692: The New Format Of config.xml Is Converted To The Old Format
#10692: The New Format Of config.xml Is Converted To The Old Format
--------------------------------------+-------------------------
Reporter: keemllib@… | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
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()
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10692>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #10692: The New Format Of config.xml Is Converted To The Old Format [ In reply to ]
#10692: The New Format Of config.xml Is Converted To The Old Format
----------------------------------+-----------------------------
Reporter: keemllib@… | Owner: wagnerrp
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by Raymond Wagner <rwagner@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:a2f0333714242dbd8fb0f24c84f0d5dccbf3c4b4/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="a2f0333714242dbd8fb0f24c84f0d5dccbf3c4b4"
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.
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10692#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #10692: The New Format Of config.xml Is Converted To The Old Format [ In reply to ]
#10692: The New Format Of config.xml Is Converted To The Old Format
----------------------------------+-----------------------------
Reporter: keemllib@… | Owner: wagnerrp
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by wagnerrp):

* milestone: unknown => 0.26


--
Ticket URL: <http://code.mythtv.org/trac/ticket/10692#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits