[mythtvnz] Finding a gap in the MythTV Scheduler

Hadley Rich mythtvnz@lists.linuxnut.co.nz
Sat, 19 May 2007 19:00:16 +1200


On Sat, 19 May 2007 10:51:09 Steven Ellis wrote:
> Finally have a chance to try your code out, and sadly we base our build
> of 0.20-fixes. Any tips on getting it running?
>
> I created a file test.py as follows
>
> #!/usr/bin/python
> import MythTV
> m = MythTV.MythTV()
>
> upcoming = m.getUpcomingRecordings()
>
> print upcoming[0].title, upcoming[0].recstartts
>
>
> Then running it produces
>
> mythtv@mythtv:~$ ./test.py
> Traceback (most recent call last):
>   File "./test.py", line 3, in ?
>     m = MythTV.MythTV()
>   File "/home/mythtv/MythTV.py", line 135, in __init__
>     self.db = get_database_connection()
> NameError: global name 'get_database_connection' is not defined
>
>
> Got any pointers?

This is now fixed in SVN revision 13462

hads

-- 
http://nicegear.co.nz
New Zealand's VoIP Supplier