Bugfix when droping / recreating db of the same name

Better es_ES translation
Script to test all installs

bzr revid: fp@tinyerp.com-9e12f02dffd05c4b1b0a092d7917124614f2e4cb
This commit is contained in:
Fabien Pinckaers 2007-08-15 06:56:06 +00:00
parent 8bd47e7d61
commit 4643654e65
4 changed files with 3490 additions and 3525 deletions

File diff suppressed because it is too large Load Diff

View File

@ -89,6 +89,8 @@ class _column(object):
if self.relate:
warnings.warn("The relate attribute doesn't work anymore, use act_window tag instead", DeprecationWarning)
def restart(self):
pass
def set(self, cr, obj, id, name, value, user=None, context=None):
cr.execute('update '+obj._table+' set '+name+'='+self._symbol_set[0]+' where id=%d', (self._symbol_set[1](value),id) )
@ -615,3 +617,6 @@ class property(function):
def __init__(self, obj_prop, **args):
self.field_id = {}
function.__init__(self, self._fnct_read, False, self._fnct_write, (obj_prop, ), **args)
def restart(self):
self.field_id = {}

View File

@ -511,6 +511,8 @@ class orm(object):
self._sequence = self._table+'_id_seq'
for k in self._defaults:
assert (k in self._columns) or (k in self._inherit_fields), 'Default function defined in %s but field %s does not exist !' % (self._name, k,)
for f in self._columns:
self._columns[f].restart()
# FIXME: does not work at all
# if self._log_access:
# self._columns.update({

View File

@ -65,7 +65,9 @@ langs = lang or (map(lambda x: x[0], sock2.list_lang()) + ['en_US'])
def wait(id):
progress=0.0
while not progress==1.0:
time.sleep(3)
progress,users = sock2.get_progress(admin_passwd, id)
time.sleep(3)
return True
def wizard_run(wizname, fieldvalues={}, endstate='end'):