GBLS Module
This package is the beginning of a collection of standard includes for Greater Boston Legal Services.
It provides basic-questions-gbls.yml and legal_server.py, which
creates some standard objects and fills in their variables with data from
Legal Server, when launched from Legal Server.
Attributes that are filled in include name, address, email, and phone number, using the standard Individual attribute names.
To use (and add the objects client, advocate, and adverse_parties)
include docassemble.gbls:basic-questions-gbls.yml
E.g., when you include docassemble.gbls:basic-questions-gbls.yml, you will have
the following attributes available to you:
- client
- client.full_name()
- client.name.first / client.name.middle / client.name.last / client.name.suffix
- client.address.address, client.address.zip, etc / client.address_block()
- client.phone_number
- client.mobile_number
- client.email
- client.birth_date
Name fields and email will also be available for advocate. adverse_parties will
be a DAList of Persons, with adverse_party[i].name.text and adverse_party[i].full_name()
available. Address of adverse parties is not parsed.
Integrating with Legal Server
After you install this package on your Docassemble Server, create a new instruction block on the case page with the contents below.
Replace both instances of MYDOCASSEMBLESERVER with the name of your Docassemble server (e.g., docs.legalaid.org)
and replace the text MYAPIKEY with an API key that you generate on your Docassemble
profile. Get the API key by clicking on your email address, select Profile, and then
Other Settings | API key.
You will see a new block on the page with the same interviews that you see when you visit /list on your Docassemble server.
<input type="hidden" id="da_api_url" value="https://MYDOCASSEMBLESERVER/api/list?key="/>
<input type="hidden" id="da_api_key" value="MYAPIKEY" />
<script type="text/javascript" src="https://MYDOCASSEMBLESERVER/packagestatic/docassemble.gbls/docassemble-ls.js">
</script>
<div class="book book_large" id="docassemble_container">
<div class="bookTabRow">
<ul class="tab_start_here htabs">
<li class="bookTabItem dynamicBookTabItem selected_book_tab">
<a class="select">Docassemble Interviews</a>
</li>
</ul>
</div>
<div class="bookPage">
<div class="dynamicBookContents tabs">
<div style="border: 0px; padding: 0px; margin: 0px;"><div class="form_container"><div class="listview_outer">
<div id="interviews" class="datatable">
</div>
</div></div></div>
</div>
</div>
</div>
Sending fields to Docassemble without displaying in Legal Server
You can create a whole tab block of fields that won't display in Legal Server but are still available to Docassemble, by creating an instruction with the contents:
<div id="docassemble-fields"></div>
Somewhere in the tab block that you want to hide.
Listviews
As of version .30, this module supports Legal Server Listviews. Please check the ListView option "Show list title" in order to get labeled data into Docassemble. Every listview in the form section needs to be labeled for the module to be able to guess which label corresponds to which list view.
Filtering
By default, interviews will be filtered to match the metadata tag equalling the program name. Any interview tagged "everyone" will also be displayed.
Metadata
Release files for docassemble.gbls 0.0.58
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docassemble.gbls-0.0.58.tar.gz | 14.8 kB | Without provenance | Details for docassemble.gbls-0.0.58.tar.gz |
Release files / docassemble.gbls-0.0.58.tar.gz
| Download URL | docassemble.gbls-0.0.58.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
259c8932c357e68eaed71555f7d149b4453d2164c9a6f9930ae6ed0ef28578b5
|
|
BLAKE2b-256 checksum How to use checksums |
4b12ed8dd7cf83d5342edab98dcc8c8088155bda16678fc31bf93db9bcedf478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
|
Security for docassemble.gbls 0.0.58
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.