← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 675826] Re: AttributeError: 'bool' object has no attribute 'upper'

 

Comment out the code to check time from server, using pytz module.

** Patch added: "bin.rpc.py.diff"
   https://bugs.launchpad.net/openobject-client/+bug/675826/+attachment/1735116/+files/bin.rpc.py.diff

** Description changed:

+ openerp-client.py crashes after login
  
  ~/Documents/Projects/openerp-trunk/client$ bin/openerp-client.py --sync
  Traceback (most recent call last):
-   File "bin/openerp-client.py", line 133, in <module>
-     win.sig_login()
-   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
-     log_response = rpc.session.login(*res)
-   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
-     self.context_reload()~/Documents/Projects/openerp-trunk/client$ bin/openerp-client.py --sync
+   File "bin/openerp-client.py", line 133, in <module>
+     win.sig_login()
+   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
+     log_response = rpc.session.login(*res)
+   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
+     self.context_reload()~/Documents/Projects/openerp-trunk/client$ bin/openerp-client.py --sync
  Traceback (most recent call last):
-   File "bin/openerp-client.py", line 133, in <module>
-     win.sig_login()
-   File "/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
-     log_response = rpc.session.login(*res)
-   File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
-     self.context_reload()
-   File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
-     pytz.timezone(self.timezone)
-   File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
-     if zone.upper() == 'UTC':
+   File "bin/openerp-client.py", line 133, in <module>
+     win.sig_login()
+   File "/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
+     log_response = rpc.session.login(*res)
+   File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
+     self.context_reload()
+   File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
+     pytz.timezone(self.timezone)
+   File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
+     if zone.upper() == 'UTC':
  AttributeError: 'bool' object has no attribute 'upper'
  
-   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
-     pytz.timezone(self.timezone)
-   File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
-     if zone.upper() == 'UTC':
+   File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
+     pytz.timezone(self.timezone)
+   File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
+     if zone.upper() == 'UTC':
  AttributeError: 'bool' object has no attribute 'upper'
- 
  
  Information related to repository and revision
  
  ~/Documents/Projects/openerp-trunk/client$ bzr info
  Standalone tree (format: 2a)
  Location:
    branch root: .
  
  Related branches:
    parent branch: bzr+ssh://bazaar.launchpad.net/~openerp/openobject-client/trunk/
  
  ~/Documents/Projects/openerp-trunk/client$ bzr log -l 1 -v
  ------------------------------------------------------------
  revno: 1684
  committer: nch@xxxxxxxxxxx
  branch nick: trunk
  timestamp: Fri 2010-11-12 17:04:29 +0530
  message:
    [FIX]:IndexError: list index out of range when configuration wizards fails and user presses skip button
  modified:
    bin/widget/model/field.py

-- 
AttributeError: 'bool' object has no attribute 'upper'
https://bugs.launchpad.net/bugs/675826
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: New

Bug description:
openerp-client.py crashes after login

~/Documents/Projects/openerp-trunk/client$ bin/openerp-client.py --sync
Traceback (most recent call last):
  File "bin/openerp-client.py", line 133, in <module>
    win.sig_login()
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
    log_response = rpc.session.login(*res)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
    self.context_reload()~/Documents/Projects/openerp-trunk/client$ bin/openerp-client.py --sync
Traceback (most recent call last):
  File "bin/openerp-client.py", line 133, in <module>
    win.sig_login()
  File "/Documents/Projects/openerp-trunk/client/bin/modules/gui/main.py", line 1020, in sig_login
    log_response = rpc.session.login(*res)
  File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 253, in login
    self.context_reload()
  File "/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
    pytz.timezone(self.timezone)
  File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
    if zone.upper() == 'UTC':
AttributeError: 'bool' object has no attribute 'upper'

  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 331, in context_reload
    pytz.timezone(self.timezone)
  File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 138, in timezone
    if zone.upper() == 'UTC':
AttributeError: 'bool' object has no attribute 'upper'

Information related to repository and revision

~/Documents/Projects/openerp-trunk/client$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/~openerp/openobject-client/trunk/

~/Documents/Projects/openerp-trunk/client$ bzr log -l 1 -v
------------------------------------------------------------
revno: 1684
committer: nch@xxxxxxxxxxx
branch nick: trunk
timestamp: Fri 2010-11-12 17:04:29 +0530
message:
  [FIX]:IndexError: list index out of range when configuration wizards fails and user presses skip button
modified:
  bin/widget/model/field.py








References