Ikhaya Views
inyoka.ikhaya.views
Views for Ikhaya.
- copyright:
2007-2024 by the Inyoka Team, see AUTHORS for more details.
- license:
BSD, see LICENSE for more details.
- class inyoka.ikhaya.views.IkhayaArticleCommentAtomFeed
Atom feed with all comments of an ikhaya article.
- get_object(request, *args, **kwargs)
- items(article)
- link(article)
- title(article)
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- class inyoka.ikhaya.views.IkhayaAtomFeed
Atom feed with all articles of ikhaya.
- _subtitle(_)
Small helper which returns the subtitle content. Modify it in the subclass.
- item_author_link(article)
- item_author_name(article)
- item_categories(article)
- item_comments(article)
- item_description(article)
- item_link(article)
- item_pubdate(article)
- item_title(article)
- item_updateddate(article)
- items(_)
- link(_)
- name = 'ikhaya_feed_article'
- title = 'ubuntuusers.local:8080 Ikhaya'
- class inyoka.ikhaya.views.IkhayaCategoryAtomFeed
Atom feed with all articles of ikhaya category.
- get_object(request, *args, **kwargs)
- items(slug)
- link(slug)
- title(slug)
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- class inyoka.ikhaya.views.IkhayaCommentAtomFeed
Atom feed with all comments of ikhaya.
- _subtitle(_)
Small helper which returns the subtitle content. Modify it in the subclass.
- item_author_link(comment)
- item_author_name(comment)
- item_description(comment)
- item_link(comment)
- item_pubdate(comment)
- item_title(comment)
- item_updateddate(comment)
- items(_)
- link(_)
- name = 'ikhaya_feed_comment'
- title = 'ubuntuusers.local:8080 Ikhaya comments'
- inyoka.ikhaya.views._change_comment_status(request, comment_id, hide, msg)
- inyoka.ikhaya.views._change_report_status(request, report_id, action, msg)
- inyoka.ikhaya.views.archive(request, *args, **kwargs)
Shows the archive index.
- inyoka.ikhaya.views.article_delete(request, year, month, day, slug)
- inyoka.ikhaya.views.article_edit(request, *args, **kwargs)
Display an interface to let the user create or edit an article. If suggestion_id is given, the new ikhaya article is based on a special article suggestion made by a user. After saving it, the suggestion will be deleted automatically.
- inyoka.ikhaya.views.article_subscribe(request, year, month, day, slug)
Subscribe to article’s comments.
- inyoka.ikhaya.views.article_unsubscribe(request, year, month, day, slug)
Unsubscribe from article.
- inyoka.ikhaya.views.comment_edit(request, *args, **kwargs)
- inyoka.ikhaya.views.comment_hide(request, *args, **kwargs)
- inyoka.ikhaya.views.comment_restore(request, *args, **kwargs)
- inyoka.ikhaya.views.context_modifier(request, context)
This function adds two things to the context of all ikhaya pages:
- archive
A list of the latest months with ikhaya articles.
- categories
A list of all ikhaya categories.
- inyoka.ikhaya.views.detail(request, *args, **kwargs)
Shows a single article.
- inyoka.ikhaya.views.event_edit(request, *args, **kwargs)
- inyoka.ikhaya.views.event_suggest(request, *args, **kwargs)
User form which creates to suggest new events for the calendar.
- inyoka.ikhaya.views.events(request, *args, **kwargs)
- inyoka.ikhaya.views.index(request, *args, **kwargs)
Shows a few articles by different criteria
- inyoka.ikhaya.views.report_hide(request, *args, **kwargs)
- inyoka.ikhaya.views.report_new(request, *args, **kwargs)
Report a mistake in an article.
- inyoka.ikhaya.views.report_restore(request, *args, **kwargs)
- inyoka.ikhaya.views.report_solve(request, *args, **kwargs)
- inyoka.ikhaya.views.report_unsolve(request, *args, **kwargs)
- inyoka.ikhaya.views.reportlist(request, *args, **kwargs)
Get a list of all unsolved article reports.
- inyoka.ikhaya.views.reports(request, *args, **kwargs)
Shows a list of suggested improved versions of the article.
- inyoka.ikhaya.views.suggest_assign_to(request, suggestion, username)
- inyoka.ikhaya.views.suggest_delete(request, suggestion)
- inyoka.ikhaya.views.suggest_edit(request, *args, **kwargs)
A Page to suggest a new article.
It just sends an email to the administrators.
- inyoka.ikhaya.views.suggestions(request, *args, **kwargs)
Get a list of all article suggestions
- inyoka.ikhaya.views.suggestions_subscribe(request)
Subscribe to new suggestions.
- inyoka.ikhaya.views.suggestions_unsubscribe(request)
Unsubscribe from new suggestions.