bugGNU Health - Bugs: bug #44110, Error saving Birth Certificate

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44110: Error saving Birth Certificate

Submitter:  Bruno M. Villasanti <bvillasanti>
Submitted:  Wed 28 Jan 2015 08:08:04 PM UTC
   
 
Category:  Programming / Tracebacks Severity:  5 - Blocker
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bvillasanti
Open/Closed:  Closed Release:  2.7.0
Module:  health, health_crypto Component:  None

Wed 28 Jan 2015 08:21:46 PM UTC, comment #1: 

Fixed on changeset 1809:535c832d46fe


Subsequent errors found and fixed in the process [1][2].

--
[1] Error: 'NoneType' object has no attribute 'rec_name'

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/model/modelsql.py", line 645, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 86, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 86, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 80, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 80, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health_crypto/health_crypto.py", line 285, in check_digest
    serial_doc=self.get_serial(self)
  File "/trytond/modules/health_crypto/health_crypto.py", line 263, in get_serial
    'Mother': unicode(certificate.mother.rec_name) or '',
AttributeError: 'NoneType' object has no attribute 'rec_name'


--
[2] Error: 'NoneType' object has no attribute 'rec_name'

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/model/modelsql.py", line 645, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 86, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 86, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 80, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 80, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health_crypto/health_crypto.py", line 291, in check_digest
    serial_doc=self.get_serial(self)
  File "/trytond/modules/health_crypto/health_crypto.py", line 270, in get_serial
    'Father': unicode(certificate.father.rec_name) or '',
AttributeError: 'NoneType' object has no attribute 'rec_name'

Bruno M. Villasanti <bvillasanti>
Wed 28 Jan 2015 08:08:04 PM UTC, original submission:  

Tested in GNU Health Demo Database.
Attached screenshot '20150128 - 14:19:58.png'.

--
Error: 'NoneType' object has no attribute 'rec_name'

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/model/modelsql.py", line 645, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 86, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 86, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 80, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 80, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health_crypto/health_crypto.py", line 284, in check_digest
    serial_doc=self.get_serial(self)
  File "/trytond/modules/health_crypto/health_crypto.py", line 255, in get_serial
    'HP': unicode(certificate.signed_by.rec_name),
AttributeError: 'NoneType' object has no attribute 'rec_name'

Bruno M. Villasanti <bvillasanti>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bvillasanti (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-28 bvillasanti StatusIn Progress Fixed
        Open/ClosedOpen Closed
        ReleaseNone 2.7.0
    2015-01-28 bvillasanti Attached File- Added 20150128 - 14:19:58.png, #32926

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code