From: Brian O'Connor Date: Wed, 31 Dec 2003 23:40:01 +0000 (+0000) Subject: Fixed problem with rendering atoms in Turnkey Producer. X-Git-Tag: v0.06~246 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fbe3b98287f8b10e06b12fb377c4d4b0179ec9c;p=dbsrgits%2FSQL-Translator.git Fixed problem with rendering atoms in Turnkey Producer. --- diff --git a/lib/SQL/Translator/Producer/Turnkey.pm b/lib/SQL/Translator/Producer/Turnkey.pm index 07d8f86..cacbc6c 100644 --- a/lib/SQL/Translator/Producer/Turnkey.pm +++ b/lib/SQL/Translator/Producer/Turnkey.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::Turnkey; # ------------------------------------------------------------------- -# $Id: Turnkey.pm,v 1.11 2003-12-31 11:17:58 boconnor Exp $ +# $Id: Turnkey.pm,v 1.12 2003-12-31 23:40:01 boconnor Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Allen Day , # Brian O'Connor . @@ -23,7 +23,7 @@ package SQL::Translator::Producer::Turnkey; use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -538,10 +538,12 @@ EOF [% END %] [% MACRO renderatom(atom, dbobject) SWITCH atom.name %] - [- FOREACH node = linkable -] + [- FOREACH node = nodes -] + [- IF !node.value.is_trivial_link -] [% CASE '[- node.key FILTER ucfirst -]' %] [% render[- node.key FILTER ucfirst -]Atom(atom.render(dbobject)) %] [- END -] + [- END -] [% CASE DEFAULT %] [% renderlist(atom.render(dbobject)) %] [% END %]