From: Graham B. <gb...@po...> - 2002-04-09 12:44:43
|
Care to send a doc patch too ? Thanks, Graham. On Tue, Apr 09, 2002 at 12:41:02PM +0200, Norbert Klasen wrote: > Hi Graham, > > --On Donnerstag, 4. April 2002 07:14 +0100 Graham Barr <gb...@po...> > 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 > schema element. > - functions which return arrays now can also return a ref to the hash that > was used to construct the array. This makes comparisons very easy, e.g: > $allowed_attributes = $schema->may( "myPerson" ); > if ( $allowed_attributes{ $schema->at("myAttribute") ) { ... > - new function: remove() which removes an element and all its aliases from > %schema > - new function: superclasschain() which returns all object classes in the > 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 > > -- > Norbert Klasen, Dipl.-Inform. > DAASI International GmbH phone: +49 7071 29 70336 > Wilhelmstr. 106 fax: +49 7071 29 5114 > 72074 Tübingen email: nor...@da... > Germany web: http://www.daasi.de > |