forked from enviPath/enviPy
wip
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 6.0.3 on 2026-09-08 08:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bayer', '0003_pescompound_pesstructure_package_data_pool'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='package',
|
||||
name='shareable',
|
||||
field=models.BooleanField(default=True, verbose_name='Shareable'),
|
||||
),
|
||||
]
|
||||
@@ -23,6 +23,7 @@ class Package(EnviPathModel):
|
||||
license = models.ForeignKey(
|
||||
"epdb.License", on_delete=models.SET_NULL, blank=True, null=True, verbose_name="License"
|
||||
)
|
||||
shareable = models.BooleanField(verbose_name="Shareable", default=True)
|
||||
|
||||
class Classification(models.IntegerChoices):
|
||||
INTERNAL = 0, "Internal"
|
||||
|
||||
+2
-2
@@ -119,8 +119,8 @@ def create_pes_node(request, package_uuid, pathway_uuid):
|
||||
except ValueError as e:
|
||||
return error(
|
||||
request,
|
||||
"Could not fetch PES",
|
||||
f"Could not fetch PES data for {pes_link}"
|
||||
"Failed to fetch this PES",
|
||||
"Either the PES-ID is incorrect, or you're missing sufficient permissions to access this (potentially secret) item. In case you're missing permissions you can request the entitlement cs.u.enviPath_secret_data_user_group on go/idnow to gain access."
|
||||
)
|
||||
|
||||
classification = pes_data.get("classificationLevel", "")
|
||||
|
||||
Reference in New Issue
Block a user