ploneintranet.notifications.adapters package

Submodules

ploneintranet.notifications.adapters.message_factory module

class ploneintranet.notifications.adapters.message_factory.Base(context)[source]

Bases: object

A base adapter for creating a notification

get_actors()[source]

Get the creators of the object as plone users

get_object_as_dict()[source]

return a dict representation of the object

predicate = 'GLOBAL_NOTICE'
class ploneintranet.notifications.adapters.message_factory.StatusUpdate(context)[source]

Bases: ploneintranet.notifications.adapters.message_factory.Base

Customize the Message factory adapter for a microblog status update

get_object_as_dict()[source]

return a dict representation of the object

predicate = 'STATUS_UPDATE'

ploneintranet.notifications.adapters.message_handler module

class ploneintranet.notifications.adapters.message_handler.Base(context)[source]

Bases: object

A base handler for notifications

_for_each_user(func)[source]
add(message)[source]
cleanup()[source]
g_add(message)[source]
g_cleanup()[source]
msg_class = 'GLOBAL_NOTICE'

Module contents