The following commit has been merged in the master branch:
commit 9aa3747285f81934ac471ad59d12a07d6d4c014c
Author: Michal Čihař <[email protected]>
Date:   Thu Oct 8 13:33:52 2009 +0200

    Adjust to new Wammu phonedb interface.
    
    This interface is not yet public, but will be published soon.

diff --git a/Wammu/TalkbackDialog.py b/Wammu/TalkbackDialog.py
index eea02b3..1df6cea 100644
--- a/Wammu/TalkbackDialog.py
+++ b/Wammu/TalkbackDialog.py
@@ -219,6 +219,7 @@ def DoTalkback(parent, config, phoneid = 0):
         # Prepare data to post
         params_dict = {
             'irobot': 'wammu',
+            'version': '2',
             'manufacturer': man_id,
             'name': dlg.model_text_ctrl.GetValue(),
             'model': dlg.model_combo_box.GetValue(),
@@ -244,8 +245,8 @@ def DoTalkback(parent, config, phoneid = 0):
                     'Accept': 'text/plain'}
 
         # Perform request
-        conn = httplib.HTTPConnection('cihar.com')
-        conn.request('POST', '/gammu/phonedb/new.php', params, headers)
+        conn = httplib.HTTPConnection('wammu.eu')
+        conn.request('POST', '/phones/new-wammu/', params, headers)
 
         # Check request response
         response = conn.getresponse()
@@ -264,7 +265,7 @@ def DoTalkback(parent, config, phoneid = 0):
         conn.close()
         ok_test = ok_matcher.match(data)
         if ok_test is not None:
-            url = 'http://%scihar.com%s' % (Wammu.Utils.GetWebsiteLang(), 
ok_test.groups()[1])
+            url = 'http://%swammu.eu%s' % (Wammu.Utils.GetWebsiteLang(), 
ok_test.groups()[1])
             if wx.MessageDialog(parent,
                 _('Entry in Gammu Phone Database has been created, you can see 
it on <%s> URL.\nDo you want to open it in browser now?') % url,
                 _('Entry created!'),

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to