Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

Importing from TIM

>>> import lino
>>> lino.startup('lino_book.projects.cosi2.settings.demo')
>>> from lino.api.doctest import *
>>> from django.db.models import Q
>>> from lino_xl.lib.tim2lino.utils import TimLoader
>>> tim = TimLoader('', 'en')
>>> tim.dc2lino("D")
<accounting.DC.debit:D>
>>> tim.dc2lino("C")
<accounting.DC.credit:C>
>>> tim.dc2lino("A")
<accounting.DC.debit:D>
>>> tim.dc2lino("E")
<accounting.DC.credit:C>