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

« back to all changes in this revision

Viewing changes to openobject/i18n/utils.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:
66
66
        return locale
67
67
    
68
68
    try:
69
 
        from openobject.tools import rpc
70
 
        locale = rpc.session.locale
71
 
        if locale: return locale
 
69
        locale = cherrypy.session[locale]
 
70
        if locale:
 
71
            return locale
72
72
    except:
73
73
        pass
74
74