Discussion:
[BitPim-devel] SMS canned messages
Roger Binns
2005-05-13 06:58:20 UTC
Permalink
What is the type of an SMS canned message? For the LG phones they are
just strings. The comments in sms.py are ambiguous as to what type
I should return.

Roger
Joe Pham
2005-05-13 23:07:54 UTC
Permalink
Post by Roger Binns
What is the type of an SMS canned message?
It should be a list of strings, each of which is a canned SMS message. Typical usage:

canned_msg_entry=sms.CannedMsgEntry()
canned_msg_entry.msg_list=['Yes', 'No', 'Maybe', ...]
results['canned_msg']={ 'canned_msg': canned_msg_entry }

Will clarify the doc in module sms.

-Joe Pham



______________________________________________________________________
Get NetZero Platinum for as low as $4.97/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.netzero.com/half to sign up today!
Joe Pham
2005-05-13 23:11:30 UTC
Permalink
btw, can you update canned messages for your phone(s), and if so do you want/plan to do so?

-Joe Pham



______________________________________________________________________
Get NetZero Platinum for as low as $4.97/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.netzero.com/half to sign up today!
Roger Binns
2005-05-14 07:09:39 UTC
Permalink
Post by Joe Pham
btw, can you update canned messages for your phone(s), and if so do you want/plan to do so?
The LG phones have a number built in, and then you can add your own.
You cannot delete or change the builtin ones. The builtins are things
like "yes", "no" and "where are you". The phone user interface just
gives you one long list of the builtins with user ones at the end.
If a user one is highlighted then a delete option appears.

So do you want the builtin canned messages returned or not?

(You can also see now why I prefer to return dicts for items
rather than single values as the latter is impossible to tag
with extra pieces of information later)

BTW can you also update the doc for the folder field in sms.py. The
list given ends in 'etc' which implies they are examples. The list
should be an exhaustive correct list as opposed to some suggestions.
FYI the LG phones have a 'saved' folder. It is actually drafts and
that is what I'll expose them as.

Roger
Joe Pham
2005-05-14 17:48:00 UTC
Permalink
Post by Roger Binns
So do you want the builtin canned messages returned or not?
I'll update the GUI code to accommodate both: the Builtin ones which wont' be changed, and the User's ones which can be edited and sent back to the phone. Taking into your suggestion of using a dict instead of a list, how about the following structure for the canned messages:


result['canned_msg']=[ { 'text': 'string canned msg text', 'type': 'builtin' or 'users' }, {...}, ... ]


-Joe Pham



______________________________________________________________________
Get NetZero Platinum for as low as $4.97/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.netzero.com/half to sign up today!

Loading...