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

Stefan Hornburg racke at rt.icdevgroup.org
Thu Aug 27 07:11:48 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  b5dd5802bbfe4739c8f77cb6df64e5b14e38f1d8 (commit)
      from  6207f426a44bb506003323ce6ba297d7df19bd0c (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 b5dd5802bbfe4739c8f77cb6df64e5b14e38f1d8
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Wed Aug 26 17:04:00 2009 +0200

    apply filters from Filter directive before any other Autoload routine (#267)

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

Summary of changes and diff:
 catalog.cfg          |    1 +
 code/init_filter.sub |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 code/init_filter.sub

diff --git a/catalog.cfg b/catalog.cfg
index 19bfeaa..33c133b 100644
--- a/catalog.cfg
+++ b/catalog.cfg
@@ -24,6 +24,7 @@ include code/*.*
 OrderProfile profiles/*.profile
 
 # Autoload
+Autoload init_filter
 Autoload init
 
 # Automatic components and attributes
diff --git a/code/init_filter.sub b/code/init_filter.sub
new file mode 100644
index 0000000..d79b7f7
--- /dev/null
+++ b/code/init_filter.sub
@@ -0,0 +1,17 @@
+Sub init_filter <<EOS
+sub {
+	my $value;
+
+	if ($Config->{Filter}) {
+		for(keys %{$Config->{Filter}}) {
+			next unless exists $CGI->{$_};
+			$value = $Tag->filter({op => $Config->{Filter}->{$_}, 
+				body => $CGI->{$_}});
+			$Tag->cgi({name => $_, set => $value});
+		}
+	}
+
+	delete $Config->{Filter};
+	return;
+}
+EOS
\ No newline at end of file


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list