docassemble.AssemblyLine 3.4.1__tar.gz → 3.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docassemble_assemblyline-3.4.1/docassemble.AssemblyLine.egg-info → docassemble_assemblyline-3.5.1}/PKG-INFO +1 -1
- docassemble_assemblyline-3.5.1/docassemble/AssemblyLine/__init__.py +1 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/al_general.py +10 -0
- docassemble_assemblyline-3.5.1/docassemble/AssemblyLine/data/sources/translation_es.xlsx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/test_al_general.py +17 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1/docassemble.AssemblyLine.egg-info}/PKG-INFO +1 -1
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/setup.py +1 -1
- docassemble_assemblyline-3.4.1/docassemble/AssemblyLine/__init__.py +0 -1
- docassemble_assemblyline-3.4.1/docassemble/AssemblyLine/data/sources/translation_es.xlsx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/LICENSE +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/MANIFEST.in +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/README.md +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/al_courts.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/al_document.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/custom_jinja_filters.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_code.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_document.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_language.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_package.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_package_unstyled.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_question_test.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_reminders.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_saved_sessions.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_saved_sessions_store.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_settings.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_terms_of_use.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/al_visual.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/assembly_line.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/assembly_line_unstyled.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/demo_search_sessions.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/feedback.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/interview_list.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/ql_baseline.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/ql_catchall.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/ql_namechange.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/reserved_words.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_al_table_document.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_aladdendum.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_alcourts.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_aldocument.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_aldocument_background_assembly.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_alexhibit.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_alexhibit_maxsize.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_bundle_parity.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_familiar_disambiguation.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_question_library.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/questions/test_signature.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/README.md +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/es-words.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/languages.yml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_aldocument.feature +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_alexhibit_docx_1.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_alexhibit_jpg_1.jpg +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_alexhibit_pdf_1.pdf +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_alexhibit_png_1.png +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/test_question_library.feature +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/translation_ht.xlsx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/sources/translation_pt.xlsx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/README.md +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/al_audio.css +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/al_audio.js +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/aldocument.css +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/aldocument.js +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/interview_list.css +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/limit_upload_size.js +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/lt1-pullout-10-getting-organized.pdf +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/ma_logo.png +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/placeholder.png +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/seal.jpg +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/static/styles.css +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/README.md +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/al_basic_addendum.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/exhibit_cover_sheet.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/exhibit_table_of_contents.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/general_cover_sheet.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/sample_word_template.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/test_aldocument_docx_1.docx +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/data/templates/test_aldocument_pdf_1.pdf +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/language.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/project_maintenance.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/py.typed +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/requirements.txt +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/sessions.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/sign.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/test_al_document.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/test_language.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/__init__.py +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble.AssemblyLine.egg-info/SOURCES.txt +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble.AssemblyLine.egg-info/dependency_links.txt +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble.AssemblyLine.egg-info/not-zip-safe +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble.AssemblyLine.egg-info/requires.txt +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble.AssemblyLine.egg-info/top_level.txt +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/pyproject.toml +0 -0
- {docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.5.1'
|
|
@@ -116,6 +116,7 @@ class ALAddress(Address):
|
|
|
116
116
|
allow_no_address: bool = False,
|
|
117
117
|
ask_if_impounded: Optional[bool] = False,
|
|
118
118
|
maxlengths: Optional[Dict[str, int]] = None,
|
|
119
|
+
required: Optional[Dict[str, bool]] = None,
|
|
119
120
|
) -> List[Dict[str, Any]]:
|
|
120
121
|
"""
|
|
121
122
|
Return a YAML structure representing the list of fields for the object's address.
|
|
@@ -136,6 +137,7 @@ class ALAddress(Address):
|
|
|
136
137
|
allow_no_address (bool): Allow users to specify they don't have an address. Defaults to False.
|
|
137
138
|
ask_if_impounded (Optional[bool]): Whether to ask if the address is impounded. Defaults to False.
|
|
138
139
|
maxlengths (Optional[Dict[str, int]]): A dictionary of field names and their maximum lengths. Defaults to None.
|
|
140
|
+
required (Dict[str, bool], optional): A dictionary of field names and if they should be required. Default is None (everything but unit and zip is required)
|
|
139
141
|
|
|
140
142
|
Returns:
|
|
141
143
|
List[Dict[str, Any]]: A list of dictionaries representing address fields.
|
|
@@ -277,6 +279,11 @@ class ALAddress(Address):
|
|
|
277
279
|
if field["field"] in maxlengths:
|
|
278
280
|
field["maxlength"] = maxlengths[field["field"]]
|
|
279
281
|
|
|
282
|
+
if required:
|
|
283
|
+
for field in fields:
|
|
284
|
+
if field["field"] in required:
|
|
285
|
+
field["required"] = required[field["field"]]
|
|
286
|
+
|
|
280
287
|
return fields
|
|
281
288
|
|
|
282
289
|
def formatted_unit(
|
|
@@ -1241,6 +1248,7 @@ class ALIndividual(Individual):
|
|
|
1241
1248
|
allow_no_address: bool = False,
|
|
1242
1249
|
ask_if_impounded: bool = False,
|
|
1243
1250
|
maxlengths: Optional[Dict[str, int]] = None,
|
|
1251
|
+
required: Optional[Dict[str, bool]] = None,
|
|
1244
1252
|
) -> List[Dict[str, str]]:
|
|
1245
1253
|
"""
|
|
1246
1254
|
Generate field prompts for capturing an address.
|
|
@@ -1254,6 +1262,7 @@ class ALIndividual(Individual):
|
|
|
1254
1262
|
allow_no_address (bool): Whether to permit entries with no address. Defaults to False.
|
|
1255
1263
|
ask_if_impounded (bool): Whether to ask if the address is impounded. Defaults to False.
|
|
1256
1264
|
maxlengths (Dict[str, int], optional): A dictionary of field names and their maximum lengths. Default is None.
|
|
1265
|
+
required (Dict[str, bool], optional): A dictionary of field names and if they should be required. Default is None (everything but unit and zip is required)
|
|
1257
1266
|
|
|
1258
1267
|
Returns:
|
|
1259
1268
|
List[Dict[str, str]]: A list of dictionaries with field prompts for addresses.
|
|
@@ -1269,6 +1278,7 @@ class ALIndividual(Individual):
|
|
|
1269
1278
|
allow_no_address=allow_no_address,
|
|
1270
1279
|
ask_if_impounded=ask_if_impounded,
|
|
1271
1280
|
maxlengths=maxlengths,
|
|
1281
|
+
required=required,
|
|
1272
1282
|
)
|
|
1273
1283
|
|
|
1274
1284
|
def gender_fields(
|
|
Binary file
|
|
@@ -12,6 +12,23 @@ class test_aladdress(unittest.TestCase):
|
|
|
12
12
|
addr = ALAddress(address="", city="")
|
|
13
13
|
self.assertEqual(addr.on_one_line(), "")
|
|
14
14
|
|
|
15
|
+
def test_address_required(self):
|
|
16
|
+
addr = ALAddress(
|
|
17
|
+
address_label="address",
|
|
18
|
+
unit_label="unit",
|
|
19
|
+
city_label="city",
|
|
20
|
+
state_label="state",
|
|
21
|
+
zip_label="zip",
|
|
22
|
+
)
|
|
23
|
+
fields = addr.address_fields(required={"zip": True})
|
|
24
|
+
for field in fields:
|
|
25
|
+
if field["field"] == "zip":
|
|
26
|
+
self.assertTrue(field["required"])
|
|
27
|
+
fields = addr.address_fields()
|
|
28
|
+
for field in fields:
|
|
29
|
+
if field["field"] == "zip":
|
|
30
|
+
self.assertFalse(field["required"])
|
|
31
|
+
|
|
15
32
|
def test_no_unit_floor_room(self):
|
|
16
33
|
self.assertFalse(hasattr(self.addr, "unit"))
|
|
17
34
|
self.assertFalse(hasattr(self.addr, "floor"))
|
|
@@ -44,7 +44,7 @@ def find_package_data(where='.', package='', exclude=standard_exclude, exclude_d
|
|
|
44
44
|
return out
|
|
45
45
|
|
|
46
46
|
setup(name='docassemble.AssemblyLine',
|
|
47
|
-
version='3.
|
|
47
|
+
version='3.5.1',
|
|
48
48
|
description=(''),
|
|
49
49
|
long_description='# Suffolk LIT Lab Document Assembly Line\r\n\r\n[](https://badge.fury.io/py/docassemble-AssemblyLine)\r\n\r\n<img src="https://user-images.githubusercontent.com/7645641/142245862-c2eb02ab-3090-4e97-9653-bb700bf4c54d.png" alt="drawing" width="300" alt="work together" style="align: center;"/>\r\n\r\nThe Assembly Line Project is a collection of volunteers, students, and institutions who joined together\r\nduring the COVID-19 pandemic to help increase access to the court system. Our vision is mobile-friendly,\r\neasy to use **guided** online forms that help empower litigants to access the court remotely.\r\n\r\nOur signature project is [CourtFormsOnline.org](https://courtformsonline.org).\r\n\r\nWe designed a step-by-step, assembly line style process for automating court forms on top of Docassemble\r\nand built several tools along the way that **you** can use in your home jurisdiction.\r\n\r\nThis package contains **runtime code** and **pre-written questions** to support authoring robust, \r\nconsistent, and attractive Docassemble interviews that help complete court forms.\r\n\r\nRead more on our [documentation page](https://suffolklitlab.org/docassemble-AssemblyLine-documentation/).\r\n\r\n\r\n# Related repositories\r\n\r\n* https://github.com/SuffolkLitLab/docassemble-ALWeaver\r\n* https://github.com/SuffolkLitLab/docassemble-ALMassachusetts\r\n* https://github.com/SuffolkLitLab/docassemble-MassAccess\r\n* https://github.com/SuffolkLitLab/docassemble-ALThemeTemplate\r\n* https://github.com/SuffolkLitLab/EfileProxyServer\r\n\r\n# Documentation\r\n\r\nhttps://suffolklitlab.org/docassemble-AssemblyLine-documentation/\r\n\r\n# Installation\r\n\r\n## Menu-driven installation\r\n\r\nThe recommended installation method is with the [guided installation script](https://suffolklitlab.org/docassemble-AssemblyLine-documentation/docs/installation).\r\n\r\n## Manual installation\r\n\r\nNormally you do not need to manually install the Assembly Line. Use the [installation script](https://suffolklitlab.org/docassemble-AssemblyLine-documentation/docs/installation)\r\nif you can. The instructions below are for your optional reference.\r\n\r\nThis package depends on the following configuration changes on your Docassemble server:\r\n\r\n* Ensure that [font-awesome](https://docassemble.org/docs/config.html#default%20icons) is enabled (this may be on by default:\r\n```yaml\r\ndefault icons: font awesome\r\n```\r\n* Add a [Google API key](https://docassemble.org/docs/config.html#google) that has access to:\r\n * Google Places API\r\n * Google Geocoding API\r\n* Add a [VoiceRSS API key](https://docassemble.org/docs/config.html#voicerss)\r\n* Add a [Twilio API key](https://docassemble.org/docs/config.html#twilio) for SMS support\r\n* Add an email account: [Mailgun](https://docassemble.org/docs/config.html#mailgun%20api) or [SendGrid](https://docassemble.org/docs/config.html#sendgrid%20api) recommended for email support\r\n* To show package update time and to enable the feedback form, add a GitHub Private Access token to your config.yml file, like this:\r\n```yaml\r\n# Needs access to create new issues on repositories\r\ngithub issues:\r\n username: "suffolklitlab-issues"\r\n token: "12345"\r\n# Does not need any special access to public repositories \r\ngithub readonly:\r\n username: "suffolklitlab-issues"\r\n password: "45678"\r\n type: "basic"\r\n```\r\n* If you are also using the [Assembly Line Weaver](https://github.com/SuffolkLITLab/docassemble-assemblylinewizard), you may want to set up a [Docassemble API key](https://docassemble.org/docs/api.html#manage_api) in your config.yml file to allow you to install packages automatically, like this:\r\n```yaml\r\ninstall packages api key: 12345\r\n```\r\n\r\n# Migration\r\n\r\nSee [discussion here](https://github.com/SuffolkLITLab/docassemble-AssemblyLine/issues/69)\r\n\r\n\r\n# ALDocument class\r\n\r\n## Purpose\r\n\r\nThe ALDocument class is a small utility library that makes it simpler to use the following features in an interview:\r\n\r\n* Conditional assembly of multiple, optional documents that are triggered in different ways in your interview\r\n* An addendum for PDF files that makes it simple to deal with overflow text\r\n* A customizable download screen that lists the documents in a neat table\r\n* A customizable "send" button that allows the user to email the final forms to a location of their choice\r\n\r\nHere is a small snippet that you can copy and modify that shows how to use the most important features of the ALDocument class.\r\n\r\n```\r\n---\r\nobjects:\r\n - CRA_Motion_to_Dismiss_attachment: ALDocument.using(filename="CRA_Motion_to_Dismiss", title="Motion to Dismiss CRA", enabled=True, has_addendum=True, default_overflow_message="[See addendum]") \r\n---\r\nobjects:\r\n - al_user_bundle: ALDocumentBundle.using(elements=[CRA_Motion_to_Dismiss_attachment], title="Forms to download and deliver to court", filename="motion_to_dismiss_CRA.pdf")\r\n - al_court_bundle: ALDocumentBundle.using(elements=[CRA_Motion_to_Dismiss_attachment], title="Forms to download and deliver to court", filename="motion_to_dismiss_CRA.pdf")\r\n---\r\ngeneric object: ALDocument\r\nattachment:\r\n variable name: x.addendum\r\n docx template file: docx_addendum.docx\r\n---\r\ncode: |\r\n CRA_Motion_to_Dismiss_attachment.overflow_fields[\'reasons_for_request\'].overflow_trigger = 640\r\n CRA_Motion_to_Dismiss_attachment.overflow_fields[\'reasons_for_request\'].label = "Reasons for request"\r\n CRA_Motion_to_Dismiss_attachment.overflow_fields.gathered = True\r\n \r\n---\r\nattachment:\r\n variable name: CRA_Motion_to_Dismiss_attachment[i]\r\n name: CRA Motion to Dismiss\r\n filename: CRA_Motion_to_Dismiss\r\n skip undefined: True\r\n pdf template file: CRA_Motion_to_Dismiss.pdf\r\n fields: \r\n - "court_county": ${ trial_court.address.county }\r\n - "docket_number": ${ docket_number }\r\n - "user_signature": ${ users[0].signature_if_final(i) }\r\n - "signature_date": ${ signature_date }\r\n```\r\n\r\nIt is very common to have a *contingent* document in ALDocument. If your document is contingent, remove the `enabled=True` from the object declaration, and use\r\nsome other method to "turn on" the attachment.\r\n\r\nE.g.,\r\n\r\n```\r\ncode: |\r\n CRA_Motion_to_Dismiss_attachment.enabled = condition1 and condition2\r\n```\r\n\r\n# Changelog\r\n\r\nSee [CHANGELOG.MD](https://github.com/SuffolkLITLab/docassemble-AssemblyLine/blob/main/CHANGELOG.md)\r\n',
|
|
50
50
|
long_description_content_type='text/markdown',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.4.1'
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{docassemble_assemblyline-3.4.1 → docassemble_assemblyline-3.5.1}/docassemble/AssemblyLine/sign.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|