Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (67 - 69 of 1173)

Ticket Resolution Summary Owner Reporter
#1024 fixed Activity generator is always GMG service Jonas Haraldsson
Description

Activity.generator is always {"objectType":"service", "displayName":"GNU Mediagoblin"}

Expected: {"objectType":"application", "displayName":"MyAppName"} when using an external client for posting.

#1079 fixed Activity.content is not fully translatable Jessica Tallon
Description

Currently the "object" in the Activity.content is not translatable because it uses Activity.generate_content uses model.object_type which is purposefully forced to English as it's used in the API.

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 Elrond
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 .save use a validator. See http://docs.sqlalchemy.org/en/latest/orm/mapper_config.html#simple-validators

@validates('type')
def validate_type(self, key, value):
    assert value in self.TYPES
    return value
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.