[ADD]: Add Import_sugarcrm Module and Import SUgarcrm lead data into crm lead
bzr revid: atp@tinyerp.com-20110214070350-t1493xf7bptv9o1y
This commit is contained in:
parent
933119c971
commit
68217409ac
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import import_sugarcrm
|
|
@ -0,0 +1,37 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name': 'Import SugarCRM Data into OpenERP Module.',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules',
|
||||
'description': """This Module Import SugarCRM "Leads", "Opportunity", "Accounts" and "contacts" Data into OpenERP Module.""",
|
||||
'author': 'OpenERP SA',
|
||||
'website': 'http://www.openerp.com',
|
||||
'depends': [],
|
||||
'init_xml': [],
|
||||
'update_xml': ["import_sugarcrm_view.xml"],
|
||||
'demo_xml': [],
|
||||
'test': [],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,77 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
import sugar
|
||||
import tools
|
||||
from tools.translate import _
|
||||
|
||||
class import_sugarcrm(osv.osv):
|
||||
"""Import SugarCRM DATA"""
|
||||
|
||||
_name = "import.sugarcrm"
|
||||
_description = __doc__
|
||||
_columns = {
|
||||
'mod_name':fields.selection([
|
||||
('lead','Leads'),
|
||||
('opportunity','Opportunities'),
|
||||
('accounts','Accounts'),
|
||||
('contact','Contacts'),
|
||||
],'Module Name', help="Module Name is used to specify which Module data want to Import"),
|
||||
}
|
||||
|
||||
def import_data(self, cr, uid, ids,context=None):
|
||||
if not context:
|
||||
context={}
|
||||
lead_pool = self.pool.get("crm.lead")
|
||||
for current in self.browse(cr, uid, ids):
|
||||
if current.mod_name == 'lead' or current.mod_name == 'opportunity':
|
||||
module_name = 'crm'
|
||||
|
||||
elif current.mod_name == "accounts":
|
||||
module_name = 'account'
|
||||
ids = self.pool.get("ir.module.module").search(cr, uid, [("name", '=',
|
||||
module_name), ('state', '=', 'installed')])
|
||||
if not ids:
|
||||
raise osv.except_osv(_('Error !'), _('Please Install %s Module') % (module_name))
|
||||
|
||||
if current.mod_name == 'lead':
|
||||
sugar_name = "Leads"
|
||||
elif current.mod_name == 'opportunity':
|
||||
sugar_name="Opportunities"
|
||||
elif current.mod_name == 'accounts':
|
||||
sugar_name="Accounts"
|
||||
elif current.mod_name == 'contact':
|
||||
sugar_name="Contacts"
|
||||
|
||||
sugar_data = sugar.test(sugar_name)
|
||||
for sugar_val in sugar_data:
|
||||
if sugar_name == "Leads":
|
||||
lead_pool.create(cr, uid, {'name': sugar_val.get("first_name"), 'email_from': sugar_val.get("email1"), 'phone': sugar_val.get("phone_work"), 'mobile': sugar_val.get("phone_mobile"), 'write_date':sugar_val.get("date_modified"), 'user_id':sugar_val.get("created_by"), 'partner_name':sugar_val.get("title"), 'city':sugar_val.get("primary_address_city")})
|
||||
|
||||
return {}
|
||||
|
||||
import_sugarcrm()
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Import Sugarcrm Form View -->
|
||||
<record model="ir.ui.view" id="view_import_sugarcrm_form">
|
||||
<field name="name">import.sugarcrm.form</field>
|
||||
<field name="model">import.sugarcrm</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Import Sugarcrm">
|
||||
<group colspan="4" >
|
||||
<separator string="Select SugarCRM Module Name" colspan="4"/>
|
||||
<field name="mod_name" />
|
||||
</group>
|
||||
<separator string="" colspan="4" />
|
||||
<group colspan="4" >
|
||||
<label string="" colspan="2"/>
|
||||
<button icon="gtk-cancel" special="cancel" string="_Cancel"/>
|
||||
<button name="import_data" string="Import"
|
||||
type="object" icon="gtk-ok"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Import Sugarcrm Action -->
|
||||
|
||||
<record model="ir.actions.act_window" id="action_import_sugarcrm">
|
||||
<field name="name">Import Sugarcrm</field>
|
||||
<field name="res_model">import.sugarcrm</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_import_sugarcrm_form"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="Sugarcrm" id="menu_sugarcrm" parent="base.menu_base_partner"/>
|
||||
<menuitem name="Import Sugarcrm" id="menu_import_sugarcrm" parent="menu_sugarcrm" action="action_import_sugarcrm" icon="STOCK_EXECUTE"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
|
||||
import hashlib
|
||||
import datetime, time
|
||||
from sugarsoap_services import *
|
||||
import unittest
|
||||
|
||||
class LoginError(Exception): pass
|
||||
|
||||
class SugarCRM:
|
||||
def __init__(self, url=None, tracefile=None):
|
||||
loc = sugarsoapLocator()
|
||||
self.portType = loc.getsugarsoapPortType(url=url,
|
||||
tracefile=tracefile)
|
||||
self.sessid = None
|
||||
|
||||
def login(self, username, password):
|
||||
request = loginRequest()
|
||||
uauth = request.new_user_auth()
|
||||
request.User_auth = uauth
|
||||
|
||||
uauth.User_name = username
|
||||
uauth.Password = hashlib.md5(password).hexdigest()
|
||||
uauth.Version = "1.1"
|
||||
|
||||
response = self.portType.login(request)
|
||||
if -1 == response.Return.Id:
|
||||
raise LoginError(response.Return.Error)
|
||||
self.sessid = response.Return.Id
|
||||
|
||||
def logout(self):
|
||||
if None == self.sessid:
|
||||
return
|
||||
request = logoutRequest()
|
||||
request.Session = self.sessid
|
||||
|
||||
self.portType.logout(request)
|
||||
self.sessid = None
|
||||
|
||||
def _get_sugar_user_id(self):
|
||||
gui_req = get_user_idRequest()
|
||||
gui_req.Session = self.sessid
|
||||
uid = self.portType.get_user_id(gui_req).Return
|
||||
self.sugar_user_id = uid
|
||||
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if "sugar_user_id" == attr:
|
||||
self._get_sugar_user_id()
|
||||
return self.sugar_user_id
|
||||
else:
|
||||
raise AttributeError
|
||||
|
||||
class SugarModule:
|
||||
def __init__(self, sugar, module_name, encoding='utf-8'):
|
||||
self.module_name = module_name
|
||||
self.sugar = sugar
|
||||
self.encoding = encoding
|
||||
|
||||
def search(self, entryid, fields=None):
|
||||
from sugarsoap_services import get_entry_listRequest
|
||||
se_req = get_entry_listRequest()
|
||||
se_req._session = self.sugar.sessid
|
||||
se_req._module_name = self.module_name
|
||||
sugarcrm_obj = SugarCRM("http://localhost/sugarcrm/soap.php")
|
||||
portType = sugarcrm_obj.portType
|
||||
se_resp = portType.get_entry_list(se_req);
|
||||
list = se_resp._return._entry_list;
|
||||
ans_list = []
|
||||
for i in list:
|
||||
ans_dir = {};
|
||||
for j in i._name_value_list:
|
||||
ans_dir[j._name.encode(self.encoding)] = j._value.encode(self.encoding)
|
||||
#end for
|
||||
ans_list.append(ans_dir);
|
||||
#end for
|
||||
return ans_list;
|
||||
|
||||
def test(module_name):
|
||||
sugarcrm_obj = SugarCRM("http://localhost/sugarcrm/soap.php")
|
||||
sugar_login = sugarcrm_obj.login('sarah', 'sarah')
|
||||
sugarmodule_obj = SugarModule(sugarcrm_obj, module_name)
|
||||
vals = sugarmodule_obj.search(sugarcrm_obj)
|
||||
return vals
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,642 @@
|
|||
##################################################
|
||||
# sugarsoap_services_types.py
|
||||
# generated by ZSI.generate.wsdl2python
|
||||
##################################################
|
||||
|
||||
|
||||
import ZSI
|
||||
import ZSI.TCcompound
|
||||
from ZSI.TC import ElementDeclaration,TypeDefinition
|
||||
from ZSI.TC import _get_type_definition as GTD, _get_global_element_declaration as GED
|
||||
from ZSI.generate.pyclass import pyclass_type
|
||||
|
||||
##############################
|
||||
# targetNamespace
|
||||
# http://www.sugarcrm.com/sugarcrm
|
||||
##############################
|
||||
|
||||
class ns0:
|
||||
targetNamespace = "http://www.sugarcrm.com/sugarcrm"
|
||||
|
||||
class contact_detail_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "contact_detail")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.contact_detail_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="email_address", aname="_email_address", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="name1", aname="_name1", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="name2", aname="_name2", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="association", aname="_association", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="msi_id", aname="_msi_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="type", aname="_type", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._email_address = None
|
||||
self._name1 = None
|
||||
self._name2 = None
|
||||
self._association = None
|
||||
self._id = None
|
||||
self._msi_id = None
|
||||
self._type = None
|
||||
return
|
||||
Holder.__name__ = "contact_detail_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class contact_detail_array_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "contact_detail_array")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.contact_detail_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'contact_detail[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class user_detail_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "user_detail")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.user_detail_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="email_address", aname="_email_address", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="user_name", aname="_user_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="first_name", aname="_first_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="last_name", aname="_last_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="department", aname="_department", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="title", aname="_title", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._email_address = None
|
||||
self._user_name = None
|
||||
self._first_name = None
|
||||
self._last_name = None
|
||||
self._department = None
|
||||
self._id = None
|
||||
self._title = None
|
||||
return
|
||||
Holder.__name__ = "user_detail_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class user_detail_array_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "user_detail_array")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.user_detail_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'user_detail[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class note_attachment_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "note_attachment")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.note_attachment_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="filename", aname="_filename", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="file", aname="_file", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._id = None
|
||||
self._filename = None
|
||||
self._file = None
|
||||
return
|
||||
Holder.__name__ = "note_attachment_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class return_note_attachment_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "return_note_attachment")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.return_note_attachment_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","note_attachment",lazy=False)(pname="note_attachment", aname="_note_attachment", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._note_attachment = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "return_note_attachment_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class user_auth_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "user_auth")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.user_auth_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="user_name", aname="_user_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="password", aname="_password", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="version", aname="_version", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._user_name = None
|
||||
self._password = None
|
||||
self._version = None
|
||||
return
|
||||
Holder.__name__ = "user_auth_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class field_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "field")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.field_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="name", aname="_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="type", aname="_type", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="label", aname="_label", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="required", aname="_required", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","name_value_list",lazy=False)(pname="options", aname="_options", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._name = None
|
||||
self._type = None
|
||||
self._label = None
|
||||
self._required = None
|
||||
self._options = None
|
||||
return
|
||||
Holder.__name__ = "field_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class field_list_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "field_list")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.field_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'field[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class name_value_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "name_value")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.name_value_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="name", aname="_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="value", aname="_value", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._name = None
|
||||
self._value = None
|
||||
return
|
||||
Holder.__name__ = "name_value_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class name_value_list_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "name_value_list")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.name_value_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'name_value[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class name_value_lists_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "name_value_lists")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.name_value_list_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'name_value_list[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class select_fields_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "select_fields")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ZSI.TC.String(None, typed=False)
|
||||
atype = (u'http://www.w3.org/2001/XMLSchema', u'string[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class module_fields_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "module_fields")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.module_fields_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="module_name", aname="_module_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","field_list",lazy=False)(pname="module_fields", aname="_module_fields", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._module_name = None
|
||||
self._module_fields = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "module_fields_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class module_list_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "module_list")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.module_list_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","select_fields",lazy=False)(pname="modules", aname="_modules", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._modules = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "module_list_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class error_value_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "error_value")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.error_value_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="number", aname="_number", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="name", aname="_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="description", aname="_description", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._number = None
|
||||
self._name = None
|
||||
self._description = None
|
||||
return
|
||||
Holder.__name__ = "error_value_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class entry_value_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "entry_value")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.entry_value_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="module_name", aname="_module_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","name_value_list",lazy=False)(pname="name_value_list", aname="_name_value_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._id = None
|
||||
self._module_name = None
|
||||
self._name_value_list = None
|
||||
return
|
||||
Holder.__name__ = "entry_value_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class entry_list_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "entry_list")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.entry_value_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'entry_value[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class get_entry_list_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_entry_list_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_entry_list_result_Def.schema
|
||||
TClist = [ZSI.TCnumbers.Iint(pname="result_count", aname="_result_count", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="next_offset", aname="_next_offset", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","field_list",lazy=False)(pname="field_list", aname="_field_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","entry_list",lazy=False)(pname="entry_list", aname="_entry_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._result_count = None
|
||||
self._next_offset = None
|
||||
self._field_list = None
|
||||
self._entry_list = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_entry_list_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class get_entry_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_entry_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_entry_result_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","field_list",lazy=False)(pname="field_list", aname="_field_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","entry_list",lazy=False)(pname="entry_list", aname="_entry_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._field_list = None
|
||||
self._entry_list = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_entry_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class set_entry_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "set_entry_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.set_entry_result_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._id = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "set_entry_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class set_entries_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "set_entries_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.set_entries_result_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","select_fields",lazy=False)(pname="ids", aname="_ids", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._ids = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "set_entries_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class id_mod_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "id_mod")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.id_mod_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="date_modified", aname="_date_modified", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="deleted", aname="_deleted", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._id = None
|
||||
self._date_modified = None
|
||||
self._deleted = None
|
||||
return
|
||||
Holder.__name__ = "id_mod_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class ids_mods_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "ids_mods")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.id_mod_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'id_mod[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class get_relationships_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_relationships_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_relationships_result_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","ids_mods",lazy=False)(pname="ids", aname="_ids", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._ids = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_relationships_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class set_relationship_value_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "set_relationship_value")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.set_relationship_value_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="module1", aname="_module1", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="module1_id", aname="_module1_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="module2", aname="_module2", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="module2_id", aname="_module2_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._module1 = None
|
||||
self._module1_id = None
|
||||
self._module2 = None
|
||||
self._module2_id = None
|
||||
return
|
||||
Holder.__name__ = "set_relationship_value_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class set_relationship_list_Def(ZSI.TC.Array, TypeDefinition):
|
||||
#complexType/complexContent base="SOAP-ENC:Array"
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "set_relationship_list")
|
||||
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
|
||||
ofwhat = ns0.set_relationship_value_Def(None, typed=False)
|
||||
atype = (u'http://www.sugarcrm.com/sugarcrm', u'set_relationship_value[]')
|
||||
ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)
|
||||
|
||||
class set_relationship_list_result_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "set_relationship_list_result")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.set_relationship_list_result_Def.schema
|
||||
TClist = [ZSI.TCnumbers.Iint(pname="created", aname="_created", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="failed", aname="_failed", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._created = None
|
||||
self._failed = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "set_relationship_list_result_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class document_revision_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "document_revision")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.document_revision_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="id", aname="_id", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="document_name", aname="_document_name", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="revision", aname="_revision", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="filename", aname="_filename", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="file", aname="_file", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._id = None
|
||||
self._document_name = None
|
||||
self._revision = None
|
||||
self._filename = None
|
||||
self._file = None
|
||||
return
|
||||
Holder.__name__ = "document_revision_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class get_entry_list_result_encoded_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_entry_list_result_encoded")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_entry_list_result_encoded_Def.schema
|
||||
TClist = [ZSI.TCnumbers.Iint(pname="result_count", aname="_result_count", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="next_offset", aname="_next_offset", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="total_count", aname="_total_count", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","select_fields",lazy=False)(pname="field_list", aname="_field_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="entry_list", aname="_entry_list", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._result_count = None
|
||||
self._next_offset = None
|
||||
self._total_count = None
|
||||
self._field_list = None
|
||||
self._entry_list = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_entry_list_result_encoded_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class get_sync_result_encoded_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_sync_result_encoded")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_sync_result_encoded_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="result", aname="_result", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._result = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_sync_result_encoded_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class get_quick_sync_result_encoded_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "get_quick_sync_result_encoded")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.get_quick_sync_result_encoded_Def.schema
|
||||
TClist = [ZSI.TC.String(pname="result", aname="_result", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="result_count", aname="_result_count", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="next_offset", aname="_next_offset", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="total_count", aname="_total_count", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._result = None
|
||||
self._result_count = None
|
||||
self._next_offset = None
|
||||
self._total_count = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "get_quick_sync_result_encoded_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
class return_document_revision_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
|
||||
schema = "http://www.sugarcrm.com/sugarcrm"
|
||||
type = (schema, "return_document_revision")
|
||||
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
|
||||
ns = ns0.return_document_revision_Def.schema
|
||||
TClist = [GTD("http://www.sugarcrm.com/sugarcrm","document_revision",lazy=False)(pname="document_revision", aname="_document_revision", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.sugarcrm.com/sugarcrm","error_value",lazy=False)(pname="error", aname="_error", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
|
||||
self.attribute_typecode_dict = attributes or {}
|
||||
if extend: TClist += ofwhat
|
||||
if restrict: TClist = ofwhat
|
||||
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
|
||||
class Holder:
|
||||
__metaclass__ = pyclass_type
|
||||
typecode = self
|
||||
def __init__(self):
|
||||
# pyclass
|
||||
self._document_revision = None
|
||||
self._error = None
|
||||
return
|
||||
Holder.__name__ = "return_document_revision_Holder"
|
||||
self.pyclass = Holder
|
||||
|
||||
# end class ns0 (tns: http://www.sugarcrm.com/sugarcrm)
|
Loading…
Reference in New Issue