import needs to be string not String, cache points to boxee's temporary directory, minor gui placement adjustments

This commit is contained in:
Erik Kristensen 2010-11-14 00:47:59 -05:00
parent 987c6b4008
commit 56ffc2d7ed
3 changed files with 17 additions and 27 deletions

View File

@ -26,14 +26,14 @@ mbs = MythBoxeeSettings()
<control type="group" id="1040"> <control type="group" id="1040">
<control type="label" id="1041"> <control type="label" id="1041">
<posx>820</posx> <posx>820</posx>
<posy>150</posy> <posy>80</posy>
<width>250</width> <width>250</width>
<label>Backend Information</label> <label>Backend Information</label>
<font>font23</font> <font>font23</font>
</control> </control>
<control type="edit" id="1042"> <control type="edit" id="1042">
<posx>820</posx> <posx>820</posx>
<posy>175</posy> <posy>115</posy>
<width>300</width> <width>300</width>
<label>Hostname/IP:</label> <label>Hostname/IP:</label>
<align>left</align> <align>left</align>
@ -42,7 +42,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1043"> <control type="edit" id="1043">
<posx>820</posx> <posx>820</posx>
<posy>205</posy> <posy>150</posy>
<width>300</width> <width>300</width>
<label>Username:</label> <label>Username:</label>
<align>left</align> <align>left</align>
@ -52,7 +52,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1044"> <control type="edit" id="1044">
<posx>820</posx> <posx>820</posx>
<posy>235</posy> <posy>185</posy>
<width>300</width> <width>300</width>
<align>left</align> <align>left</align>
<label>Password:</label> <label>Password:</label>
@ -63,7 +63,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1045"> <control type="edit" id="1045">
<posx>820</posx> <posx>820</posx>
<posy>265</posy> <posy>220</posy>
<width>300</width> <width>300</width>
<align>left</align> <align>left</align>
<label>Database:</label> <label>Database:</label>
@ -75,32 +75,20 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="grouplist" id="1046"> <control type="grouplist" id="1046">
<posx>820</posx> <posx>895</posx>
<posy>295</posy> <posy>260</posy>
<width>300</width> <width>300</width>
<itemgap>0</itemgap> <itemgap>0</itemgap>
<orientation>horizontal</orientation> <orientation>horizontal</orientation>
<ondown>1022</ondown> <ondown>1022</ondown>
<control type="button" id="1047"> <control type="button" id="1047">
<label>Test Connection</label> <label>Test and Save Settings</label>
<texturefocus>bg_btn.png</texturefocus>
<texturenofocus></texturenofocus>
<font>font14</font> <font>font14</font>
<height>30</height> <height>30</height>
<align>center</align> <align>center</align>
<aligny>center</aligny> <aligny>center</aligny>
<onclick lang="python"><![CDATA[mbs.TestDbSettings()]]></onclick> <onclick lang="python"><![CDATA[mbs.TestDbSettings()]]></onclick>
</control> </control>
<control type="button" id="1048">
<label>Save DB Settings</label>
<texturefocus>bg_btn.png</texturefocus>
<texturenofocus></texturenofocus>
<font>font14</font>
<height>30</height>
<align>center</align>
<aligny>center</aligny>
<onclick lang="python"><![CDATA[mbs.SaveDbSettings()]]></onclick>
</control>
</control> </control>
<!-- END: BACKEND INFORMATION --> <!-- END: BACKEND INFORMATION -->
@ -110,7 +98,7 @@ mbs = MythBoxeeSettings()
<control type="group" id="1020"> <control type="group" id="1020">
<control type="label" id="1021"> <control type="label" id="1021">
<posx>820</posx> <posx>820</posx>
<posy>360</posy> <posy>330</posy>
<width>250</width> <width>250</width>
<align>left</align> <align>left</align>
<label>Stream Method</label> <label>Stream Method</label>
@ -118,7 +106,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="list" id="1022"> <control type="list" id="1022">
<posx>830</posx> <posx>830</posx>
<posy>395</posy> <posy>365</posy>
<width>164</width> <width>164</width>
<height>100</height> <height>100</height>
<onup>1044</onup> <onup>1044</onup>
@ -181,7 +169,7 @@ mbs = MythBoxeeSettings()
<control type="group" id="1030"> <control type="group" id="1030">
<control type="label" id="1031"> <control type="label" id="1031">
<posx>820</posx> <posx>820</posx>
<posy>480</posy> <posy>460</posy>
<width>250</width> <width>250</width>
<align>left</align> <align>left</align>
<label>SMB Share</label> <label>SMB Share</label>
@ -189,7 +177,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1032"> <control type="edit" id="1032">
<posx>820</posx> <posx>820</posx>
<posy>505</posy> <posy>490</posy>
<width>300</width> <width>300</width>
<label>Share:</label> <label>Share:</label>
<align>left</align> <align>left</align>
@ -199,7 +187,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1033"> <control type="edit" id="1033">
<posx>820</posx> <posx>820</posx>
<posy>535</posy> <posy>525</posy>
<width>300</width> <width>300</width>
<label>Username:</label> <label>Username:</label>
<align>left</align> <align>left</align>
@ -209,7 +197,7 @@ mbs = MythBoxeeSettings()
</control> </control>
<control type="edit" id="1034"> <control type="edit" id="1034">
<posx>820</posx> <posx>820</posx>
<posy>565</posy> <posy>560</posy>
<width>300</width> <width>300</width>
<label>Password:</label> <label>Password:</label>
<align>left</align> <align>left</align>

View File

@ -20,7 +20,7 @@ import time
import errno import errno
import httplib import httplib
import urllib2 import urllib2
import String import string
import StringIO import StringIO
import md5 import md5
from threading import RLock from threading import RLock

View File

@ -407,6 +407,8 @@ class Tvdb:
def _getTempDir(self): def _getTempDir(self):
"""Returns the [system temp dir]/tvdb_api """Returns the [system temp dir]/tvdb_api
""" """
import mc
return mc.GetTempDir()
return os.path.join(tempfile.gettempdir(), "tvdb_api") return os.path.join(tempfile.gettempdir(), "tvdb_api")
def _loadUrl(self, url, recache = False): def _loadUrl(self, url, recache = False):