Libgmail help req. from newbie

Joined
Sep 27, 2006
Messages
1
Reaction score
0
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top