Implementation of "Delete Tags"

Bug #386772 reported by Juho Vepsäläinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Undecided
Juho Vepsäläinen

Bug Description

Implementation of https://blueprints.launchpad.net/phatch/+spec/delete-tag-action .

Note that I have not tested it thorougly though "All" option seemed to work just fine and hopefully rest do too.

Tags: patch
Revision history for this message
Juho Vepsäläinen (bebraw) wrote :
Revision history for this message
Stani (stani) wrote :

Hi Juho,

Phatch is compatible with py2.4 so do not use:
condition = condition if condition else always_true

With multiple if statements, it is better to use elif.
photo.metadata is just a buffer for changed metadata values, so your patch won't work even not for "All'. It surprises me it did for you.

You'll have to lookup photo.info for possible metatags, as metadata should be empty by default unless some action modified metadata. It is better to use regular expressions, as otherwise for the 'All' method you need to check two conditions.

I rewrote your action and pushed it in the trunk.

Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Stani (stani) wrote :

Please include an icon. (trash icon?)

Changed in phatch:
assignee: stani (stani) → Juho Vepsäläinen (bebraw)
status: Fix Committed → Incomplete
Stani (stani)
Changed in phatch:
importance: Medium → Undecided
Stani (stani)
Changed in phatch:
status: Incomplete → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.