Re: md5.action.php

Joshua <[email protected]> Fri, 29 Apr 2005 12:35:49 -0600
Newsgroups gmane.comp.lib.nexista.devel
Message-ID <[email protected]>
Wel; that's specific to your thing so you can't cvs that. But you can update 
flow vars. Flow is an extension of the DOM XML php 5 so you can do whatever 
that can do which is anything - perhaps a bit more complicated until you get 
used to it.

On Friday 29 April 2005 1:40, Albert Lash wrote:
> So this would be the updated md5.action.php
>
>         $res = Path::get($this->params['var'],'flow');
>
>  if(isset($res)) {
>
>          $res=md5($res);
>   $name='user_password';
>   Flow::add($name, $res);
>          return true;
>  }
>         return false;
>
> If I try to use "_post/user_password" I get some seriously fatal errors.
>
> On Fri, 29 Apr 2005, Albert Lash wrote:
> > I'm looking it over, and can't see where the the flow var can be set.
> >
> > On Fri, 29 Apr 2005, Joshua wrote:
> > > Open up Path::get() and track things there.
> > > Maybe also try it without the // in front. When I switched over to the
> > > DOM XML some old calls changed - correctly
> > >
> > > On Friday 29 April 2005 1:13, Albert Lash wrote:
> > > > Hmm, something is not right. I tried both
> > > > <action type="md5" params="//_post/user_password"/>
> > > > and
> > > > <action type="md5" params="post:user_password"/>
> > > > with no luck.
> > > >
> > > > When I try post:, I get an additional Notice:
> > > >
> > > > Notice: Undefined variable: string in
> > > > /Users/albertlash/Sites/gnu_nexista/nexista/kernel/path.php on line
> > > > 232
> > > >
> > > > I'm certain the flow variable is there, as I can see it in the flow
> > > > dump, and in the tracking output of the queries. I turned it off too
> > > > in case it was interfering.
> > > >
> > > > On Fri, 29 Apr 2005, Joshua wrote:
> > > > > Path::get which is what I just changed it to determines the correct
> > > > > protocol. So Flow::getByPath allows flow vars ONLY. Path::get
> > > > > allows anything. including flow - there is a default, which can be
> > > > > specified - which should be flow - so when you do <action
> > > > > type="md5"
> > > > > params='//_post/user_password"/> you imply flow. But you could now
> > > > > also do things like
> > > > >  <action type="md5" params='post:user_password"/>
> > > > >
> > > > > That may have been the issue -it was defaulting to string - just
> > > > > changed to flow - try again - note that I updated md5 twice - get
> > > > > the latest
> > > > >
> > > > > On Friday 29 April 2005 12:51, Albert Lash wrote:
> > > > > > Why does this use the InlineFlow function? I would figure it to
> > > > > > use the Flow::getByPath function.
> > > > > >
> > > > > > My call:
> > > > > >
> > > > > > <action type="md5" params='//_post/user_password"/>