From: Norbert K. <nor...@da...> - 2002-04-09 12:15:41
|
Hi Graham, --On Donnerstag, 4. April 2002 07:14 +0100 Graham Barr <gb...@po...>=20 wrote: > The schema module is one that will be changing in the next release. IIRC > this is a bug with parsing - in names. Attached is my developemnt version > of Schema.pm and Schema.pod, the API is different. > > It would be useful if others could also test this. I will be doing a > beta release of perl-ldap as soon as my day job permits, which will > also have changes to the DSML to be a SAX parser. I've worked with the 0.99 version of Schema.pm you posted earlier and added = some functions I needed: - _get() now can take the name of an schema element or a hash ref to a=20 schema element. - functions which return arrays now can also return a ref to the hash that=20 was used to construct the array. This makes comparisons very easy, e.g: $allowed_attributes =3D $schema->may( "myPerson" ); if ( $allowed_attributes{ $schema->at("myAttribute") ) { ... - new function: remove() which removes an element and all its aliases from=20 %schema - new function: superclasschain() which returns all object classes in the=20 superclass chain of the specified object class(es) - new function: is_instance_of() which tests whether an entry (or a list of = object classes) is an instance of the specified object class(es) - new function: must_or_may() which returns the interserction of must() and = may() - FIXME: all_*() includes duplicates because of aliases --=20 Norbert Klasen, Dipl.-Inform. DAASI International GmbH phone: +49 7071 29 70336 Wilhelmstr. 106 fax: +49 7071 29 5114 72074 T=FCbingen email: nor...@da... Germany web: http://www.daasi.de |