Re: iterate vs scalar

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 18:38, Wes Hardaker wrote: > You guys seem to think that the *only* time you'll register an OID is > if you want to control a scalar. I humbly disagree. > > Take the working and popular example of the "override" snmpd.conf > token, which is implemented via an instance regist

Re: iterate vs scalar

2005-04-29 Thread Wes Hardaker
> On Fri, 29 Apr 2005 13:41:38 +0100, Dave Shield <[EMAIL PROTECTED]> said: Dave> I don't believe that the instance helper is particularly useful Dave> - but I don't think that we should actually change the Dave> functionality. Bz You guys seem to think that the *only* time you'll re

Re: iterate vs scalar [Was: table_data helpers]

2005-04-29 Thread Dave Shield
On Thu, 2005-04-28 at 00:52, Robert Story wrote: > On Wed, 27 Apr 2005 16:00:51 +0100 Dave wrote: > DS> In general, I'd tend to agree - I don't believe that the instance > DS> handler is particularly useful. > DS> But this is one of Wes' helpers, so I'm reluctant to simply > DS> drop it. > Don'

Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 16:00:51 +0100 Dave wrote: DS> On Wed, 2005-04-27 at 15:44, Robert Story wrote: DS> > However, it leaves me wondering why we shouldn't just merge the two. DS> > When would one ever use the instance handler? DS> DS> a) I dunno, ask Wes. That's one of his Ok. Wes? DS> b)

Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Dave Shield
On Wed, 2005-04-27 at 15:44, Robert Story wrote: > However, it leaves me wondering why we shouldn't just merge the two. > When would one ever use the instance handler? a) I dunno, ask Wes. That's one of his b) If (for some unexplained reason) you wanted to implement a table one elemen

Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 10:12:17 +0100 Dave wrote: DS> The same holds true for GET requests for sys{Contact,Location}.1 DS> or sys{Contact,Location}.0.99, etc, etc. In each case, an DS> implementation using the instance handler would return the DS> wrong exception ('noSuchObject'), while the scalar h

iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 21:52, Robert Story wrote: > DS> Compare with scalar vs instance helpers. The scalar helper > DS> is basically just a wrapper round the instance helper. > DS> That works fine, IMO. > > Easy for you to say, you wrote them! Actually, the instance helper is one of Wes'. I wrot