Skip to content

Commit

Permalink
fix regression on connect, RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Apr 4, 2012
1 parent 4304095 commit ff80e78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Changelog
---------


0.7 (2012-04-04)
~~~~~~~~~~~~~~~~

* Fix RuntimeError on connection.


0.6 (2012-04-03)
~~~~~~~~~~~~~~~~

Expand Down
5 changes: 3 additions & 2 deletions erppeek.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def literal_eval(node_or_string):
return _convert(node_or_string)


__version__ = '0.6'
__version__ = '0.7'
__all__ = ['Client', 'read_config']

CONF_FILE = 'erppeek.ini'
Expand Down Expand Up @@ -229,6 +229,7 @@ def __getattr__(self, name):

class Client(object):

_execute = None
_config_file = os.path.join(os.path.curdir, CONF_FILE)

def __init__(self, server, db, user, password=None):
Expand Down Expand Up @@ -531,7 +532,7 @@ def access(self, obj, mode='read'):
try:
self._execute('ir.model.access', 'check', obj, mode)
return True
except (AttributeError, Fault):
except (TypeError, Fault):
return False

def __getattr__(self, method):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='ERPpeek',
version='0.6',
version='0.7',
license='BSD',
description='Versatile tool for browsing OpenERP data',
long_description=readme,
Expand Down

0 comments on commit ff80e78

Please sign in to comment.