Making memo length a phone specific item

John O'Shaughnessy <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <BE2AAEAE.1504D%[email protected]>
A user recently pointed out that while the LG VX6100 can support memo
lengths of 64 in the phonebook, BitPim writes out the entry with a max of 31
characters.

In class Profile(com_phone.Profile) in com_lgvx4400.py there is the
following code:

# memo
                e['memo']=helper.makeone(helper.getmemos(entry.get('memos',
[]), 0, 1, 32), "")


Changing that 32 to 64 properly writes out the max memo length on the
VX6100.

So -- what are the steps to do this the right way so that it can modified
with something simple such as MAX_MEMO_LENGTH=xx in each phone's source?

Any pointers would be appreciated.

Thanks,

John






-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.