[IMP] Outlook : Reload button removed from the OpenERP Config dailog
bzr revid: jam@tinyerp.com-20101104090733-l5anplc32934y4li
This commit is contained in:
@@ -409,14 +409,6 @@ class DialogCommand(ButtonProcessor):
|
||||
dd = self.window.manager.dialog_parser.dialogs[self.idd]
|
||||
return "Displays the %s dialog" % dd.caption
|
||||
|
||||
def ReloadAllControls(btnProcessor,*args):
|
||||
server = NewConn.getitem('_server')
|
||||
port = NewConn.getitem('_port')
|
||||
btnProcessor.window.LoadAllControls()
|
||||
if str(NewConn.getitem('_running')) == 'False':
|
||||
win32ui.MessageBox("No server running on host "+ server+" at port "+str(port), "OpenERP Connection", flag_excl)
|
||||
return
|
||||
|
||||
def TestConnection(btnProcessor,*args):
|
||||
server = NewConn.getitem('_server')
|
||||
port = NewConn.getitem('_port')
|
||||
@@ -1686,7 +1678,6 @@ dialog_map = {
|
||||
(TextProcessor, "ID_SERVER_PORT ID_USERNAME ID_PASSWORD IDET_WED_SERVER", SetAllText, ()),
|
||||
(CommandButtonProcessor, "ID_BUT_TESTCONNECTION ID_DB_DROPDOWNLIST ID_USERNAME \
|
||||
ID_PASSWORD", TestConnection, ()),
|
||||
(CommandButtonProcessor, "IDC_RELOAD", ReloadAllControls, ()),
|
||||
(DialogCommand, "IDC_BUT_SET_SERVER_PORT", "IDD_SERVER_PORT_DIALOG"),
|
||||
(DialogCommand, "ID_SET_WEB_CONNECTION", "IDD_WEB_SERVER_PORT_DIALOG" ),
|
||||
(CommandButtonProcessor, "IDPB_WEB_CONNECTION IDET_WED_SERVER", ConnectWebServer, ()),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -49,9 +49,9 @@ BEGIN
|
||||
EDITTEXT ID_SERVER_PORT,85,30,120,12,ES_READONLY | WS_VISIBLE | WS_TABSTOP// left top width height
|
||||
PUSHBUTTON "Change",IDC_BUT_SET_SERVER_PORT,210,30,30,13, WS_VISIBLE | WS_TABSTOP
|
||||
LTEXT "Database : ",IDC_STATIC,30,50,100,17
|
||||
COMBOBOX ID_DB_DROPDOWNLIST,85,50,120,40,CBS_DROPDOWNLIST |
|
||||
COMBOBOX ID_DB_DROPDOWNLIST,85,50,154,40,CBS_DROPDOWNLIST |
|
||||
WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
|
||||
PUSHBUTTON "Reload",IDC_RELOAD,210,50,30,13, WS_VISIBLE | WS_TABSTOP
|
||||
|
||||
LTEXT "Username : ",IDC_STATIC,30,70,100,17
|
||||
EDITTEXT ID_USERNAME,85,70,154,12,ES_AUTOHSCROLL | WS_VISIBLE | WS_TABSTOP
|
||||
LTEXT "Password : ",IDC_STATIC,30,90,100,17
|
||||
|
||||
Reference in New Issue
Block a user