On 2/15/07, Nic Gibson <[EMAIL PROTECTED]> wrote:
>
> On Feb 15, 2007, at 20:42, Jay Savage wrote:
>
> > On 2/15/07, Nic Gibson <[EMAIL PROTECTED]> wrote:
> >> On Feb 15, 2007, at 16:46, Jay Savage wrote:
> >
> >> Hi jay
> >>
> >> Does this work outside of Maypole? DBIx::ContextualFetch is in use a
> >> very low level -
> >> Ima::DBI sets it as the RootClass for all DBI connections so every
> >> Class::DBI object is going to
> >> be using it. I've got at least one TEMP column in my Maypole code and
> >> it works just fine without
> >> any particular magic.
> >>
> >> nic
> >>
> >
> > Nic,
> >
> > I really can't say; Maypole is pretty much the only place I use CDBI,
> > and this is my first experiment with temp columns.
> >
> > For the moment, though, I've found a workaround. Apparently, you can
> > put items in display_columns and list_columns that aren't declared as
> > columns. Then I can do things like:
> >
> > sub list :Exported {
> >     # .....
> >     foreach my $item (@{$r->objects}) {
> >         $item->{fake_column} = "something";
> >     }
> > }
> >
> > I don't remember seeing that in the docs anywhere, but it does the
> > job, or at least 90% of it.
> >
> > Thanks,
> >
> > -- jay
>
> Thinking back, i think Brian has a point here. I've had some odd
> behaviour
> with TEMP cols when not set up in a distinct call to columns. My code
> definitely
> uses another columns call.
>
> Give it a try
>
> nic
>

Nic,

It turns out that was it. What a weird bug.

Thanks,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to