|
Lines 94-99
def __init__(self, client, socket):
Link Here
|
| 94 |
self.socket = socket |
94 |
self.socket = socket |
| 95 |
self.processor = None |
95 |
self.processor = None |
| 96 |
self.authenticated = False |
96 |
self.authenticated = False |
|
|
97 |
self.locale = None |
| 97 |
self.__credentials = None |
98 |
self.__credentials = None |
| 98 |
self.buffer = '' |
99 |
self.buffer = '' |
| 99 |
self.requests = {} |
100 |
self.requests = {} |
|
Lines 214-220
class Processor(Base):
Link Here
|
| 214 |
:param str password: password of the user |
215 |
:param str password: password of the user |
| 215 |
""" |
216 |
""" |
| 216 |
|
217 |
|
| 217 |
def __init__(self, username, password, auth_type): |
218 |
def __init__(self, username, password, auth_type, locale=None): |
| 218 |
Base.__init__(self, 'univention-management-console') |
219 |
Base.__init__(self, 'univention-management-console') |
| 219 |
self.set_credentials(username, password, auth_type) |
220 |
self.set_credentials(username, password, auth_type) |
| 220 |
|
221 |
|
|
Lines 235-240
def __init__(self, username, password, auth_type):
Link Here
|
| 235 |
self._reload_acls_and_permitted_commands() |
236 |
self._reload_acls_and_permitted_commands() |
| 236 |
|
237 |
|
| 237 |
self.signal_new('response') |
238 |
self.signal_new('response') |
|
|
239 |
if locale: |
| 240 |
self.set_language(locale) |
| 241 |
self.i18n.set_locale(locale) |
| 238 |
|
242 |
|
| 239 |
def set_credentials(self, username, password, auth_type): |
243 |
def set_credentials(self, username, password, auth_type): |
| 240 |
self.username = username |
244 |
self.username = username |