$errMsg" + if {[catch {db_exec_plsql new_collection {}} errMsg]} { + ad_return_error "Clipboard Insert error" "Error putting photo into clipboard (query name new_collection)
$errMsg" } } if {$collection_id > 0} { - if {[catch {db_dml map_photo {insert into pa_collection_photo_map (collection_id, photo_id) select :collection_id, :photo_id where - acs_permission__permission_p(:collection_id, :user_id, 'write') = 't'}} errMsg]} { + if {[catch {db_dml map_photo {}} errMsg]} { # Check if it was a pk violation (i.e. already inserted) - # JCD: should check if this works for oracle. Might have case problem. if {![string match "*pa_collection_photo_map_pk*" $errMsg]} { - ad_return_error "Clipboard Insert error" "Error putting photo into clipboard
$errMsg" + ad_return_error "Clipboard Insert error" "Error putting photo into clipboard (query name map_photo)
$errMsg" ad_script_abort } } Index: openacs-4/packages/photo-album/www/clipboard-remove-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/clipboard-remove-oracle.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/photo-album/www/clipboard-remove-oracle.xql 12 Jun 2003 06:55:45 -0000 1.1 @@ -0,0 +1,17 @@ + + +
$errMsg" ad_script_abort } Index: openacs-4/packages/photo-album/www/clipboards-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/clipboards-oracle.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/photo-album/www/clipboards-oracle.xql 12 Jun 2003 06:55:45 -0000 1.1 @@ -0,0 +1,20 @@ + + +
Move folder to new older: +
Move folder to new folder: