[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. fa17dc58bb3e0925d4b6e4724f7e2bf3a953b036

Stefan Hornburg racke at rt.icdevgroup.org
Thu Jul 23 13:25:15 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".

The branch, master has been updated
       via  fa17dc58bb3e0925d4b6e4724f7e2bf3a953b036 (commit)
      from  b8ec1bc0a73548a0ff2d2f6472b65d62a31a16b9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fa17dc58bb3e0925d4b6e4724f7e2bf3a953b036
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu Jul 23 15:24:45 2009 +0200

    new touch function added to [wishlist]

-----------------------------------------------------------------------

Summary of changes and diff:
 plugins/wishlists/code/wishlist.tag |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/plugins/wishlists/code/wishlist.tag b/plugins/wishlists/code/wishlist.tag
index a7b769f..c31d622 100644
--- a/plugins/wishlists/code/wishlist.tag
+++ b/plugins/wishlists/code/wishlist.tag
@@ -107,6 +107,20 @@ sub {
 
 		return 1;
 	}
+	elsif ($function eq 'touch') {
+		if ($wishlist_code) {
+			# update timestamp on wishlist
+			$Db{carts}->set_field($wishlist_code, 'last_modified', $Tag->time({format => '%s'}));
+		}
+		else {
+			# create new wishlist
+			$wishlist_code = $Db{carts}->autosequence();
+			$Db{carts}->set_slice($wishlist_code, uid => $Session->{username},
+								  created => $Tag->time({format => '%s'}),
+								  type => $type,
+								  name => $name);
+		}
+	}
 
 	unless ($wishlist_code) {
 		$Tag->error({name => 'wishlist', set => 'Wishlist is missing.'});


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list