Displaying 6 results from an estimated 6 matches for "otherclass".
2007 May 10
13
Is there a way to do incremental search?
Say the user first enters "ruby" for search and gets 1000 results. Then
he can search "rails" just in the 1000 results just returned.
The common scenario is some kind of advanced search. User can
incrementally add criteria and the program will narrow the results step
by step.
I know that at least I can use all the criteria as a whole to do the
searching, but this is a waste
2006 Jan 12
2
Finding by association
I have two objects that are associated in the following way:
class Class1 < ApplicationController
has_and_belongs_to_many :class2s
has_and_belongs_to_many :otherClasses
end
class Class2 < ApplicationController
has_and_belongs_to_many :class1s
has_and_bleongs_to_many :otherClasses
end
Now, when I run the following query,
@objects = Class1.find(:all, :conditions => ["class2s.id = ?",
params[:id]], :include => :class2s)
I exp...
2007 Jul 24
3
How to require a defined type...
Hi all,
I''m struggling with the following:
I have a defined type wrapped in a class:
class myclass {
define mytype(bla) {
file { "blabla":
....
}
exec { "blablabla":
...
}
}
}
And I access the defined type in my other class by doing this:
class otherclass {
include myclass
myclass::mytype { "alb":
...
}
# and here I want to require my defined type:
file { "albalb:
ensure => "exists",
require => Myclass::mytype["alb"],
}
}
But puppet burps at me and says the syntax is wrong. But how can I do...
2015 Mar 13
0
Ah I've got it now .Thanks! RE: Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
...environment where it was created and finds any
information it needs about additional functions etc, that may or may not
have been exported by package otherpkg behind the scenes.
My reasoning was that the same should apply to the *names* of classes as
well.
If `mypkg` wanted to use a class called `OtherClass` from package `otherpkg`
all it would need to do was import the *name* of `OtherClass` into the
`mypkg` namespace.
After that the `OtherClass` (metadata) object would know where it came from
and look after itself. In particular, if the operation of the OtherClass
(metadata) object involved any su...
2015 Mar 13
1
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
On looking more closely, the purpose of finding the class definition is to update the entry for the new relationship, as the warning message suggests. That requires that the namespace holding the definition be writable.
In the case of subclass information, the original namespace is very likely to be locked, if it's not the package currently being loaded. Copying the definition in order to
2006 Feb 14
3
S4 classes and methods with optional arguments
Hi,
i have used S4 classes to implement a unified access to random number generators
(package rstream on CRAN).
I have used a construct to allow optional arguments:
if(!isGeneric("rstream.sample"))
setGeneric("rstream.sample", function(stream,...) standardGeneric("rstream.sample"))
setMethod("rstream.sample",