From: Clif H. <cl...@di...> - 2002-07-18 22:02:17
|
Graham, I think something did not merge the changes correctly on the DSML stuff or you changed somethings that I did not know about. I found another error that I damn well know that you and I fixed while working out the DSML bugs. Example <dsml:dsml xmlns:dsml='http://www.dsml.org/DSML'> . . . . . </dsml:dsml> ^^^^ Missing this line. To fix add these 2 lines at the end of the write_schema method. @data{qw(Name LocalName)} = qw(dsml:dsml dsml); $handler->end_element(\%data); I will look at the entry stuff later tonight or tomorrow. Regards, Clif Harden INTERNET: c-h...@ti... Texas Instruments Directory Services 6500 Chase Oaks Blvd, M/S 8412 Plano, TX 75023 Voice: 214-567-0855 |
From: Graham B. <gb...@po...> - 2002-07-18 22:26:31
|
On Thu, Jul 18, 2002 at 05:02:10PM -0500, Clif Harden wrote: > > Graham, > > I think something did not merge the changes correctly on > the DSML stuff or you changed somethings that I did not > know about. > > I found another error that I damn well know that you and I > fixed while working out the DSML bugs. > > Example > <dsml:dsml xmlns:dsml='http://www.dsml.org/DSML'> > . > . > . > . > . > </dsml:dsml> > ^^^^ > Missing this line. > > To fix add these 2 lines at the end of the write_schema method. > > @data{qw(Name LocalName)} = qw(dsml:dsml dsml); > $handler->end_element(\%data); No that is not the right fix. There is nothing to say that after writing schema you cannot follow by writing entries to the same file. So you dont want to close the <dsml:dsml> element at that point. Are you sure you are calling ->end_dsml Actually, try adding sub DESTROY { shift->end_dsml } at about line 605, just before the line package Net::LDAP::DSML::pp; Graham. |
From: Clif H. <ch...@po...> - 2002-07-19 02:28:20
|
Nope I am not calling the end_dsml function. I did not know about it. It is not listed in the pod documentation either. I would rather not put it in the destroy method, I would rather call it. Your reason for using the end_dsml function is a very valid point. Later, Clif Graham Barr wrote: > > On Thu, Jul 18, 2002 at 05:02:10PM -0500, Clif Harden wrote: > > > > Graham, > > > > I think something did not merge the changes correctly on > > the DSML stuff or you changed somethings that I did not > > know about. > > > > I found another error that I damn well know that you and I > > fixed while working out the DSML bugs. > > > > Example > > <dsml:dsml xmlns:dsml='http://www.dsml.org/DSML'> > > . > > . > > . > > . > > . > > </dsml:dsml> > > ^^^^ > > Missing this line. > > > > To fix add these 2 lines at the end of the write_schema method. > > > > @data{qw(Name LocalName)} = qw(dsml:dsml dsml); > > $handler->end_element(\%data); > > No that is not the right fix. There is nothing to say that after > writing schema you cannot follow by writing entries to the same > file. So you dont want to close the <dsml:dsml> element > at that point. > > Are you sure you are calling ->end_dsml > > Actually, try adding > > sub DESTROY { shift->end_dsml } > > at about line 605, just before the line > package Net::LDAP::DSML::pp; > > Graham. > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf -- Regards, Clif Harden ch...@po... |
From: Graham B. <gb...@po...> - 2002-07-19 15:46:11
|
On Thu, Jul 18, 2002 at 09:30:28PM -0500, Clif Harden wrote: > > Nope I am not calling the end_dsml function. > I did not know about it. Hm, I mentioned it last time you tried the module, I am sure. > It is not listed in the pod documentation either. Patches welcome. > I would rather not put it in the destroy method, I would > rather call it. Yeah, I came to the same conclusion after having some sleep :) Really you should be calling start_dsml, but the code does that for you if you don't do it explicitly. Graham. > Your reason for using the end_dsml function > is a very valid point. > > Later, > > Clif > > > > > Graham Barr wrote: > > > > On Thu, Jul 18, 2002 at 05:02:10PM -0500, Clif Harden wrote: > > > > > > Graham, > > > > > > I think something did not merge the changes correctly on > > > the DSML stuff or you changed somethings that I did not > > > know about. > > > > > > I found another error that I damn well know that you and I > > > fixed while working out the DSML bugs. > > > > > > Example > > > <dsml:dsml xmlns:dsml='http://www.dsml.org/DSML'> > > > . > > > . > > > . > > > . > > > . > > > </dsml:dsml> > > > ^^^^ > > > Missing this line. > > > > > > To fix add these 2 lines at the end of the write_schema method. > > > > > > @data{qw(Name LocalName)} = qw(dsml:dsml dsml); > > > $handler->end_element(\%data); > > > > No that is not the right fix. There is nothing to say that after > > writing schema you cannot follow by writing entries to the same > > file. So you dont want to close the <dsml:dsml> element > > at that point. > > > > Are you sure you are calling ->end_dsml > > > > Actually, try adding > > > > sub DESTROY { shift->end_dsml } > > > > at about line 605, just before the line > > package Net::LDAP::DSML::pp; > > > > Graham. > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > -- > Regards, > > Clif Harden ch...@po... |
From: Clif H. <cl...@di...> - 2002-07-19 20:05:23
|
> > On Thu, Jul 18, 2002 at 09:30:28PM -0500, Clif Harden wrote: > > > > Nope I am not calling the end_dsml function. > > I did not know about it. > > Hm, I mentioned it last time you tried the module, I am sure. No problem, I probably did forget it. > > > It is not listed in the pod documentation either. > > Patches welcome. > > > I would rather not put it in the destroy method, I would > > rather call it. > > Yeah, I came to the same conclusion after having some sleep :) > > Really you should be calling start_dsml, but the code does that for you > if you don't do it explicitly. In that case we need to add documentation for end_dsml and start_dsml in the documentation. I might write something up this weekend. Clif |