[IMP] outlook : Setting default value for Server Parameters Dialog and Cleaning of the Web Para Global Names
bzr revid: jam@tinyerp.com-20110201131712-ww1p0aa8l5gk2aak
This commit is contained in:
@@ -330,8 +330,6 @@ class WEBOKButtonProcessor(ButtonProcessor):
|
||||
win32ui.MessageBox("Invalid web Server address.", "OpenERP Connection", flag_excl)
|
||||
return
|
||||
setWebConnAttribs(server, port, self.mngr)
|
||||
# web_server = server
|
||||
# web_server_port = port
|
||||
win32gui.EndDialog(self.window.hwnd, id)
|
||||
|
||||
class WEBCHKProcessor(ButtonProcessor):
|
||||
@@ -1626,7 +1624,6 @@ def SetStateList(listProcessor,*args):
|
||||
listProcessor.init_done = True
|
||||
|
||||
def SelectStateFromList(btnProcessor,*args):
|
||||
|
||||
hwndList = win32gui.GetDlgItem(btnProcessor.window.hwnd, btnProcessor.other_ids[0])
|
||||
sel_count = win32gui.SendMessage(hwndList, commctrl.LVM_GETSELECTEDCOUNT)
|
||||
sel_text = ''
|
||||
@@ -1660,7 +1657,41 @@ def SelectStateFromList(btnProcessor,*args):
|
||||
win32ui.MessageBox("Multiple selection is not allowed.","Search Fed.State")
|
||||
return
|
||||
|
||||
def SetWebDefaultVals(txtProcessor,*args):
|
||||
import win32con
|
||||
#Acquiring control of the text box
|
||||
chk_hwnd = win32gui.GetDlgItem(txtProcessor.window.hwnd, txtProcessor.other_ids[1])
|
||||
try:
|
||||
web_server = NewConn.getitem('_webserver')
|
||||
web_port = NewConn.getitem('_webport')
|
||||
web_protocol = NewConn.getitem('_webprotocol')
|
||||
win32gui.SetDlgItemText(txtProcessor.window.hwnd, txtProcessor.control_id, web_server)
|
||||
win32gui.SetDlgItemText(txtProcessor.window.hwnd, txtProcessor.other_ids[0], web_port)
|
||||
if web_protocol == "https:\\\\":
|
||||
win32gui.SendMessage(chk_hwnd , win32con.BM_SETCHECK, 1, 0);
|
||||
except Exception, e:
|
||||
txtProcessor.init_done=True
|
||||
#Reading Current Selected Email.
|
||||
txtProcessor.init_done=True
|
||||
|
||||
def SetServerDefaultVals(txtProcessor,*args):
|
||||
import win32con
|
||||
select = 1
|
||||
#Acquiring control of the text box
|
||||
cbprotocol_hwnd = win32gui.GetDlgItem(txtProcessor.window.hwnd, txtProcessor.other_ids[1])
|
||||
try:
|
||||
web_server = NewConn.getitem('_server')
|
||||
web_port = NewConn.getitem('_port')
|
||||
web_protocol = NewConn.getitem('protocol')
|
||||
win32gui.SetDlgItemText(txtProcessor.window.hwnd, txtProcessor.control_id, web_server)
|
||||
win32gui.SetDlgItemText(txtProcessor.window.hwnd, txtProcessor.other_ids[0], web_port)
|
||||
if web_protocol == "XML-RPCS":
|
||||
select = 2
|
||||
win32gui.SendMessage(cbprotocol_hwnd, win32con.CB_SETCURSEL, select, 0)
|
||||
except Exception, e:
|
||||
txtProcessor.init_done=True
|
||||
#Reading Current Selected Email.
|
||||
txtProcessor.init_done=True
|
||||
|
||||
dialog_map = {
|
||||
"IDD_MANAGER" : (
|
||||
@@ -1694,7 +1725,8 @@ dialog_map = {
|
||||
),
|
||||
|
||||
"IDD_SERVER_PORT_DIALOG" : (
|
||||
(ProtocolComboProcessor, "ID_DROPDOWNLIST_PROTOCOL", GetConn, ()),
|
||||
(TextProcessor, "ID_SERVER ID_PORT ID_DROPDOWNLIST_PROTOCOL", SetServerDefaultVals, ()),
|
||||
(ProtocolComboProcessor, "ID_DROPDOWNLIST_PROTOCOL", GetConn, ()),
|
||||
(CloseButtonProcessor, "IDCANCEL"),
|
||||
(OKButtonProcessor, "IDOK ID_SERVER ID_PORT IDR_XML_PROTOCOL ID_DROPDOWNLIST_PROTOCOL"),
|
||||
#
|
||||
@@ -1758,6 +1790,7 @@ dialog_map = {
|
||||
(TextProcessor, "IDEB_OPENDOC_LINK_TEXT", SerachOpenDocuemnt,()),
|
||||
),
|
||||
"IDD_WEB_SERVER_PORT_DIALOG" :(
|
||||
(TextProcessor, "IDET_WEB_SERVER IDET_WEB_PORT IDCB_WEB_SECURE", SetWebDefaultVals, ()),
|
||||
(CloseButtonProcessor, "IDCANCEL"),
|
||||
(WEBOKButtonProcessor, "ID_WEB_OK IDET_WEB_SERVER IDET_WEB_PORT IDCB_WEB_SECURE"),
|
||||
(WEBCHKProcessor, "IDCB_WEB_SECURE"),
|
||||
|
||||
@@ -225,12 +225,6 @@ class CSComboProcessor(ComboProcessor):
|
||||
try:
|
||||
list=['CRM Lead']#, 'CRM Helpdesk', 'CRM Lead', 'CRM Meeting', 'CRM Opportunity', 'CRM Phonecall']
|
||||
objlist = conn.GetAllObjects()
|
||||
# if 'crm.claim' in objlist:
|
||||
# list.append('CRM Claim')
|
||||
# if 'crm.helpdesk' in objlist:
|
||||
# list.append('CRM Helpdesk')
|
||||
# if 'crm.fundraising' in objlist:
|
||||
# list.append('CRM Fundraising')
|
||||
if'hr.applicant' in objlist:
|
||||
list.append('HR Applicant')
|
||||
if'project.issue' in objlist:
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -109,9 +109,6 @@ BEGIN
|
||||
EDITTEXT ID_PORT, 45, 18, 100, 12, ES_AUTOHSCROLL | WS_TABSTOP
|
||||
|
||||
GROUPBOX "", IDC_STATIC_GROUP, 5, 35, 150, 5
|
||||
// PUSHBUTTON "XML-RPC",IDR_XML_PROTOCOL,8,45,50,14,BS_AUTORADIOBUTTON | BST_CHECKED |WS_TABSTOP
|
||||
// PUSHBUTTON "XML-RPCS",IDR_XMLS_PROTOCOL,55,45,50,14,BS_AUTORADIOBUTTON | WS_TABSTOP
|
||||
// PUSHBUTTON "NET-RPC",IDR_NETRPC_PROTOCOL,105,45,45,14,BS_AUTORADIOBUTTON | WS_TABSTOP
|
||||
LTEXT "Protocol Connection :", IDC_STATIC, 5, 45, 80, 17
|
||||
COMBOBOX ID_DROPDOWNLIST_PROTOCOL, 75, 43, 75, 50, CBS_DROPDOWNLIST |WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
|
||||
|
||||
@@ -340,4 +337,3 @@ BEGIN
|
||||
LVS_SHOWSELALWAYS | LVS_EX_GRIDLINES | LVS_REPORT | LVS_EX_FULLROWSELECT, 8,40,200,185
|
||||
PUSHBUTTON "Select", IDPB_SELECT_STATE, 170, 230, 40, 14, WS_TABSTOP
|
||||
END
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
|
||||
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||
|
||||
[Files]
|
||||
Source: "C:\workspace\openerp-outlook-plugin\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "C:\openerp-outlook-plugin\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[Messages]
|
||||
|
||||
Reference in New Issue
Block a user