Skip to main content

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unicore-gitmodels-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file unicore-gitmodels-1.0.2.tar.gz.

File metadata

File hashes

Hashes for unicore-gitmodels-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0949cfc948da12f33554c987648c4a59252ef2fe37bd9869a6b56652906aab58
MD5 f586ffb451c3935009413fbeae877a4e
BLAKE2b-256 bc38d188c73b6710b67d06fb03331ebe7a85327371b8f6ac040bff09283a65fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page