MantisBT - Piwigo
View Issue Details
0001312Piwigoweb APIpublic2009.12.07 23:212009.12.09 23:19
plg 
plg 
normalfeatureN/A
closedfixed 
 
2.0.72.0.7 
any
Apache 1.3.x
0001312: [pwg.images.setInfo] ability to replace tags/categories
Currently (Piwigo 2.0.6) pwg.images.setInfo replaces single value properties (author, name, comment, creation date) and appends multiple values properties (tags and categories).

We would like to have a "replace mode" in addition to the "append mode" for multiple values properties.
No tags attached.
Issue History
2009.12.07 23:21plgNew Issue
2009.12.07 23:21plgStatusnew => assigned
2009.12.07 23:21plgAssigned To => plg
2009.12.07 23:21plgbrowser => any
2009.12.07 23:21plgWeb server => Apache 1.3.x
2009.12.07 23:28svnCheckin
2009.12.07 23:28svnNote Added: 0003195
2009.12.07 23:30svnCheckin
2009.12.07 23:30svnNote Added: 0003197
2009.12.07 23:31plgFixed in Version => 2.0.7
2009.12.07 23:31plgStatusassigned => closed
2009.12.07 23:32plgResolutionopen => fixed
2009.12.09 23:14svnCheckin
2009.12.09 23:14svnNote Added: 0003210
2009.12.09 23:19svnCheckin
2009.12.09 23:19svnNote Added: 0003212

Notes
(0003195)
svn   
2009.12.07 23:28   
[Subversion] r4444 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.
(0003197)
svn   
2009.12.07 23:30   
[Subversion] r4445 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r4444 from branch 2.0 to trunk

feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.
(0003210)
svn   
2009.12.09 23:14   
[Subversion] r4459 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.
(0003212)
svn   
2009.12.09 23:19   
[Subversion] r4460 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r4459 from branch 2.0 to trunk

feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.