Changeset 4f37a98 for utils/convert_purple.py
- Timestamp:
- 2012-02-11T17:18:46Z (13 years ago)
- Branches:
- master
- Children:
- dcf155d
- Parents:
- eb54f56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/convert_purple.py
reb54f56 r4f37a98 35 35 protocol = acc.getElementsByTagName('protocol')[0].firstChild.wholeText 36 36 name = acc.getElementsByTagName('name')[0].firstChild.wholeText 37 password = acc.getElementsByTagName('password')[0].firstChild.wholeText 37 try: 38 password = acc.getElementsByTagName('password')[0].firstChild.wholeText 39 except IndexError: 40 password = '' 38 41 if protocol.startswith('prpl-'): 39 42 protocol = protocol[5:] … … 53 56 print 54 57 for acc in accs: 55 print 'account add %s %s %s' % acc58 print 'account add %s %s "%s"' % acc 56 59 57 60 def bitlbee_x(*args): … … 85 88 86 89 print 87 print 'Write the following XML data to a file called %s.xml (rename it if' 90 print 'Write the following XML data to a file called %s.xml (rename it if' % user.lower() 88 91 print 'you want to use a different nickname). It should be in the directory where' 89 92 print 'your BitlBee account files are stored (most likely /var/lib/bitlbee).'
Note: See TracChangeset
for help on using the changeset viewer.