Re: create and insert

[prev] [thread] [next] [Date index for 2005/01/22]

From: Peter Speltz
Subject: Re: create and insert
Date: 05:50 on 22 Jan 2005
--- Hartmaier Alexander <Alexander.Hartmaier@xxxxxxxxx.xx> wrote:


> I have a webpage which shows the difference between the two tables (new
> interfaces and a second which shows obsolete interfaces, which aren't found
> any more).
> 
> What I do is the following:
> 
> # read interface data from scaninterface (this works and NO primary key is
> generated, so it seems this is a bug...)
> ($obj_new_interface) = NAC::Interface->search_from_scan($newport);


I probably missing something however . . .
I don't see how this is a bug. You haven't created a new interface row yet so
how could you have a primary key?  I see no reference to a
scaninterface.id_interface column. If not, i wouldn't expect
$obj_new_interface->id to return a value. 

> # set the monitor value (if the interface should be monitored or not)
> $obj_new_interface->monitor($monitor);
> # lookup matching NAC::Line object and save it's primary key in the 'line'
> object variable
> $obj_new_interface->trig_line;
> 
> Should I create a new object class for the scaninterface table? Maybe even
> without the use of Class::DBI?
> I can't immediately create the NAC::Interface object out of the scaninterface
> data because I have to check for a matching NAC::Line object first if it
> doesn't exist (by displaying a message and a link which calls a create line
> webpage with pre-filled values).
> 
> -Alex


=====
pjs


		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

(message missing)

create and insert
Hartmaier Alexander 16:00 on 20 Jan 2005

Re: create and insert
Dana Hudes 16:06 on 20 Jan 2005

Re: create and insert
Hartmaier Alexander 16:24 on 20 Jan 2005

Re: create and insert
Jay Strauss 17:45 on 20 Jan 2005

Re: create and insert
Perrin Harkins 18:46 on 20 Jan 2005

Re: create and insert
Jay Strauss 19:33 on 20 Jan 2005

Re: create and insert
Perrin Harkins 19:51 on 20 Jan 2005

Re: create and insert
Jay Strauss 17:39 on 20 Jan 2005

Re: create and insert
Peter Speltz 17:53 on 20 Jan 2005

Re: create and insert
Peter Speltz 18:06 on 20 Jan 2005

Re: create and insert
Hartmaier Alexander 09:40 on 21 Jan 2005

Re: create and insert
Jay Strauss 15:41 on 21 Jan 2005

Re: create and insert
Perrin Harkins 19:35 on 21 Jan 2005

Re: create and insert
Peter Speltz 05:50 on 22 Jan 2005

Re: create and insert
Perrin Harkins 17:19 on 22 Jan 2005

Re: create and insert
Peter Speltz 17:43 on 22 Jan 2005

Re: create and insert
Perrin Harkins 19:09 on 22 Jan 2005

Re: create and insert
Peter Speltz 22:22 on 22 Jan 2005

Re: create and insert
Perrin Harkins 00:18 on 23 Jan 2005

Re: create and insert
Hartmaier Alexander 14:07 on 24 Jan 2005

Re: create and insert
William McKee 16:15 on 24 Jan 2005

Re: create and insert
Peter Speltz 16:28 on 24 Jan 2005

Re: create and insert
Hartmaier Alexander 16:38 on 24 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52