inveniosoftware / invenio-circulation

Library circulation module for Invenio.
https://invenio-circulation.readthedocs.io
MIT License
0 stars 18 forks source link

undefined name 'self' #58

Closed rerowep closed 5 years ago

rerowep commented 6 years ago

https://github.com/inveniosoftware/invenio-circulation/blob/02e3a67a3bf491c0a180dae7a52b86d8cd37dc57/invenio_circulation/transitions/transitions.py#L49

Should it be loan instead?

ntarocco commented 6 years ago

self.dest is correct, it is the name of the destination state (next state) performed by the transition. It should not be undefined. @rerowep what do you mean exactly with undefined? Did you have an error?

zzacharo commented 5 years ago

This issue is outdated as it has already been fixed here https://github.com/inveniosoftware/invenio-circulation/blob/master/invenio_circulation/transitions/base.py#L104