Django LDP editor
Context
The goal of this repository is to make available to all of our models a editor feature, covering the editor action, diseditor action, and count of both use cases.
The editor Model will be related to an IDURLField targetting users/ so that we will be able to relate the users and their editors in a distributed world.
Would ideally be implemented in a way which makes it compatible with the ActivityPub editor Activity
Add your package in settings.py of the app. Now, you can test if your package is imported propefully by doing a
python manage.py shell then
from djangoldp_myawesomepackage.models import ExampleModel
If, no error, it's working.
Planning
- Make it work:
Being able to post a editor, a diseditor. Being able to retrieve the count of editors and diseditors for a given resource Being able to do that on the federation instance bearing the current user identity
- Make it clean
Test it in the context of the federation Ensure we stay compliant with the activityPub specification
CICD
When you're ready to publish your app :
-
Add the
sib-deployuser as amaintainerto the project (Settings > Members) -
Configure
pipeline strategytoclone(Settings > CI/CD > Pipelines) -
Protect the
masterbranch allowing onlymaintainersto push (Settings > Repository > Protected branches) -
Configure CI/CD variables to authenticate on pypi.org:
| Variable | Value | Protection |
|---|---|---|
GL_TOKEN |
sib-deploy-token |
protected |
PYPI_PASSWORD |
pypi-password |
protected |
PYPI_USERNAME |
startinblox | protected |
- Replace the "do_not_publish" by "master" in the .gitlab-ci.yml
Factories
If you dont need factory, you can remove the mock_example command, the factories files and the extras_require section in setup.cfg
Provide a factory is a good pratice in order to simplify the mocking of data on a server / in a test pipeline.
Contribute !
As the Startin'Blox project is evolving a lot and quickly, we're going to need to update this demo regularly! For any suggestion, you can open an issue or contact the last person who updated it:
Thanks!
Metadata
Release files for djangoldp-editor 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djangoldp_editor-1.1.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djangoldp_editor-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / djangoldp_editor-1.1.0.tar.gz
| Download URL | djangoldp_editor-1.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1ad442b3e128c765b8c3848a9c3838000226d70b1a62b6fa896b89070184ad7
|
|
BLAKE2b-256 checksum How to use checksums |
738eb8d2af92dd5738a05fa1bd8bb5725ddce1728cd7f558d7ded949ade93457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
|
Release files / djangoldp_editor-1.1.0-py3-none-any.whl
| Download URL | djangoldp_editor-1.1.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73357230bb86a0596517aeb07b1258af3b9860bb0536d2fdd397e15d37c28c88
|
|
BLAKE2b-256 checksum How to use checksums |
de5d1b529787f53a5a31e85aa4cac19e4aa9d974d410883b8ef98b140f184c97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
|