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.3
-----
#. Add slugify to page model
1.0.2
-----
#. Add slugify to model for cases when no slug is provided
1.0.1
-----
#. Ensure all files included in pypi package
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.3
-----
#. Add slugify to page model
1.0.2
-----
#. Add slugify to model for cases when no slug is provided
1.0.1
-----
#. Ensure all files included in pypi package
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.3.tar.gz
.
File metadata
- Download URL: unicore-gitmodels-1.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d1d2c91847145a510311c601ff315ffbcb13e58d2e9e95f255a1e5f919a1c75 |
|
MD5 | 2c0138be1b660157ebafe7fc5e178e87 |
|
BLAKE2b-256 | f5ae6f44c5b977b40b80126df28aa5f58f98fc41a8126ac03314c0ba40234092 |