← Back to team overview

openerp-dev-web team mailing list archive

lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm-backlog8_correction-atp into lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm

 

Atul Patel(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm-backlog8_correction-atp into lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm.

Requested reviews:
  tfr (Openerp) (tfr)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-import_sugarcrm-backlog8_correction-atp/+merge/62864

Hello,
I had make correction for Backlog 8:

http://pad.openerp.com/rd-v61-tfr-import-sugarcrm

Kindly check it.

Thanks

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-import_sugarcrm-backlog8_correction-atp/+merge/62864
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm.
=== modified file 'import_sugarcrm/__openerp__.py'
--- import_sugarcrm/__openerp__.py	2011-05-25 13:29:14 +0000
+++ import_sugarcrm/__openerp__.py	2011-05-30 11:18:12 +0000
@@ -29,7 +29,7 @@
     'website': 'http://www.openerp.com',
     'depends': ['import_base', 'crm_claim', 'project', 'project_issue', 'hr', 'document'],
     'init_xml': [],
-    'update_xml': [
+    'update_xml': ["security/import_sugarcrm_security.xml",
                    "wizard/import_message_view.xml",
                    "import_sugarcrm_view.xml"],
     'demo_xml': [],

=== modified file 'import_sugarcrm/import_sugarcrm.py'
--- import_sugarcrm/import_sugarcrm.py	2011-05-26 16:25:39 +0000
+++ import_sugarcrm/import_sugarcrm.py	2011-05-30 11:18:12 +0000
@@ -27,8 +27,8 @@
 import base64
 import pprint
 pp = pprint.PrettyPrinter(indent=4)
-
 #copy old import here
+
 class related_ref(dbmapper):
     def __init__(self, type):
         self.type = type
@@ -39,6 +39,7 @@
         return ''
 
 class sugar_import(import_framework):
+    URL = False   
     TABLE_CONTACT = 'Contacts'
     TABLE_ACCOUNT = 'Accounts'
     TABLE_USER = 'Users'
@@ -57,7 +58,6 @@
     TABLE_CASE = 'Cases'
     TABLE_NOTE = 'Notes'
     TABLE_EMAIL = 'Emails'
-    TABLE_DOCUMENT = 'DocumentRevisions'
     TABLE_COMPAIGN = 'Campaigns'
     TABLE_HISTORY_ATTACHMNET = 'history_attachment'
     
@@ -70,7 +70,6 @@
         self.context['session_id'] = sessionid
         
     def get_data(self, table):
-        
         return sugar.search(self.context.get('port'), self.context.get('session_id'), table)
     """
     Common import method
@@ -109,20 +108,19 @@
         min = int(min) * 100 / 60
         return "%s.%i" % (hour, min)
     
-    def get_attachment(self, val):
-        File, Filename = sugar.attachment_search(self.context.get('port'), self.context.get('session_id'), self.TABLE_NOTE, val.get('id')) 
-        attach_xml_id = False
-        if File:
-            fields = ['name', 'datas', 'datas_fname','res_id', 'res_model']
-            name = 'attachment_'+ (Filename or val.get('name'))
-            datas = [Filename or val.get('name'), File, Filename, val.get('res_id'),val.get('model',False)]
-            attach_xml_id = self.import_object(fields, datas, 'ir.attachment', self.TABLE_HISTORY_ATTACHMNET, name, [('res_id', '=', val.get('res_id'), ('model', '=', val.get('model')))])
-        return attach_xml_id    
-    
-   
     """
     import Emails
     """
+
+    def get_email_attachment(self, val):
+        File, Filename = sugar.attachment_search(self.context.get('port'), self.context.get('session_id'), self.TABLE_EMAIL, val.get('id')) 
+        attach_xml_id = False
+        if File:
+            fields = ['name', 'datas', 'datas_fname','res_id', 'res_model']
+            name = 'attachment_'+ (Filename or val.get('name'))
+            datas = [Filename or val.get('name'), File, Filename, val.get('res_id'),val.get('model',False)]
+            attach_xml_id = self.import_object(fields, datas, 'ir.attachment', self.TABLE_HISTORY_ATTACHMNET, name, [('res_id', '=', val.get('res_id'), ('model', '=', val.get('model')))])
+        return attach_xml_id
     
     def import_email(self, val):
         model_obj =  self.obj.pool.get('ir.model.data')
@@ -153,7 +151,7 @@
                         'res_id': 'res_id',
                         'model': 'model',
                         'partner_id/.id': 'partner_id/.id',                         
-                        'attachment_ids/id': self.get_attachment,
+                        'attachment_ids/id': self.get_email_attachment,
                         'user_id/id': ref(self.TABLE_USER, 'assigned_user_id'),
                         'description': ppconcat('description', 'description_html'),
                 }
@@ -162,6 +160,15 @@
     """
     import History(Notes)
     """
+    def get_note_attachment(self, val):
+        File, Filename = sugar.attachment_search(self.context.get('port'), self.context.get('session_id'), self.TABLE_NOTE, val.get('id')) 
+        attach_xml_id = False
+        if File:
+            fields = ['name', 'datas', 'datas_fname','res_id', 'res_model']
+            name = 'attachment_'+ (Filename or val.get('name'))
+            datas = [Filename or val.get('name'), File, Filename, val.get('res_id'),val.get('model',False)]
+            attach_xml_id = self.import_object(fields, datas, 'ir.attachment', self.TABLE_HISTORY_ATTACHMNET, name, [('res_id', '=', val.get('res_id'), ('model', '=', val.get('model')))])
+        return attach_xml_id
 
     def import_history(self, val):
         model_obj =  self.obj.pool.get('ir.model.data')
@@ -170,7 +177,6 @@
         if model_ids:
             model = model_obj.browse(self.cr, self.uid, model_ids)[0]
             if model.model == 'res.partner':
-                print "res partner"
                 val['partner_id/.id'] = model.res_id
                 val['history'] = "1"
             else:    
@@ -190,7 +196,7 @@
                       'description': ppconcat('description', 'description_html'),
                       'res_id': 'res_id',
                       'model': 'model',
-                      'attachment_ids/id': self.get_attachment,
+                      'attachment_ids/id': self.get_note_attachment,
                       'partner_id/.id' : 'partner_id/.id',
                       'history' : 'history',
                 }
@@ -257,7 +263,6 @@
     }
      
     def get_project_issue_priority(self, val):
-        print "project issue value"
         pp.pprint(val)
         priority_dict = {
                 'Urgent': '1',
@@ -426,8 +431,8 @@
                     'description': ppconcat('description'),   
                     'state': map_val('status', self.call_state)                      
                 }
-            }        
-        
+            }       
+         
     """
         import meeting
     """
@@ -466,7 +471,7 @@
         return self.mapped_id_if_exist('res.alarm', [('name', 'like', alarm_dict.get(val))], 'alarm', val)
     
     #TODO attendees
-    
+
     def import_meeting(self, val):
         attendee_id = self.get_attendee_id(self.cr, self.uid, 'Meetings', val.get('id')) #TODO
         val['attendee_ids/id'] = attendee_id
@@ -475,7 +480,7 @@
     def get_meeting_mapping(self):
         return { 
                 'model' : 'crm.meeting',
-                'dependencies' : [self.TABLE_CONTACT, self.TABLE_OPPORTUNITY, self.TABLE_LEAD],
+                'dependencies' : [self.TABLE_CONTACT, self.TABLE_OPPORTUNITY, self.TABLE_LEAD, self.TABLE_TASK],
                 'hook': self.import_meeting,
                 'map' : {
                     'name': 'name',
@@ -531,8 +536,8 @@
         return partner_contact_id, partner_contact_email
 
     def import_opp(self, val):    
-        partner_contact_name, partner_contact_email = self.import_opportunity_contact(val)
-        val['partner_address_id/id'] = partner_contact_name
+        partner_contact_id, partner_contact_email = self.import_opportunity_contact(val)
+        val['partner_address_id/id'] = partner_contact_id
         val['email_from'] = partner_contact_email
         return val
     
@@ -718,7 +723,7 @@
                     'customer': const('1'),
                     'supplier': const('0'),
                     'address/id':'address/id', 
-                    'parent_id/id_parent' : 'parent_id',
+                    'parent_id/id_parent' : ref(self.TABLE_ACCOUNT,'parent_id'),
                     'address/id' : self.get_partner_address,
                 }
         }
@@ -833,7 +838,6 @@
             self.TABLE_NOTE: self.get_history_mapping(),
             self.TABLE_EMAIL: self.get_email_mapping(),
             self.TABLE_COMPAIGN: self.get_compaign_mapping()
-            
         }
         
     """
@@ -852,52 +856,62 @@
     _name = "import.sugarcrm"
     _description = __doc__
     _columns = {
-               
         'username': fields.char('User Name', size=64, required=True),
         'password': fields.char('Password', size=24,required=True),
-         'url' : fields.char('Service', size=264, required=True, help="Connection with Sugarcrm Using Soap Protocol Services and For that Path should be 'http://localhost/sugarcrm/soap.php' Format."),
+         'url' : fields.char('SugarSoap Api url:', size=264, required=True, help="Webservice's url where to get the data.\
+                      'example : http://example.com/sugarcrm/soap.php, or copy the address of your sugarcrm application http://trial.sugarcrm.com/qbquyj4802/index.php?module=Home&action=index";),
                 
         'opportunity': fields.boolean('Leads and Opportunities', help="If Opportunities are checked, SugarCRM opportunities data imported in OpenERP crm-Opportunity form"),
-        'user': fields.boolean('Users', help="If Users  are checked, SugarCRM Users data imported in OpenERP Users form"),
         'contact': fields.boolean('Contacts', help="If Contacts are checked, SugarCRM Contacts data imported in OpenERP partner address form"),
         'account': fields.boolean('Accounts', help="If Accounts are checked, SugarCRM  Accounts data imported in OpenERP partners form"),
         'employee': fields.boolean('Employee', help="If Employees is checked, SugarCRM Employees data imported in OpenERP employees form"),
-        'meeting': fields.boolean('Meetings', help="If Meetings is checked, SugarCRM Meetings data imported in OpenERP meetings form"),
+        'meeting': fields.boolean('Meetings', help="If Meetings is checked, SugarCRM Meetings and Meeting Tasks data imported in OpenERP meetings form"),
         'call': fields.boolean('Calls', help="If Calls is checked, SugarCRM Calls data imported in OpenERP phonecalls form"),
-        'claim': fields.boolean('Claims', help="If Claims is checked, SugarCRM Claims data imported in OpenERP Claims form"),
-        'email': fields.boolean('Emails', help="If Emails is checked, SugarCRM Emails data imported in OpenERP Emails form"),
+        'claim': fields.boolean('Cases', help="If Cases is checked, SugarCRM Cases data imported in OpenERP Claims form"),
+        'email_history': fields.boolean('Email and History',help="If Email and History is checked, SugarCRM Notes and Emails data imported in OpenERP's Related module's History with attachment"),
         'project': fields.boolean('Projects', help="If Projects is checked, SugarCRM Projects data imported in OpenERP Projects form"),
         'project_task': fields.boolean('Project Tasks', help="If Project Tasks is checked, SugarCRM Project Tasks data imported in OpenERP Project Tasks form"),
-        'task': fields.boolean('Tasks', help="If Tasks is checked, SugarCRM Tasks data imported in OpenERP Meetings form"),
         'bug': fields.boolean('Bugs', help="If Bugs is checked, SugarCRM Bugs data imported in OpenERP Project Issues form"),
-        'attachment': fields.boolean('Attachments', help="If Attachments is checked, SugarCRM Notes data imported in OpenERP's Related module's History with attachment"),
-        'document': fields.boolean('Documents', help="If Documents is checked, SugarCRM Documents data imported in OpenERP Document Form"),
         'email_from': fields.char('Notify End Of Import To:', size=128),
         'instance_name': fields.char("Instance's Name", size=64, help="Prefix of SugarCRM id to differentiate xml_id of SugarCRM models datas come from different server."),
         
     }
     _defaults = {#to be set to true, but easier for debugging
        'opportunity': False,
-       'user' : False,
        'contact' : False,
        'account' : False,
         'employee' : False,
         'meeting' : False,
-        'task' : False,
         'call' : False,
         'claim' : False,    
-        'email' : False, 
+        'email_history' : False, 
         'project' : False,   
         'project_task': False,     
         'bug': False,
-        'document': False,
         'instance_name': 'sugarcrm',
         'email_from': 'tfr@xxxxxxxxxxx',
         'username' : 'tfr',
         'password' : 'a',
-        'url':  "http://localhost/sugarcrm/soap.php";        
+        'url':  "http://example.com/sugarcrm/soap.php";        
     }
     
+    def parse_valid_url(self, cr, uid, ids, context=None):
+        if not context:
+            context = {}
+        global URL
+        url = context.get('url')
+        url_string = []
+        for url in str(url).split('/'):
+            if url.startswith('index.php'):
+                url_soap = url.replace(url, 'soap.php')
+                url_string.append(url_soap)
+            else:    
+                url_string.append(url)
+        if 'soap.php' not in url_string:
+            url_string.append('soap.php')
+        URL = '/'.join(url_string)
+        return URL            
+            
     def get_key(self, cr, uid, ids, context=None):
         """Select Key as For which Module data we want import data."""
         if not context:
@@ -908,8 +922,6 @@
             if current.opportunity:
                 key_list.append('Leads')
                 key_list.append('Opportunities')
-            if current.user:
-                key_list.append('Users')
             if current.contact:
                 key_list.append('Contacts')
             if current.account:
@@ -918,24 +930,19 @@
                 key_list.append('Employees')  
             if current.meeting:
                 key_list.append('Meetings')
-            if current.task:
-                key_list.append('Tasks')
             if current.call:
                 key_list.append('Calls')
             if current.claim:
                 key_list.append('Cases')                
-            if current.email:
+            if current.email_history:
                 key_list.append('Emails') 
+                key_list.append('Notes') 
             if current.project:
                 key_list.append('Project')
             if current.project_task:
                 key_list.append('ProjectTask')
             if current.bug:
                 key_list.append('Bugs')
-            if current.attachment:
-                key_list.append('Notes')     
-            if current.document:
-                key_list.append('DocumentRevisions')                                                  
         return key_list
 
 
@@ -943,9 +950,7 @@
         """
         scheduler Method
         """
-        print 'args of schedule method', args
         context = {'username': args[4], 'password': args[5], 'url': args[3], 'instance_name': args[3]}
-        print context
         imp = sugar_import(self, cr, uid, args[2], "import_sugarcrm", [args[1]], context)
         imp.set_table_list(args[0])
         imp.start()
@@ -956,7 +961,8 @@
         if not keys:
             raise osv.except_osv(_('Warning !'), _('Select Module to Import.'))
         cron_obj = self.pool.get('ir.cron')
-        args = (keys,context.get('email_user'), context.get('instance_name'), context.get('url'), context.get('username'), context.get('password') )
+        url = self.parse_valid_url(cr, uid, ids, context)
+        args = (keys,context.get('email_user'), context.get('instance_name'), url, context.get('username'), context.get('password') )
         new_create_id = cron_obj.create(cr, uid, {'name': 'Import SugarCRM datas','interval_type': 'hours','interval_number': 1, 'numbercall': -1,'model': 'import.sugarcrm','function': 'do_import_all', 'args': args, 'active': False})
         return {
             'name': 'SugarCRM Scheduler',
@@ -966,11 +972,15 @@
             'res_id': new_create_id,
             'type': 'ir.actions.act_window',
         }
-
+    
+    
+    
     def import_all(self, cr, uid, ids, context=None):
         
 #        """Import all sugarcrm data into openerp module"""
         keys = self.get_key(cr, uid, ids, context)
+        url = self.parse_valid_url(cr, uid, ids, context)
+        context.update({'url': url})
         imp = sugar_import(self, cr, uid, context.get('instance_name'), "import_sugarcrm", [context.get('email_user')], context)
         imp.set_table_list(keys)
         imp.start()

=== modified file 'import_sugarcrm/import_sugarcrm_view.xml'
--- import_sugarcrm/import_sugarcrm_view.xml	2011-05-26 16:25:39 +0000
+++ import_sugarcrm/import_sugarcrm_view.xml	2011-05-30 11:18:12 +0000
@@ -15,58 +15,50 @@
                          <field name="username"/>
                          <newline/>
                          <field name="password" password="True" />
-                         <separator string="Choose  Data You Want to Import" colspan="4"/>
+                         <separator string="" colspan="4"/>
                          <group colspan="4" col="6">
                             <group colspan="1" col="2">    
-                                <separator string="Module: Base" colspan="4"/>
-                                <field name="user" />                           
+                                <separator string="Address Book" colspan="4"/>
                                 <field name= "account" />
                                 <field name= "contact" />
                             </group>                         
                             <group colspan="3" col="4">    
-                                <separator string="Module: CRM" colspan="4"/>
+                                <separator string="CRM" colspan="4"/>
                              	<field name="opportunity" />
                              	<field name= "meeting" />
-                             	<field name= "task" string="Meeting Tasks"/>
                              	<field name= "call" />
                              	<field name= "claim" />
-                                <field name= "email" />
                              </group>
                              <group colspan="2" col="2"> 
-                                <separator string="Module: Project" colspan="4"/>       
+                                <separator string="Project" colspan="4"/>       
 	                             <field name= "project" />
 	                             <field name= "project_task" />
-	                             <field name= "bug" string="Project Issue"/>
+	                             <field name= "bug"/>
                             </group>
                             <group colspan="1" col="2">
-                                <separator string="Module: HR" colspan="4"/>
-    	                         <field name= "employee" />  
+                                <separator string="HR" colspan="4"/>
+    	                         <field name="employee" />  
                             </group>   
                             <group colspan="2" col="4">
-                                <separator string="Module: Document" colspan="4"/>
-	                             <field name= "document" invisible="1"/>
-	                             <field name= "attachment" string="History and Attachment" />
+                                <separator string="Document" colspan="4"/>
+                                <field name="email_history"/>
                             </group>
                           </group>  
 	                         <group colspan="4">
 	                         	<separator string="Email Notification When Import is finished" colspan="4"/>
 	                     		<field name="email_from" widget="email" string="Email Address to Notify"/>
 	                     	</group>
-	                     	<group colspan="4">   
+	                     	<group colspan="4" groups="base.group_no_one">   
 	                   			<separator string="Multi Instance Management" colspan="4"/>
 	                       		<field name="instance_name"/>
 	                       </group>
-	                       <group colspan="4">
-                            	<separator string="" colspan="4"/>	 
-                            	<button name="import_from_scheduler_all" string="Create Recurrent Report"
-                                   type="object" icon="terp-camera_test"/>
-                                <label string="" colspan="2"/>   
-							</group> 
                     </group>
                         <separator string="" colspan="4" />
-                    <group colspan="4" >
+                    <group colspan="4" col="6">
                         <label string="" colspan="2"/>
                         <button  icon="gtk-cancel" special="cancel" string="_Cancel"/>
+                         <button name="import_from_scheduler_all" string="_Schedule recurrent import"
+                                   type="object" icon="gtk-execute"/>
                         <button name="import_all" string="_Import"
                                 type="object" icon="terp-camera_test"/>
                    </group>
@@ -85,7 +77,7 @@
         <field name="target">new</field>
     </record>
 
-    <menuitem name="SugarCRM"  id="menu_sugarcrm" parent="base.menu_base_partner"/>
+    <menuitem name="Import"  id="menu_sugarcrm" parent="base.menu_base_partner"/>
     <menuitem name="Import SugarCRM" id="menu_sugarcrm_import" parent="menu_sugarcrm" action="action_import_sugarcrm" icon="STOCK_EXECUTE"/>
 
     </data>

=== added directory 'import_sugarcrm/security'
=== added file 'import_sugarcrm/security/import_sugarcrm_security.xml'
--- import_sugarcrm/security/import_sugarcrm_security.xml	1970-01-01 00:00:00 +0000
+++ import_sugarcrm/security/import_sugarcrm_security.xml	2011-05-30 11:18:12 +0000
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data noupdate="1">
+
+    <record id="base.group_no_one" model="res.groups">
+        <field name="name">No One</field>
+    </record>
+    
+</data>
+</openerp>

=== modified file 'import_sugarcrm/sugar.py'
--- import_sugarcrm/sugar.py	2011-05-20 07:30:59 +0000
+++ import_sugarcrm/sugar.py	2011-05-30 11:18:12 +0000
@@ -31,8 +31,8 @@
 class LoginError(Exception): pass
 
 def login(username, password, url):
+    
     loc = sugarsoapLocator()
-
     portType = loc.getsugarsoapPortType(url)
     request = loginRequest()
     uauth = ns0.user_auth_Def(request)
@@ -126,4 +126,3 @@
           ans_list.append(ans_dir)
     #end for
   return ans_list
-

=== modified file 'import_sugarcrm/sugarsoap_services.py'
--- import_sugarcrm/sugarsoap_services.py	2011-03-01 05:47:06 +0000
+++ import_sugarcrm/sugarsoap_services.py	2011-05-30 11:18:12 +0000
@@ -8,8 +8,11 @@
 from osv import osv
 from tools.translate import _
 import socket
- 
+import import_sugarcrm
+
 IP = socket.gethostbyname(socket.gethostname())
+
+
 try:
     import ZSI
     from ZSI.TCcompound import Struct
@@ -18,8 +21,6 @@
     raise osv.except_osv(_('ZSI Import Error!'), _('Please install SOAP for python - ZSI-2.0-rc3.tar.gz - python-zci'))
 
 
-
-
 # Locator
 class sugarsoapLocator:
     sugarsoapPortType_address = "http://"+ IP + "/sugarcrm/soap.php"
@@ -43,7 +44,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP + "/sugarcrm/soap.php/create_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction= import_sugarcrm.URL+"/create_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_sessionResponse.typecode.ofwhat, pyclass=create_sessionResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -55,7 +56,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"; + IP + "/sugarcrm/soap.php/end_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/end_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=end_sessionResponse.typecode.ofwhat, pyclass=end_sessionResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -67,7 +68,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"; + IP + "/sugarcrm/soap.php/contact_by_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/contact_by_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=contact_by_emailResponse.typecode.ofwhat, pyclass=contact_by_emailResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -79,7 +80,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"; + IP + "/sugarcrm/soap.php/user_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/user_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=user_listResponse.typecode.ofwhat, pyclass=user_listResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -91,7 +92,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/search", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/search", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=searchResponse.typecode.ofwhat, pyclass=searchResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -103,7 +104,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/track_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/track_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=track_emailResponse.typecode.ofwhat, pyclass=track_emailResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -115,7 +116,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_contact", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/create_contact", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_contactResponse.typecode.ofwhat, pyclass=create_contactResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -127,7 +128,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_lead", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/create_lead", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_leadResponse.typecode.ofwhat, pyclass=create_leadResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -139,7 +140,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_account", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/create_account", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_accountResponse.typecode.ofwhat, pyclass=create_accountResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -151,7 +152,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_opportunity", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/create_opportunity", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_opportunityResponse.typecode.ofwhat, pyclass=create_opportunityResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -163,7 +164,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_case", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/create_case", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=create_caseResponse.typecode.ofwhat, pyclass=create_caseResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -174,8 +175,9 @@
         if isinstance(request, loginRequest) is False:
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
+        
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=loginResponse.typecode.ofwhat, pyclass=loginResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -187,7 +189,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/is_loopback", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/is_loopback", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=is_loopbackResponse.typecode.ofwhat, pyclass=is_loopbackResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -199,7 +201,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/seamless_login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/seamless_login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=seamless_loginResponse.typecode.ofwhat, pyclass=seamless_loginResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -211,7 +213,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entry_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_entry_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_entry_listResponse.typecode.ofwhat, pyclass=get_entry_listResponse.typecode.pyclass)
         try:
@@ -226,7 +228,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_entryResponse.typecode.ofwhat, pyclass=get_entryResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -238,7 +240,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_entriesResponse.typecode.ofwhat, pyclass=get_entriesResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -250,7 +252,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_entryResponse.typecode.ofwhat, pyclass=set_entryResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -262,7 +264,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_entriesResponse.typecode.ofwhat, pyclass=set_entriesResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -274,7 +276,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_note_attachmentResponse.typecode.ofwhat, pyclass=set_note_attachmentResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -286,7 +288,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_note_attachmentResponse.typecode.ofwhat, pyclass=get_note_attachmentResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -298,7 +300,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/relate_note_to_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/relate_note_to_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=relate_note_to_moduleResponse.typecode.ofwhat, pyclass=relate_note_to_moduleResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -310,7 +312,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_related_notes", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_related_notes", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_related_notesResponse.typecode.ofwhat, pyclass=get_related_notesResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -322,7 +324,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/logout", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/logout", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=logoutResponse.typecode.ofwhat, pyclass=logoutResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -334,7 +336,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_module_fields", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_module_fields", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_module_fieldsResponse.typecode.ofwhat, pyclass=get_module_fieldsResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -346,7 +348,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_available_modules", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_available_modules", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_available_modulesResponse.typecode.ofwhat, pyclass=get_available_modulesResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -358,7 +360,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/update_portal_user", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/update_portal_user", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=update_portal_userResponse.typecode.ofwhat, pyclass=update_portal_userResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -370,7 +372,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/test", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/test", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=testResponse.typecode.ofwhat, pyclass=testResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -382,7 +384,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_user_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_user_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_user_idResponse.typecode.ofwhat, pyclass=get_user_idResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -394,7 +396,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_user_team_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_user_team_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_user_team_idResponse.typecode.ofwhat, pyclass=get_user_team_idResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -406,7 +408,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_server_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_server_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_server_timeResponse.typecode.ofwhat, pyclass=get_server_timeResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -418,7 +420,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_gmt_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_gmt_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_gmt_timeResponse.typecode.ofwhat, pyclass=get_gmt_timeResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -430,7 +432,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_sugar_flavor", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_sugar_flavor", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_sugar_flavorResponse.typecode.ofwhat, pyclass=get_sugar_flavorResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -442,7 +444,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_server_version", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_server_version", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_server_versionResponse.typecode.ofwhat, pyclass=get_server_versionResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -454,7 +456,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_relationshipsResponse.typecode.ofwhat, pyclass=get_relationshipsResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -466,7 +468,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_relationship", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_relationship", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_relationshipResponse.typecode.ofwhat, pyclass=set_relationshipResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -478,7 +480,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_relationshipsResponse.typecode.ofwhat, pyclass=set_relationshipsResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -490,7 +492,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_document_revision", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/set_document_revision", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=set_document_revisionResponse.typecode.ofwhat, pyclass=set_document_revisionResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -502,7 +504,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/search_by_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/search_by_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=search_by_moduleResponse.typecode.ofwhat, pyclass=search_by_moduleResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -514,7 +516,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/sync_get_modified_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/sync_get_modified_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=sync_get_modified_relationshipsResponse.typecode.ofwhat, pyclass=sync_get_modified_relationshipsResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -526,7 +528,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_modified_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_modified_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_modified_entriesResponse.typecode.ofwhat, pyclass=get_modified_entriesResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)
@@ -538,7 +540,7 @@
             raise TypeError, "%s incorrect request type" % (request.__class__)
         kw = {}
         # no input wsaction
-        self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_attendee_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
+        self.binding.Send(None, None, request, soapaction=import_sugarcrm.URL+"/get_attendee_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";, **kw)
         # no output wsaction
         typecode = Struct(pname=None, ofwhat=get_attendee_listResponse.typecode.ofwhat, pyclass=get_attendee_listResponse.typecode.pyclass)
         response = self.binding.Receive(typecode)

=== modified file 'import_sugarcrm/wizard/import_message_view.xml'
--- import_sugarcrm/wizard/import_message_view.xml	2011-05-16 09:35:47 +0000
+++ import_sugarcrm/wizard/import_message_view.xml	2011-05-30 11:18:12 +0000
@@ -9,9 +9,8 @@
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Import Message">
-                   <label string="Import Data Launch" colspan="4"/>  
+                   <label colspan="4" nolabel="1" string="Import Data Launch: The Import Process is running in the background.You'll receive an email"/> 
                    <separator string="" colspan="4" />
-                   <label string="" colspan="2"/>
                    <button  icon="gtk-ok" special="cancel" string="_Ok"/>
                 </form>
             </field>


Follow ups