2007-01-18, 23:35
is this pop3 only? if so is it possible to leave emails on the server? if you cant atm could you implement imap which i think allows you to leave emails on the server?
blittan Wrote:it leaves email on server (thought i read it somewhere).. but imap is a possibility.. there is a builtin lib for it in python imaplib.py i think..
Quote:
<settings>
<masterpassenable>no</masterpassenable>
<masterpass>-</masterpass>
<server1>-</server1>
<user1>-</user1>
<pass1>-</pass1>
<ssl1>-</ssl1>
<server2>-</server2>
<user2>-</user2>
<pass2>-</pass2>
<ssl2>-</ssl2>
</settings>
def setResolution( self ):
try:
offset = 0
resolutions = {'1080i' : 0, '720p' : 1, '480p' : 2, '480p16x9' : 3, 'ntsc' : 4, 'ntsc16x9' : 5, 'pal' : 6, 'pal16x9' : 7, 'pal60' : 8, 'pal6016x9' : 9}
currentResolution = self.getResolution()
resolution = resolutions[ 'pal' ]
# if current and skinned resolutions differ and skinned resolution is not
# 1080i or 720p (they have no 4:3), calculate widescreen offset
if (( not ( currentResolution == resolution )) and resolution > 1 ):
# check if current resolution is 16x9
if ( currentResolution == 0 or currentResolution % 2 ): iCur16x9 = 1
else: iCur16x9 = 0
# check if skinned resolution is 16x9
if ( resolution % 2 ): i16x9 = 1
else: i16x9 = 0
# calculate widescreen offset
offset = iCur16x9 - i16x9
self.setCoordinateResolution( resolution + offset )
except: print 'ERROR: setting resolution'
Nuka1195 Wrote:This line is wrong.
resolution = resolutions[self.getCoordinateResolution]
You need to set it at the resolution you skinned at.
so resolution = 6
or for convienince i included the values for all resolutions as a dictionary
so resolution = resolutions[ 'pal' ]