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

Stefan Hornburg racke at rt.icdevgroup.org
Fri Jun 5 18:47:42 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  ca3fb0071706776fe8f1472339572830444f6ac1 (commit)
      from  cc35646b4340606d7ab11f2885385e4e615ff1c3 (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 ca3fb0071706776fe8f1472339572830444f6ac1
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Fri Jun 5 20:47:11 2009 +0200

    provide lookup hook so content with matching URL is displayed automatically

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

Summary of changes and diff:
 plugins/content/code/lookup_content.sub |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 plugins/content/code/lookup_content.sub

diff --git a/plugins/content/code/lookup_content.sub b/plugins/content/code/lookup_content.sub
new file mode 100644
index 0000000..2ed83b3
--- /dev/null
+++ b/plugins/content/code/lookup_content.sub
@@ -0,0 +1,13 @@
+Sub lookup_content <<EOS
+sub {
+	my ($name) = @_;
+	my ($ret);
+
+	if ($ret = $Tag->content({function => 'exists', uri => $name})) {
+		$CGI->{code} = $ret->{code};
+		return (1, 'content/display');
+	} 
+
+	return;
+}
+EOS


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list