Re: [Templates] DBI attribute problem

[prev] [thread] [next] [Date index for 2004/06/14]

From: Perrin Harkins
Subject: Re: [Templates] DBI attribute problem
Date: 20:19 on 14 Jun 2004
On Mon, 2004-06-14 at 16:01, Jason Gottshall wrote:
>  The perl syntax is:
> 
> $dbh->{LongReadLen} = 10000;
> 
> which I write in TT as:
> 
> [% dbh.LongReadLen = 10000 %]
> 
> which doesn't work.

This might work:
[% dbh.STORE('LongReadLen', 10000) %]

Or you could just use a [% PERL %] section if you have that on.  I think
it would be better to do it before the template though.  There isn't
usually a reason to have lots of different values for this setting, and
this is exactly the kind of thing that doesn't belong in templates.

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] DBI attribute problem
Jason Gottshall 20:01 on 14 Jun 2004

Re: [Templates] DBI attribute problem
Perrin Harkins 20:19 on 14 Jun 2004

RE: [Templates] DBI attribute problem
Jason Gottshall 20:54 on 14 Jun 2004

RE: [Templates] DBI attribute problem
Perrin Harkins 20:58 on 14 Jun 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52