Re: getting started question
"Sandy Patterson" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Great thanks, I had mistaken the inherited phone for the phone i was replacing in the file. Sandy On 8/13/07, Nathan Hjelm <[email protected]> wrote: > It looks to me like your Phone class is inheriting from itself which is a problem. Your phone module should inherit from com_phone.Phone or the module for a phone that is similar to yours. Welcome to python hell ;) > > As for adding the phone, __init__.py is the proper file to add the phone to. > > -Nathan > > On Monday, August 13, 2007, at 02:57PM, "Sandy Patterson" <[email protected]> wrote: > >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/ > >_______________________________________________ > >BitPim-devel mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/bitpim-devel > > > > > > ------------------------------------------------------------------------- > 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/ > _______________________________________________ > BitPim-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bitpim-devel > ------------------------------------------------------------------------- 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/