editAnnotation: reject (rather than ignoring) attempts to change layer #2818

Closed
opened 2015-07-14 06:25:28 +00:00 by wjt · 5 comments

I wanted to move some annotations to a different layer recently. I sort of expected it wasn't supported; but I had hoped that editAnnotation would explicitly fail. Patches to follow.

I wanted to move some annotations to a different layer recently. I sort of expected it wasn't supported; but I had hoped that `editAnnotation` would explicitly fail. Patches to follow.
wjt added the
backend
label 2015-07-14 06:25:28 +00:00
wjt added this to the 14.04 milestone 2015-07-14 06:25:28 +00:00
j was assigned by wjt 2015-07-14 06:25:28 +00:00
wjt added the
normal
enhancement
labels 2015-07-14 06:25:28 +00:00
Author

Attachment 0001-annotations-fix-unkown-typo.patch (1490 bytes) added

**Attachment** 0001-annotations-fix-unkown-typo.patch (1490 bytes) added
Author

Attachment 0002-editAnnotation-explicitly-refuse-to-change-layer.patch (1046 bytes) added

**Attachment** 0002-editAnnotation-explicitly-refuse-to-change-layer.patch (1046 bytes) added
Author

In [pandora,5004]changeset:"pandora,5004":

#!CommitTicketReference repository="" revision="pandora,5004"
editAnnotation: explicitly refuse to change layer, fixes #2818
In [pandora,5004]changeset:"pandora,5004": ``` #!CommitTicketReference repository="" revision="pandora,5004" editAnnotation: explicitly refuse to change layer, fixes #2818 ```
wjt added the
fixed
label 2015-07-14 08:48:36 +00:00
wjt closed this issue 2015-07-14 08:48:36 +00:00
Owner

in case you want to rename a layer (move all existing annots from one layer to another),
you can do that in ./manage.py shell:

import annotation.models
annotation.models.rename_layer(old, new)
in case you want to rename a layer (move all existing annots from one layer to another), you can do that in ./manage.py shell: ``` import annotation.models annotation.models.rename_layer(old, new) ```
Author

Replying to [j]comment:2:

in case you want to rename a layer (move all existing annots from one layer to another),
you can do that in ./manage.py shell:

Thanks – I want to move only some annotations from one layer to a new layer, unfortunately.

Replying to [j]comment:2: > in case you want to rename a layer (move all existing annots from one layer to another), > you can do that in ./manage.py shell: Thanks – I want to move only some annotations from one layer to a new layer, unfortunately.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2818
No description provided.