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

Stefan Hornburg racke at rt.icdevgroup.org
Thu Feb 5 16:04:54 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  8246c351452835958bbd861b06961ad2e00245e7 (commit)
      from  edb6eaaafb2ea35c758192ed6e9e2d4614e094bc (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 8246c351452835958bbd861b06961ad2e00245e7
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu Feb 5 17:03:48 2009 +0100

    add job for getting sample data from standard (very simple products import for now)

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

Summary of changes and diff:
 catalog.cfg           |    8 ++++++++
 jobs/migrate/standard |   22 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 jobs/migrate/standard

diff --git a/catalog.cfg b/catalog.cfg
index 9327284..523dec4 100644
--- a/catalog.cfg
+++ b/catalog.cfg
@@ -69,3 +69,11 @@ UserDB default crypt			 0
 
 # Routes and Orders
 OrderCounter var/run/order.number
+
+# Jobs
+ParseVariables Yes
+Jobs base_directory jobs
+Jobs email __JOBS_TO__
+Jobs log var/log/jobs.log
+Jobs use_global 1
+ParseVariables No
diff --git a/jobs/migrate/standard b/jobs/migrate/standard
new file mode 100644
index 0000000..2d5b717
--- /dev/null
+++ b/jobs/migrate/standard
@@ -0,0 +1,22 @@
+[comment]
+- needs Vend::AnyData
+- symlink database/standard to standard/products
+[/comment]
+[anydata table="standard_products" format="TAB" name="database/standard/products.txt" hide=1]
+[query table="standard_products" sql="select * from standard_products" hashref="products"/]
+[perl tables="products"]
+my ($sku, %count);
+
+for my $productref (@{$Tmp->{products}}) {
+	$sku = delete $productref->{sku};
+
+	$Db{products}->set_slice($sku,
+							 name => $productref->{title},
+							 description => $productref->{description},
+							 price => $productref->{price},
+							 inactive => $productref->{inactive});
+	$count{products}++;
+}
+
+return "$count{products} products migrated.";
+[/perl]


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list