~ubuntu-branches/ubuntu/trusty/openerp-client/trusty

« back to all changes in this revision

Viewing changes to bin/tools/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-12-16 13:19:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081216131900-78dkgmm77quksky2
Tags: 5.0.0~rc1.1-1
MergingĀ upstreamĀ versionĀ 5.0.0~rc1.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- encoding: utf-8 -*-
2
2
##############################################################################
3
3
#
4
 
#    OpenERP, Open Source Management Solution   
 
4
#    OpenERP, Open Source Management Solution
5
5
#    Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6
6
#    $Id$
7
7
#
28
28
    import rpc
29
29
    context['uid'] = rpc.session.uid
30
30
    if isinstance(string, basestring):
31
 
        return eval(string, context)
 
31
#        return eval(string, context)
 
32
        string=string.replace("'active_id'","active_id")
 
33
        temp=eval(string, context)
 
34
        return temp
32
35
    else:
33
36
        return string
34
37