From: Allen Day Date: Wed, 31 Mar 2004 03:03:59 +0000 (+0000) Subject: fixes for code clarity X-Git-Tag: v0.06~107 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c54bff0eb56fd217c4a19765923949cb146d0a6;p=dbsrgits%2FSQL-Translator.git fixes for code clarity --- diff --git a/lib/SQL/Translator/Producer/Turnkey.pm b/lib/SQL/Translator/Producer/Turnkey.pm index 9be6de5..e879cea 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.29 2004-03-12 20:20:44 boconnor Exp $ +# $Id: Turnkey.pm,v 1.30 2004-03-31 03:03:59 allenday Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -22,7 +22,7 @@ package SQL::Translator::Producer::Turnkey; use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.29 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.30 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -625,29 +625,24 @@ EOF return <<'EOF'; [%- TAGS [- -] -%] [-- IF !node.is_trivial_link --] -[% records = atom.render(dbobject) %] [% rowcount = 0 %] [% IF atom.focus == "yes" %] - [% FOREACH record = records %] - [% fields = record.data %] [- FOREACH field = node.data_fields -] [- IF field != "1" -] - [- field -][% obj2link(fields.[- field -]) %] + [- field -][% obj2link(dbobject.[- field -]) %] [- END -] [- END -] [- FOREACH field = node.edges -] [- NEXT IF field.type != 'import' -] [- field.thisfield.name -][% obj2link(fields.[- field.thisfield.name -]) %] [- END -] - [% id = record.id %] [% IF (rowcount > 1) %]
[% END %] [% rowcount = rowcount + 1 %] - [% END %] [% ELSE %]