~unifield-team/unifield-web/uf-2235

« back to all changes in this revision

Viewing changes to addons/openerp/tools/rpc.py

  • Committer: ame (Tiny)
  • Date: 2010-01-07 07:47:47 UTC
  • Revision ID: ame@tinyerp.com-20100107074747-sqc1cmm24gofqmuh
[REF] separating base API to openobject
[REF] removed all openerp related stuffs from base api

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
        """
325
325
 
326
326
        self._context = {'client': 'web'}
327
 
        self.timezone = 'utc'
328
 
 
 
327
        
329
328
        # self.uid
330
329
        context = self.execute('object', 'execute', 'res.users', 'context_get')
331
330
        self._context.update(context or {})
332
331
        
333
 
        if self.context.get('tz', False):
334
 
            self.timezone = self.execute('common', 'timezone_get')
 
332
        self.remote_timezone = 'utc'
 
333
        self.client_timezone = self.context.get("tz", False)
 
334
        
 
335
        if self.client_timezone:
 
336
            self.remote_timezone = self.execute('common', 'timezone_get')
335
337
            try:
336
338
                import pytz
337
339
            except: