Opened 10 years ago

Closed 9 years ago

#962 closed enhancement (invalid)

ActivityIntermediator.TYPES doesn't allow plugins to use activities

Reported by: Jessica Tallon Owned by:
Priority: major Milestone:
Component: programming Keywords: federation, activities, plugins
Cc: Parent Tickets:

Description

With #905 we now have the activities that can be created when the user does something on GMG. However there is a fixed TYPES dictionary which doesn't allow plugins to add their models as objects which take part in activites.

The way this could be changed is to have a ActivityTypes table which is this map. The current TYPES can be populated by the FOUNDATIONS system and plugins can add themsleves to this table.

Change History (1)

comment:1 by Jessica Tallon, 9 years ago

Resolution: invalid
Status: newclosed

We no longer use ActivityIntermediator we now use a generic ForeignKey system where we have something similiar to Django's "Contenttype"s system, ours having a GenericModelReference. This can be used with plugins provided the plugin has a integer primary key called "id".

Note: See TracTickets for help on using tickets.