add set language

master3.3
Спиридонов Денис 12 years ago
parent d3c215a5b3
commit 34d4b7392d

@ -324,8 +324,8 @@ class Basic (DefinitionBase) :
def list_pid ( self, sid):
return self.find_sid_pid_file (sid)
@rpc(String, _returns = Array(Array(String)))
def get_methods ( self, client_type) :
@rpc(Integer, String, _returns = Array(Array(String)))
def get_methods ( self, sid, client_type) :
return map(lambda x:map(str,x),
self.serv_get_methods (client_type))

@ -76,6 +76,8 @@ class ApiWsdl () :
return [['0','0']]
return return_list
else:
curThread = threading.currentThread()
print 'lang = ', curThread.lang
for meth in self.return_guiMethod():
right_flag = True
for right in Dec.rightsMethods[meth[1]]:
@ -471,7 +473,7 @@ class ApiWsdl () :
""" get clients lang """
lang = None
SIDS_DIR = self.sids
sid_file = SIDS_DIR+"/%d.sid" %sid
sid_file = SIDS_DIR+"/%d.sid" %int(sid)
if not os.path.exists(sid_file):
temp = open(sid_file, 'w')
temp.close()

Loading…
Cancel
Save