Definition of models used for python-gitmodel
Project description
Unicore Gitmodels
=================
Definition of models used for python-gitmodel
Installation
------------
::
$ pip install unicore-gitmodels
Usage
-----
::
# models.py
from unicore_gitmodels.models import GitPageModel, GitCategoryModel
ws = Workspace('/path/to/repo/.git')
GitPage = ws.register_model(GitPageModel)
GitCategory = ws.register_model(GitCategoryModel)
::
# views.py
page = GitPage(title='a title', slug='a-title', content='some sample content')
page.save(True, message="sample git commit")
Authors
=======
Praekelt Foundation
-------------------
* Milton Madanda
Changelog
=========
1.0.0
-----
#. Initial version from unicore-cms/unicore-cms-django
=================
Definition of models used for python-gitmodel
Installation
------------
::
$ pip install unicore-gitmodels
Usage
-----
::
# models.py
from unicore_gitmodels.models import GitPageModel, GitCategoryModel
ws = Workspace('/path/to/repo/.git')
GitPage = ws.register_model(GitPageModel)
GitCategory = ws.register_model(GitCategoryModel)
::
# views.py
page = GitPage(title='a title', slug='a-title', content='some sample content')
page.save(True, message="sample git commit")
Authors
=======
Praekelt Foundation
-------------------
* Milton Madanda
Changelog
=========
1.0.0
-----
#. Initial version from unicore-cms/unicore-cms-django
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file unicore-gitmodels-1.0.0.tar.gz
.
File metadata
- Download URL: unicore-gitmodels-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5a11d5f9b863b24ca815ef179716c3744c171f87caa970631962eed17fd6e7 |
|
MD5 | b57518809fc3674f49c362f593dabf58 |
|
BLAKE2b-256 | 432797a42feee982e3740b06b5e2cf39d8bedff909c4a6bb82313eccf580eac0 |