← Back to team overview

report-openoffice-team team mailing list archive

[Bug 519193] Re: AttributeError: 'bool' object has no attribute 'find'

 

I guess this was really some misunderstanding, seems I don't need
parser_state to location at all. using the 1.0rc (instead of bzr
revision4) it is really sufficient to set report_rml to the location of
the .odt file. If the file is found there everything works fine.

Sry to bother you, this bug can be closed again.

-- 
AttributeError: 'bool' object has no attribute 'find'
https://bugs.launchpad.net/bugs/519193
You received this bug notification because you are a member of Report
OpenOffice Team, which is the registrant for Report OpenOffice.

Status in OpenOffice.org Reporting Tool for OpenObject: New

Bug description:
In Trying to assign a fixed path to the location of the .odt template I set "State of the Parser" to "Location" as I figured this would be required. Doing so I end up with this exception. If this is an error on using the module it still would be nice to get a better message to explain the cause.

Thx, the module looks very promising.
----------------------------------------------
Environment Information : 
System : Linux-2.6.32-trunk-amd64-x86_64-with-debian-squeeze-sid
OS Name : posix
LSB Version:	core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:languages-3.2-amd64:languages-3.2-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (squeeze)
Release:	testing
Codename:	squeeze
Operating System Release : 2.6.32-trunk-amd64
Operating System Version : #1 SMP Sun Jan 10 22:40:40 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : NOT SET
Python Version : 2.5.5
OpenERP-Client Version : 5.0.7
Last revision No. & ID :1045 jvo@xxxxxxxxxxx-20100202135049-4qnnllp06lofp7rw
Traceback (most recent call last):
  File "/usr/local/src/openerp/server/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/local/src/openerp/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/local/src/openerp/server/bin/service/web_services.py", line 576, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/local/src/openerp/server/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/src/openerp/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/src/openerp/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/src/openerp/server/bin/addons/report_openoffice/report_xml.py", line 138, in write
    parser = load_from_file(record['parser_loc'], cr.dbname, record['id'])
  File "/usr/local/src/openerp/server/bin/addons/report_openoffice/report_openoffice.py", line 306, in load_from_file
    if filepath.find(os.getcwd())==-1:
AttributeError: 'bool' object has no attribute 'find'





References