SuffolkLITLab / docassemble-ALWeaver

A tool to help quickly generate draft interviews from an existing document (pdf or DOCX) for the docassemble platform.
https://apps-test.suffolklitlab.org/start/ALWeaver/assembly_line/#/1
MIT License
19 stars 6 forks source link

Assemble the output.mako file ourselves instead of using Docassemble #689

Open nonprofittechy opened 2 years ago

nonprofittechy commented 2 years ago

I hate the extra work this creates for us, but it would let us do it in "pure" python for automated tests and for API-driven interview authoring in bulk

nonprofittechy commented 10 months ago

Basically we need to match the imports we pass to the mako.Template method with what Docassemble passes. We can keep the actual mako templates the same.

We don't need to worry about duplicating what Docassemble does with passing the interview context, as we should try hard to have most required information as an attribute of the interview object.