ploneintranet.activitystream.browser package¶
Subpackages¶
Submodules¶
ploneintranet.activitystream.browser.activity module¶
ploneintranet.activitystream.browser.interfaces module¶
-
interface
ploneintranet.activitystream.browser.interfaces.
IPloneIntranetActivitystreamLayer
¶ Bases:
zope.interface.Interface
Marker interface to define ZTK browser layer
ploneintranet.activitystream.browser.statusupdate module¶
-
class
ploneintranet.activitystream.browser.statusupdate.
StatusUpdateDeletePanel
(context, request)¶ Bases:
ploneintranet.activitystream.browser.statusupdate.StatusUpdateView
Render the delete panel for posts or comments
-
data_pat_inject
¶
-
description
¶
-
form_action
¶
-
selector_template
¶
-
title
¶
-
-
class
ploneintranet.activitystream.browser.statusupdate.
StatusUpdateEditPanel
(context, request)¶ Bases:
ploneintranet.activitystream.browser.statusupdate.StatusUpdateView
Render the edit panel for posts or comments
-
data_pat_inject
¶
-
form_action
¶
-
selector_template
¶
-
title
¶
-
-
class
ploneintranet.activitystream.browser.statusupdate.
StatusUpdateModify
(context, request)¶ Bases:
ploneintranet.activitystream.browser.statusupdate.StatusUpdateView
A shared view class for editing and deleting statusupdates.
-
handle_action
()¶ Handle edit/delete actions. Security is checked in backend. Takes care to handle any HTTP POST only once, even with a cloned request.
-
-
class
ploneintranet.activitystream.browser.statusupdate.
StatusUpdateView
(context, request)¶ Bases:
Products.Five.browser.BrowserView
This view renders a status update
See templates/post.html for an explanation of the various rendering modes.
On top of that it also powers templates/comment.html
The API could use some cleanup.
-
actions
¶
-
attachment_base_url
¶ This will return the base_url for making attachments
-
attachments
(*args, **kwargs)¶ Get preview images for status update attachments
-
comment_views
(*args, **kwargs)¶ Return the html views of the replies to this comment
-
commentable
¶ Check whether the viewing user has the right to comment by resolving the containing workspace IMicroblogContext (falling back to None=ISiteRoot)
-
content_context
¶
-
content_has_leadimage
¶
-
content_has_previews
()¶
-
content_preview_status_css
()¶
-
content_preview_urls
()¶
-
content_update_type
¶ This property is used to render different previews based on the content itself
-
content_url
()¶
-
context_content_type
¶
-
context_url
¶ Return the context url
-
decorated_text
¶ Use this method to enrich the status update text
- For example we can:
- replace
- with <br />
- add mentions
- add tags
-
file_attachments
¶
-
fresh_reply_limit
¶
-
fullname
¶
-
get_video_poster
(obj)¶ Try to guess a URL that will allow to serve a poster image for a video element
-
get_video_source
(obj)¶ Try to guess a URL that will allow to stream something from a video element
-
has_older_replies
¶ Check if we have oilder replies that we may want to hide
-
image_attachments
¶
-
in_workspace
¶ statusupdate context is the portal, independently whether they are displayed on dashboard or workspace. Also content_context is the workspace, independently where the post is displayed. So we must rely on the request here to find out where the post is displayed, so that we can adjust injection params properly
-
injection_target
¶
-
is_content_downloadable
¶
-
is_content_file_update
¶
-
is_content_image_update
¶
-
is_content_news_update
¶
-
is_content_update
¶
-
item2attachments
(item)¶ Take the attachment storage item and transform it into an attachment
-
label_image_preview
¶
-
newpostbox_placeholder
= u'leave_a_comment'¶
-
omit_initial_status_update
¶
-
portal
¶ Return the portal object
-
portal_url
¶ Return the portal object url
-
post_type
¶ We have two types of post:
- stream (The one added with the post box)
- content_update (The one refering to a content object)
-
replies
¶ Get the replies for this statusupdate
-
switch_target
¶
-
toggle_like
¶ This is used to render the toggle like stuff
-
traverse
¶ Base URL for traversal views
-
use_relative_date
()¶
-