Skip to content

Commit 407867b

Browse files
committed
fix: apply CI pre-commit formatting and README generation
1 parent a47e121 commit 407867b

69 files changed

Lines changed: 1704 additions & 1328 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docker-compose.override.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Local override - use unique image name to avoid collision with openspp-modules-v2
2+
services:
3+
openspp:
4+
image: openspp2-dev
5+
build:
6+
context: .
7+
dockerfile: docker/Dockerfile
8+
target: dev
9+
10+
openspp-dev:
11+
image: openspp2-dev
12+
build:
13+
context: .
14+
dockerfile: docker/Dockerfile
15+
target: dev
16+
17+
jobworker:
18+
image: openspp2-dev
19+
volumes:
20+
- ../odoo-job-worker:/mnt/extra-addons/odoo-job-worker:ro,z
21+
22+
test:
23+
image: openspp2-dev

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ fastapi>=0.110.0
99
geojson
1010
httpx
1111
jwcrypto
12+
jwcrypto>=1.5.6
1213
libhxl
1314
numpy>=1.22.2
1415
openpyxl
1516
parse-accept-language
17+
pyclamd
1618
pydantic
1719
pyjwt
1820
pyjwt>=2.4.0

spp_attachment_av_scan/README.rst

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ Key Capabilities
4545
Key Models
4646
~~~~~~~~~~
4747

48-
+----------------------------+----------------------------------------+
49-
| Model | Description |
50-
+============================+========================================+
51-
| ``spp.av.scanner.backend`` | Configures ClamAV connection |
52-
| | (socket/network) and limits |
53-
+----------------------------+----------------------------------------+
54-
| ``ir.attachment`` | Extended with scan status, threat |
55-
| | name, and quarantine |
56-
+----------------------------+----------------------------------------+
48+
+----------------------------+-----------------------------------------+
49+
| Model | Description |
50+
+============================+=========================================+
51+
| ``spp.av.scanner.backend`` | Configures ClamAV connection |
52+
| | (socket/network) and limits |
53+
+----------------------------+-----------------------------------------+
54+
| ``ir.attachment`` | Extended with scan status, threat name, |
55+
| | and quarantine |
56+
+----------------------------+-----------------------------------------+
5757

5858
Configuration
5959
~~~~~~~~~~~~~
@@ -96,22 +96,18 @@ Tabs
9696
Security
9797
~~~~~~~~
9898

99-
+----------------------+----------------------+----------------------+
100-
| Group | Model | Access |
101-
+======================+======================+======================+
102-
| ``base.group_user`` | ``spp. | Read |
103-
| | av.scanner.backend`` | |
104-
+----------------------+----------------------+----------------------+
105-
| ``base.group_user`` | ``ir.attachment`` | Read scan status |
106-
+----------------------+----------------------+----------------------+
107-
| ` | ``spp. | Full CRUD |
108-
| `spp_attachment_av_s | av.scanner.backend`` | |
109-
| can.group_av_admin`` | | |
110-
+----------------------+----------------------+----------------------+
111-
| ` | ``ir.attachment`` | Manage quarantined |
112-
| `spp_attachment_av_s | | files |
113-
| can.group_av_admin`` | | |
114-
+----------------------+----------------------+----------------------+
99+
+-------------------------------------------+----------------------------+----------------------+
100+
| Group | Model | Access |
101+
+===========================================+============================+======================+
102+
| ``base.group_user`` | ``spp.av.scanner.backend`` | Read |
103+
+-------------------------------------------+----------------------------+----------------------+
104+
| ``base.group_user`` | ``ir.attachment`` | Read scan status |
105+
+-------------------------------------------+----------------------------+----------------------+
106+
| ``spp_attachment_av_scan.group_av_admin`` | ``spp.av.scanner.backend`` | Full CRUD |
107+
+-------------------------------------------+----------------------------+----------------------+
108+
| ``spp_attachment_av_scan.group_av_admin`` | ``ir.attachment`` | Manage quarantined |
109+
| | | files |
110+
+-------------------------------------------+----------------------------+----------------------+
115111

116112
Extension Points
117113
~~~~~~~~~~~~~~~~

spp_attachment_av_scan/static/description/index.html

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ <h1>Key Models</h1>
408408
(socket/network) and limits</td>
409409
</tr>
410410
<tr><td><tt class="docutils literal">ir.attachment</tt></td>
411-
<td>Extended with scan status, threat
412-
name, and quarantine</td>
411+
<td>Extended with scan status, threat name,
412+
and quarantine</td>
413413
</tr>
414414
</tbody>
415415
</table>
@@ -458,9 +458,9 @@ <h1>Tabs</h1>
458458
<h1>Security</h1>
459459
<table border="1" class="docutils">
460460
<colgroup>
461-
<col width="33%" />
462-
<col width="33%" />
463-
<col width="33%" />
461+
<col width="46%" />
462+
<col width="30%" />
463+
<col width="24%" />
464464
</colgroup>
465465
<thead valign="bottom">
466466
<tr><th class="head">Group</th>
@@ -470,24 +470,18 @@ <h1>Security</h1>
470470
</thead>
471471
<tbody valign="top">
472472
<tr><td><tt class="docutils literal">base.group_user</tt></td>
473-
<td><tt class="docutils literal">spp.
474-
av.scanner.backend</tt></td>
473+
<td><tt class="docutils literal">spp.av.scanner.backend</tt></td>
475474
<td>Read</td>
476475
</tr>
477476
<tr><td><tt class="docutils literal">base.group_user</tt></td>
478477
<td><tt class="docutils literal">ir.attachment</tt></td>
479478
<td>Read scan status</td>
480479
</tr>
481-
<tr><td>`
482-
<cite>spp_attachment_av_s
483-
can.group_av_admin`</cite></td>
484-
<td><tt class="docutils literal">spp.
485-
av.scanner.backend</tt></td>
480+
<tr><td><tt class="docutils literal">spp_attachment_av_scan.group_av_admin</tt></td>
481+
<td><tt class="docutils literal">spp.av.scanner.backend</tt></td>
486482
<td>Full CRUD</td>
487483
</tr>
488-
<tr><td>`
489-
<cite>spp_attachment_av_s
490-
can.group_av_admin`</cite></td>
484+
<tr><td><tt class="docutils literal">spp_attachment_av_scan.group_av_admin</tt></td>
491485
<td><tt class="docutils literal">ir.attachment</tt></td>
492486
<td>Manage quarantined
493487
files</td>

spp_disability_registry/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"category": "OpenSPP",
55
"summary": "Disability assessment and registry management for social protection",
66
"author": "OpenSPP.org",
7-
"website": "https://github.com/OpenSPP/openspp-modules",
7+
"website": "https://github.com/OpenSPP/OpenSPP2",
88
"license": "LGPL-3",
99
"development_status": "Beta",
1010
"maintainers": ["jeremi", "gonzalesedwin1123", "emjay0921"],
Lines changed: 53 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,63 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<odoo noupdate="1">
3-
<!--
3+
<!--
44
Concept Groups for Disability Registry
55
Used by CEL functions for categorical matching
66
-->
77

8-
<!-- Severe Disability Group (for program eligibility) -->
9-
<record id="group_severe_disability" model="spp.vocabulary.concept.group">
10-
<field name="name">severe_disability</field>
11-
<field name="label">Severe Disability</field>
12-
<field name="cel_function">is_severe_disability</field>
13-
<field name="target_field">disability_severity_id</field>
14-
<field name="description">Severity levels indicating severe or profound disability. Used for enhanced benefit eligibility.</field>
15-
<field name="code_ids" eval="[Command.set([ref('code_severity_severe'), ref('code_severity_profound')])]" />
16-
</record>
8+
<!-- Severe Disability Group (for program eligibility) -->
9+
<record id="group_severe_disability" model="spp.vocabulary.concept.group">
10+
<field name="name">severe_disability</field>
11+
<field name="label">Severe Disability</field>
12+
<field name="cel_function">is_severe_disability</field>
13+
<field name="target_field">disability_severity_id</field>
14+
<field
15+
name="description"
16+
>Severity levels indicating severe or profound disability. Used for enhanced benefit eligibility.</field>
17+
<field
18+
name="code_ids"
19+
eval="[Command.set([ref('code_severity_severe'), ref('code_severity_profound')])]"
20+
/>
21+
</record>
1722

18-
<!-- Any Certified Disability Group -->
19-
<record id="group_certified_disability" model="spp.vocabulary.concept.group">
20-
<field name="name">certified_disability</field>
21-
<field name="label">Certified Disability</field>
22-
<field name="cel_function">has_certified_disability</field>
23-
<field name="target_field">disability_severity_id</field>
24-
<field name="description">Any severity level indicating certified disability status.</field>
25-
<field name="code_ids" eval="[Command.set([ref('code_severity_mild'), ref('code_severity_moderate'), ref('code_severity_severe'), ref('code_severity_profound')])]" />
26-
</record>
23+
<!-- Any Certified Disability Group -->
24+
<record id="group_certified_disability" model="spp.vocabulary.concept.group">
25+
<field name="name">certified_disability</field>
26+
<field name="label">Certified Disability</field>
27+
<field name="cel_function">has_certified_disability</field>
28+
<field name="target_field">disability_severity_id</field>
29+
<field
30+
name="description"
31+
>Any severity level indicating certified disability status.</field>
32+
<field
33+
name="code_ids"
34+
eval="[Command.set([ref('code_severity_mild'), ref('code_severity_moderate'), ref('code_severity_severe'), ref('code_severity_profound')])]"
35+
/>
36+
</record>
2737

28-
<!-- Physical Impairment Group -->
29-
<record id="group_physical_impairment" model="spp.vocabulary.concept.group">
30-
<field name="name">physical_impairment</field>
31-
<field name="label">Physical Impairment</field>
32-
<field name="cel_function">has_physical_impairment</field>
33-
<field name="description">Impairment types related to physical/mobility limitations.</field>
34-
<field name="code_ids" eval="[Command.set([ref('code_disability_physical'), ref('code_disability_mobility'), ref('code_disability_upper_limb')])]" />
35-
</record>
38+
<!-- Physical Impairment Group -->
39+
<record id="group_physical_impairment" model="spp.vocabulary.concept.group">
40+
<field name="name">physical_impairment</field>
41+
<field name="label">Physical Impairment</field>
42+
<field name="cel_function">has_physical_impairment</field>
43+
<field
44+
name="description"
45+
>Impairment types related to physical/mobility limitations.</field>
46+
<field
47+
name="code_ids"
48+
eval="[Command.set([ref('code_disability_physical'), ref('code_disability_mobility'), ref('code_disability_upper_limb')])]"
49+
/>
50+
</record>
3651

37-
<!-- Sensory Impairment Group -->
38-
<record id="group_sensory_impairment" model="spp.vocabulary.concept.group">
39-
<field name="name">sensory_impairment</field>
40-
<field name="label">Sensory Impairment</field>
41-
<field name="cel_function">has_sensory_impairment</field>
42-
<field name="description">Impairment types related to vision or hearing.</field>
43-
<field name="code_ids" eval="[Command.set([ref('code_disability_sensory'), ref('code_disability_visual'), ref('code_disability_hearing'), ref('code_disability_deafblind')])]" />
44-
</record>
52+
<!-- Sensory Impairment Group -->
53+
<record id="group_sensory_impairment" model="spp.vocabulary.concept.group">
54+
<field name="name">sensory_impairment</field>
55+
<field name="label">Sensory Impairment</field>
56+
<field name="cel_function">has_sensory_impairment</field>
57+
<field name="description">Impairment types related to vision or hearing.</field>
58+
<field
59+
name="code_ids"
60+
eval="[Command.set([ref('code_disability_sensory'), ref('code_disability_visual'), ref('code_disability_hearing'), ref('code_disability_deafblind')])]"
61+
/>
62+
</record>
4563
</odoo>

0 commit comments

Comments
 (0)