Project

General

Profile

« Previous | Next » 

Revision 540aa3c6

Added by Marc Dequènes about 15 years ago

  • ID 540aa3c6abb4489a74ef73c5c9935c604499e235

[evol] don't try to find raw item object if it is already known, be lazy

View differences:

lib/ldap_shadows/elements/object.rb
end
def self.find_raw_item_object(shadow, raw_item)
# easy case
base_obj_klass = LdapShadows::Elements::LdapObject
if raw_item.class != base_obj_klass and raw_item.class.ancestors.include?(base_obj_klass)
return raw_item.class.handle
end
shadow.objects.each do |obj_hdl|
obj_klass = shadow.get_object(obj_hdl)
ldap_classes = obj_klass.required_classes

Also available in: Unified diff