Custom Query (1168 matches)
Results (67 - 69 of 1168)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1079 | fixed | Activity.content is not fully translatable | ||
Description |
Currently the "object" in the Activity.content is not translatable because it uses This could be fixed by doing: { "image": _("an image"), "comment": _("a comment"), etc... } This would allow it be translatable and get the correct article in English which is currently missing. |
|||
#984 | fixed | ActivityIntermediator bits | ||
Description |
While looking at ActivityIntermediator, I noticed some bits. The .set method could probably be rewritten a bit: # We need to flush so that self.id is populated self.type = key Session.flush() # First set self as activity obj.activity = self.id Session.commit()
And instead of checking values in @validates('type') def validate_type(self, key, value): assert value in self.TYPES return value |
|||
#962 | invalid | ActivityIntermediator.TYPES doesn't allow plugins to use activities | ||
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. |