Fix window preference if not logged

This commit is contained in:
Cédric Krier committed 2008-06-12 19:40:52 +02:00
1 parent cdbf18d4e5
commit 49f1dd6f49
1 file changed
+9 -3
+9 -3
View File
@@ -34,9 +34,15 @@ class Preference(object):
try:
res = user.get_preferences_fields_view(rpc.CONTEXT)
except Exception, exception:
common.process_exception(exception, parent)
self.win.destroy()
raise
if not common.process_exception(exception, parent):
self.win.destroy()
raise
try:
res = user.get_preferences_fields_view(rpc.CONTEXT)
except Exception, exception:
common.process_exception(exception, parent)
self.win.destroy()
raise
arch = res['arch']
fields = res['fields']
self.screen = Screen('res.user', self.win, view_type=[])