# HG changeset patch # User Sverre Rabbelier # Date 1254087261 -7200 # Node ID 04689c9414a32b4d6b34022bd092b2dc7faeaf2d # Parent eeee8c8544382c0f085ee84f436403e49023636a# Parent cbfd8e12527adb1c17a862b5cf3e9ee7c934442e I hate how Hg handles unsynched remote changes diff -r cbfd8e12527a -r 04689c9414a3 app/soc/modules/ghop/logic/models/task.py --- a/app/soc/modules/ghop/logic/models/task.py Sun Sep 27 23:31:39 2009 +0200 +++ b/app/soc/modules/ghop/logic/models/task.py Sun Sep 27 23:34:21 2009 +0200 @@ -141,9 +141,9 @@ } entity_properties.update(history_property) - # call the base logic method to store the updated Task entity - return super(Logic, self).updateEntityProperties( - entity, entity_properties, siltent=silent, store=store) + # call the base logic method to store the updated Task entity + return super(Logic, self).updateEntityProperties( + entity, entity_properties, silent=silent, store=store) def updateEntityPropertiesWithCWS(self, entity, entity_properties, comment_properties=None, diff -r cbfd8e12527a -r 04689c9414a3 app/soc/modules/ghop/views/models/task.py --- a/app/soc/modules/ghop/views/models/task.py Sun Sep 27 23:31:39 2009 +0200 +++ b/app/soc/modules/ghop/views/models/task.py Sun Sep 27 23:34:21 2009 +0200 @@ -802,14 +802,10 @@ return helper.responses.errorResponse( error, request, template=params['error_public'], context=context) - if entity.status in ['Claimed', 'NeedsReview', - 'ActionNeeded', 'NeedsWork']: - entity, comment_entity, ws_entity = ( - ghop_task_logic.logic.updateTaskStatus(entity)) - if comment_entity: - comment_entities.append(comment_entity) - if ws_entity: - ws_entities.append(ws_entity) + # because we are not sure if the Task API has called this for us we do it + entity, comment_entity = ghop_task_logic.logic.updateTaskStatus(entity) + if comment_entity: + comment_entities.append(comment_entity) context['entity'] = entity context['entity_key_name'] = entity.key().id_or_name()