The Jmbo base product introduces a content type and various tools required to build Jmbo products.
Project description
Jmbo
The Jmbo base product introduces a content type and various tools required to build Jmbo products.
Overview
Jmbo is a CMS built on Django enabling you to rapidly build multilingual web and mobi sites with the minimum amount of code and customization.
The Jmbo base product introduces abstract models and concepts that are used in Jmbo products.
Content types
Trivial content type
Jmbo itself has no content type. For our purposes assume a trivial content type called Trivial Content.
Title is self-explanatory.
Subtitle is an optional field that is only visible in the admin interface. If you have two items with the same title (a common case in multilingual sites) then add extra text in the subtitle to distinguish between the items.
Description is an optional field. It is good practice to set it since sites like Facebook read it when content is shared.
See below.
See below.
You should always attempt to set an image since sites look dull without them! All popular formats up to 1MB in size are supported. An aspect ratio of 4:3 is preferred but an attempt is made to convert the uploaded image into a 4:3 format. Applications may override this aspect ratio as they wish.
Crop from and Effect are for advanced use. Crop from is used when the default cropping algorithm is eg. chopping a person’s head off.
See below.
See below.
Image overrides are for advanced use. The image you upload in 6 is converted behind the scenes into potentially many sizes. If the algorithm produces undesirable results you can override each size as required.
Save and publish saves the item and makes it publicly accessible.
Save and add another saves the item. You are redirected to a screen to add a new trivial content item.
Save and continue editing saves the item. You stay on the edit screen.
Save saves the item. You are redirected to a listing of all trivial content items.
Jmbo uses the Django sites framework. This means items can be selectively published to one or more sites. Select the applicable sites, or use the shortcuts to select a group of sites.
Publish on is an optional date on which to publish the item. If you leave it empty you must publish the item manually, eg. by clicking Save and publish.
Retract on is an optional date on which to retract the item. If you leave it empty you must unpublish the item manually, eg. by clicking Save and unpublish.
Publishers is marked for deprecation. The idea was to publish an item to eg. Facebook. Unfortunately those platforms often have unstable API’s, making it impractical.
Jmbo uses categories from django-category. Categorizing an item enables you to display it in a certain context. An example is a listing (as defined by jmbo-foundry) of all items in a category.
The primary category is considered the most important category. Once again it enables you do display the item in a certain context.
Freeform tagging of an item allows more ways of searching for it.
Created date and time is when the item was created. If you leave it empty it is automatically set to the current time.
The owner of the item. The dropdown may change into an autocomplete field if there are many people to choose from.
Enable commenting for this item. Comments will not display when disabled.
Enable anonymous commenting for this item.
Close commenting for this item. Comments will still display, but users won’t be able to add new comments.
Enable liking for this item. Likes will not display when disabled.
Enable anonymous liking for this item.
Close liking for this item. Likes will still display, but users won’t be able to add new likes.
Changelog
1.0.1
as_leaf_class method would break if two models had the same name. Fixed.
1.0
Jmbo is now location aware. This requires a manual upgrade of libraries and existing databases. DO NOT UPGRADE to 1.0 without preparation. If you are on Ubuntu then it is as simple as running the interactive convert_to_geodb_ubuntu.sh script.
0.5.5
modelbase_detail inclusion template now has a block for easier re-use.
Simplified paginator. No more breadcrumbs.
Introduce object_footer template which shows sharing links.
can_comment has an API change. It has always only been used internally and should not cause problems.
README.rst gets friendlier documentation.
0.5.4
Pin Django on 1.4.x range.
0.5.3
Add Save and publish and Save and unpublish buttons to edit form.
0.5.2
Use django.jQuery instead of $ to trigger publish ajax call. $ is not necessarily available.
0.5.1 (2012-08-20)
on_likes_enabled_test and on_can_vote_test signal receivers now only checks ModelBase based objects. Also updated for compatibility with django-likes 0.0.8, which updated its signal’s obj param to conventional instance. django-likes >= 0.0.8 is now required for correct operation.
0.5
Django 1.4 compatible release. Django 1.4 is now required.
0.4
Detail templates can now be customized per model. Create {app_label}/{model}_detail.html.
publish_on and retract_on filters are now applied via management command jmbo_publish. Run it via cron.
Published state is not directly editable through change form anymore. It is now an action.
0.3.4 (2012-06-26)
Natural key support for dumping and loading data.
0.3.3 (2012-06-20)
Use Pillow instead of PIL.
0.3.2
Use slug for lookups in tastypie API.
0.3.1 (2012-06-15)
Add a decorator register_tag that can accept a softcoded list of templates.
0.3 (2012-06-14)
django-tastypie support added
0.2.6 (2012-06-07)
Add image_list_url to Modelbase.
Pin django-setuptest to 0.0.6 because of issue in 0.0.7
0.2.5 (2012-05-11)
Admin category filtering now filters on both categories and primary_category fields.
0.2.4
Remove dependency links in setup.py.
0.2.3 (2012-05-08)
render_object tag now fails with clear TemplateDoesNot exist exception.
0.2.2
Include category filtering in admin.
0.2.1
Find links in setup.py
0.2
Add Opengraph metadata tags to detail view.
Add dependency on django-sites-groups.
Setup South migration chain.
0.1.20
Bring pager HTML and CSS in line with django-pagination.
Add wrapping div to comments UI.
Fix admin interface bug where some fields were duplicated.
Reverse lookup for <content_type>_object_detail now works for model names that may contain spaces, eg. ‘Blog Post’.
Add fallback to modelbase detail view to get_absolute_url.
Add ability to limit size of queryset for generic views.
Afrikaans and French translations.
Make it possible to specify a custom photosize per content type.
Introduce a new optional field ‘subtitle’ for friendlier admin UI.
Add South migrations. Existing installations must be upgraded using ./manage.py migrate jmbo 0001 –fake and then ./manage.py migrate jmbo.
0.1.9 (2011-09-27)
Added primary category field on ModelBase.
Allow for modifier on humanize time diff tag.
Added category pin model and admin override.
0.1.7 (2011-06-15)
Jmbo rename.
0.1.6
Added state admin bulk actions.
0.1.5
Use photologue 2.6.praekelt
0.1.4
Generate slug optimization.
0.1.3
Refactored ModelBase.comment_count to resolve comments for leaf class or modelbase content types.
0.1.2
Generic form issues corrected.
0.1.1
Use django-photologue 2.5.praekelt
0.1.0
Improved generate_slug utils method.
Removed ModelBaseAdminForm.
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
Built Distribution
File details
Details for the file jmbo-1.0.1.tar.gz
.
File metadata
- Download URL: jmbo-1.0.1.tar.gz
- Upload date:
- Size: 915.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943e406a89e74270cbefbafde521ad719713a9ebcf2bc9bab74fbd6d914d9269 |
|
MD5 | 8256d01eeb9f36e6f94d1325390ba973 |
|
BLAKE2b-256 | 72164593b3fe357202ad782d68f87ebfcac2be23a85820421cfbac03fb58d628 |
Provenance
File details
Details for the file jmbo-1.0.1-py2.7.egg
.
File metadata
- Download URL: jmbo-1.0.1-py2.7.egg
- Upload date:
- Size: 642.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a4d543e25d0fb234063afd77277ae5127bdfced82ccfc1f1fd4a0685c75808 |
|
MD5 | b7f411fd59690ba800574cb1d3a9ff96 |
|
BLAKE2b-256 | 5958e2abe328ad0a547e62c8bd25bc81022bb95a32510a7341333216da14acf9 |