Skip to content

Commit

Permalink
chore: add permission to test data (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann committed Jan 29, 2024
1 parent 84e8ec0 commit a4d93fc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/excel2xml-module.md
Expand Up @@ -344,6 +344,8 @@ might expect:
| `pandas.NA` | TypeError (*) | False, because N/A is not a usable value |
| "<NA>" | True | False, because this is the string representation of N/A |
| "-" | True | False, because this is a placeholder in an empty text field |


(*) TypeError: boolean value of NA is ambiguous

In contrast, `check_notna(cell)` will return the expected value for all cases in the table!
Expand Down
@@ -1,5 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<knora xmlns="https://dasch.swiss/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://dasch.swiss/schema https://raw.githubusercontent.com/dasch-swiss/dsp-tools/main/src/dsp_tools/resources/schema/data.xsd" shortcode="0700" default-ontology="simcir">

<permissions id="res-default">
<allow group="UnknownUser">RV</allow>
<allow group="KnownUser">V</allow>
<allow group="Creator">M</allow>
<allow group="ProjectAdmin">CR</allow>
</permissions>
<permissions id="res-restricted">
<allow group="KnownUser">V</allow>
<allow group="Creator">CR</allow>
<allow group="ProjectAdmin">CR</allow>
</permissions>
<permissions id="prop-default">
<allow group="UnknownUser">V</allow>
<allow group="KnownUser">V</allow>
<allow group="Creator">D</allow>
<allow group="ProjectAdmin">CR</allow>
</permissions>
<permissions id="prop-restricted">
<allow group="KnownUser">V</allow>
<allow group="Creator">CR</allow>
<allow group="ProjectAdmin">CR</allow>
</permissions>

<resource label="res_A_11" restype=":TestThing" id="res_A_11" permissions="res-default">
<text-prop name=":hasRichtext">
<text permissions="prop-default" encoding="xml">Start text<a class="salsah-link" href="IRI:res_B_11:IRI">res_B_11</a>end text.</text>
Expand Down

0 comments on commit a4d93fc

Please sign in to comment.