Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Djinn Intranet Contenttypes framework

Project description


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.


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

- Update: either update or JSON update
<app label>/<content type name>_edit.html
<app label>/<content type name>_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

* Well, basically too much to mention...

* Added name override option to url generate, to enable dynamic models

* Added check on group permission, if content is placed in a group

Initial version

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
djinn_contenttypes-1.1.0.tar.gz (20.6 kB) Copy SHA256 hash SHA256 Source None Mar 4, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page