Djinn Intranet Contenttypes framework
Project description
djinn_contenttypes
===================
This module provides the content type framework for Djinn. Content
types are the 'things' that a user of the system can create, delete,
edit and view.
Views
-----
Djinn uses generic views for content types. Views behave differently
according to how they are called: when called Ajax style or when
modal=1 is passed as parameter, the template rendered will be 'modal',
otherwise a complete HTML page will be rendered. Successfull add and
edit views will return a 'record' like snippet, assuming that they
were called to return an inline template view of the object.
The following views normally apply:
- Creation:
Creation can either use a temporary object, in case the add screen already
provides some means of relating things to the new object, or simply use the
standard add view, that doesn't create anything untill a commit.
The default templates for creation are:
<app label>/<content type name>_add.html
<app label>/<content type name>_add_modal.html
djinn_contenttypes/base_add.html
djinn_contenttypes/base_add_modal.html
- Update: either update or JSON update
<app label>/<content type name>_edit.html
<app label>/<content type name>_edit_modal.html
djinn_contenttypes/base_edit.html
djinn_contenttypes/base_edit_modal.html
- Delete: delete or JSON delete
- View: base view or modal view
<content type module>/<content type name>_modal_detail.html
<content type module>/<content type name>_detail.html
djinn_contenttypes/base_detail.html
djinn_contenttypes/base_detail_modal.html
1.2.7
=====
* Fixes for relate and sharing widgets
* Dependency on djinn_forms 1.2.3
* Fixes for modal window
1.2.6
=====
* Dependency on djinn_forms 1.2.2
1.2.5
=====
* Return modal on create, to allow chaining
1.2.4
=====
* Fixed missing return on cancel of update view POST
1.2.3
=====
* usergroup choice is now required, but permits empty
* i18n fixes
* Added share view
* PEP8 fixes
* removed some dependencies
1.2.2
====
* Added forms.fields.NoScripCharField
1.2.1
=====
* Fixes for comment model
1.2.0
=====
* Added submit buttons for save and save as draft
* Comment model configurable
* publication can be scheduled
1.1.1
=====
* Translation hotfix
1.1.0
=====
* Well, basically too much to mention...
1.0.2
=====
* Added name override option to url generate, to enable dynamic models
1.0.1
=====
* Added check on group permission, if content is placed in a group
1.0.0
=====
Initial version
===================
This module provides the content type framework for Djinn. Content
types are the 'things' that a user of the system can create, delete,
edit and view.
Views
-----
Djinn uses generic views for content types. Views behave differently
according to how they are called: when called Ajax style or when
modal=1 is passed as parameter, the template rendered will be 'modal',
otherwise a complete HTML page will be rendered. Successfull add and
edit views will return a 'record' like snippet, assuming that they
were called to return an inline template view of the object.
The following views normally apply:
- Creation:
Creation can either use a temporary object, in case the add screen already
provides some means of relating things to the new object, or simply use the
standard add view, that doesn't create anything untill a commit.
The default templates for creation are:
<app label>/<content type name>_add.html
<app label>/<content type name>_add_modal.html
djinn_contenttypes/base_add.html
djinn_contenttypes/base_add_modal.html
- Update: either update or JSON update
<app label>/<content type name>_edit.html
<app label>/<content type name>_edit_modal.html
djinn_contenttypes/base_edit.html
djinn_contenttypes/base_edit_modal.html
- Delete: delete or JSON delete
- View: base view or modal view
<content type module>/<content type name>_modal_detail.html
<content type module>/<content type name>_detail.html
djinn_contenttypes/base_detail.html
djinn_contenttypes/base_detail_modal.html
1.2.7
=====
* Fixes for relate and sharing widgets
* Dependency on djinn_forms 1.2.3
* Fixes for modal window
1.2.6
=====
* Dependency on djinn_forms 1.2.2
1.2.5
=====
* Return modal on create, to allow chaining
1.2.4
=====
* Fixed missing return on cancel of update view POST
1.2.3
=====
* usergroup choice is now required, but permits empty
* i18n fixes
* Added share view
* PEP8 fixes
* removed some dependencies
1.2.2
====
* Added forms.fields.NoScripCharField
1.2.1
=====
* Fixes for comment model
1.2.0
=====
* Added submit buttons for save and save as draft
* Comment model configurable
* publication can be scheduled
1.1.1
=====
* Translation hotfix
1.1.0
=====
* Well, basically too much to mention...
1.0.2
=====
* Added name override option to url generate, to enable dynamic models
1.0.1
=====
* Added check on group permission, if content is placed in a group
1.0.0
=====
Initial version
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
djinn_contenttypes-1.2.7.tar.gz
(26.8 kB
view details)
File details
Details for the file djinn_contenttypes-1.2.7.tar.gz
.
File metadata
- Download URL: djinn_contenttypes-1.2.7.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9198ba8d3498e742e38040e403abcdbab50186df2e4b8c7c24b8208fa7541978 |
|
MD5 | e6f8d28bce940315403c72734504d3b6 |
|
BLAKE2b-256 | 876faaf5b85c8f768e58b243bde54847f12bdd1bda2ffdfd3cf11104425ad06a |