I am 90% to finishing my work for a quick semi-automated email among my colleagues. My lingering problem is when i merge two strings dict(zip(k,v)) into a dictionary, do a join
(pos2 = ";".join(["%s=%s" % (k,v) for k, v in pos.items()])
and then print them on the screen, they display in their original sorted format (correctly).
However, when i run libgmail and send the
array thru email; curly brackets and single quotation marks are appended. I've tried to comment out various lines in libgmail around line #580 to#588
in the hopes of eliminating the extra formatting but i am too new at
the language to track down the string manipulation which might be
eliminated so the string vector will show up cleanly in the email.
On screen-
'DATE': '20060926'
'TIME': '1717'
'TAM': '-36'
'TAM-MMM': '-295'
'TAM-TOR': '-71'
'SRTS':'-44'
'SCOT': '-20'
'ESH': '-66'
Currently posts to email like this:
{'SCOT': '-20', 'TAM-TOR': '-71', 'TAM': '-36', 'ESH': '-66',
'TIME': '1717', 'DATE': '20060926', 'TAM-MMM': '-295', 'SRTS':
'-44'}
would like this which is the way the original vectors were displayed:
'DATE': '20060926', 'TIME': '1717', 'TAM': '36', 'TAM-MMM':
'-29', 'TAM-TOR': '71', 'SRTS':'-44', 'SCOT': '-20', 'ESH':
'-660'
Thank you to the libgmail gurus...
(pos2 = ";".join(["%s=%s" % (k,v) for k, v in pos.items()])
and then print them on the screen, they display in their original sorted format (correctly).
However, when i run libgmail and send the
array thru email; curly brackets and single quotation marks are appended. I've tried to comment out various lines in libgmail around line #580 to#588
in the hopes of eliminating the extra formatting but i am too new at
the language to track down the string manipulation which might be
eliminated so the string vector will show up cleanly in the email.
On screen-
'DATE': '20060926'
'TIME': '1717'
'TAM': '-36'
'TAM-MMM': '-295'
'TAM-TOR': '-71'
'SRTS':'-44'
'SCOT': '-20'
'ESH': '-66'
Currently posts to email like this:
{'SCOT': '-20', 'TAM-TOR': '-71', 'TAM': '-36', 'ESH': '-66',
'TIME': '1717', 'DATE': '20060926', 'TAM-MMM': '-295', 'SRTS':
'-44'}
would like this which is the way the original vectors were displayed:
'DATE': '20060926', 'TIME': '1717', 'TAM': '36', 'TAM-MMM':
'-29', 'TAM-TOR': '71', 'SRTS':'-44', 'SCOT': '-20', 'ESH':
'-660'
Thank you to the libgmail gurus...