getting started question

"Sandy Patterson" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Hi,

I'm interesting in helping to add support for my samsung m500 phone.
I'm having a little trouble getting started however.

I followed the directions in dev-doc/phonespec.html, but got confused
when it mentioned:

> To make your phone appear in the list of supported phones edit guiwidgets.py. Find the
> ConfigDialog class (~ln 340) and add your new phone to the list, the second field in the list
> is the filename of the new file you just created without the extension.

I added the two files (com_samsungsphm500.py and p_samsungsphm500.p
and changed the model names in the files), generated the third for the
phone, then I couldn't figure out what to do about the above line, so
I went into __init__.py and created an entry for the phone there. This
added the phone to the list in the settings dialog, but I get an
exception when it tries load the module.

I can recreate this error by simply going to the console and typing:

>>> import phones.com_samsungsphm500
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\home\aiv\phonestuff\bitpim\src\phones\com_samsungsphm500.py",
line 30, in <module>
    class Phone(com_samsungsphm500.Phone):
NameError: name 'com_samsungsphm500' is not defined


Is there someplace I need to define this? am I missing something? is
the how-to file out of date? I feel like I'm doing something stupid.
I'm afraid I'm new to python :( but know other languages.

Thanks,
Sandy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
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.