relate button to version

bzr revid: pinky-7209b697a70dcf42750e812a6d7f43030a6b53ae
pinky 2006-12-27 11:56:48 +00:00
parent 9890231537
commit a230dfb364
2 changed files with 12 additions and 4 deletions

View File

@ -525,14 +525,14 @@ class property(function):
return res
def _field_get(self, self2, cr, uid, prop):
if not self.field_id:
if not self.field_id.get(cr.dbname):
cr.execute('select id from ir_model_fields where name=%s and model=%s', (prop, self2._name))
res = cr.fetchone()
self.field_id = res and res[0]
return self.field_id
self.field_id[cr.dbname] = res and res[0]
return self.field_id[cr.dbname]
def __init__(self, obj_prop, **args):
self.field_id = False
self.field_id = {}
self._fnct_read, False,
self._fnct_write, (obj_prop, ),

View File

@ -33,6 +33,14 @@ following commands:
apt-get install libxslt1-python2.3 python2.3-psycopg python2.3-reportlab
apt-get install python2.3-imaging python2.3-pyparsing graphviz
For newer Debian-based distributions such as Etch, the required packages can be
installed with the following commands:
apt-get install python2.4 python-xml postgresql postgresql-client python-libxml2
apt-get install python-libxslt1 python-psycopg python-reportlab
apt-get install python-imaging python-pyparsing graphviz
For Fedora
if they are not installed, install:
python and postgresql