You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Martin Man <Ma...@seznam.cz> on 2001/04/27 20:59:27 UTC

[c2] [patch] validator action feature

hi all,
	attached is a patch that enables new functionality in form and session
validator. it is a new way to specify which parameters to validate and
hopefully it cleans a little bit sitemap and introduces more flexibile syntax
(comparsion of parameters and comparsion to strings is possible, now just
specify what to implement more...)

<map:act type="session-validator">
    <parameter name="descriptor" value="context://desc.xml"/>
    <parameter name="validate-set" value="is-logged-in"/>
</map:act>

where desc.xml contains
<root>
    <parameter name="username" type="string" nullable="no"/>
    <parameter name="role" type="string" nullable="no"/>

    <constraint-set name="is-logged-in">
        <validate name="username"/>
        <validate name="role"/>
    </constraint-set>

    <constraint-set name="is-logged-in-admin-role">
        <validate name="username"/>
        <validate name="role" equals-to="admin"/>
    </constraint-set>

    <constraint-set name="do-new-passwords-match">
        <validate name="newpass"/>
        <validate name="renewpass" equals-to-admin="newpass"/>
    </constraint-set>
</root>

rgds,
martin man

-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

Re: [c2] [patch] validator action feature

Posted by Martin Man <Ma...@seznam.cz>.
On Fri, Apr 27, 2001 at 08:59:27PM +0200, Martin Man wrote:
> hi all,
> 	attached is a patch that enables new functionality in form and session
> validator. it is a new way to specify which parameters to validate and
> hopefully it cleans a little bit sitemap and introduces more flexibile syntax
> (comparsion of parameters and comparsion to strings is possible, now just
> specify what to implement more...)
> 
> <map:act type="session-validator">
>     <parameter name="descriptor" value="context://desc.xml"/>
>     <parameter name="validate-set" value="is-logged-in"/>
> </map:act>
> 
> where desc.xml contains
> <root>
>     <parameter name="username" type="string" nullable="no"/>
>     <parameter name="role" type="string" nullable="no"/>
> 
>     <constraint-set name="is-logged-in">
>         <validate name="username"/>
>         <validate name="role"/>
>     </constraint-set>
> 
>     <constraint-set name="is-logged-in-admin-role">
>         <validate name="username"/>
>         <validate name="role" equals-to="admin"/>
>     </constraint-set>
> 
>     <constraint-set name="do-new-passwords-match">
>         <validate name="newpass"/>
>         <validate name="renewpass" equals-to-admin="newpass"/>
oops, typo here
         <validate name="renewpass" equals-to-param="newpass"/>
>     </constraint-set>
> </root>
> 
> rgds,
> martin man

BTW: old functionality with
<parameter name="validate" value="username,role"/>
is still preserved...
-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by Martin Man <Ma...@seznam.cz>.
On Fri, Apr 27, 2001 at 10:13:27PM +0200, giacomo wrote:
> 
> I'm tiered applying patches from this Man :)
> 
> How about applying it yourself?

no problem here, just looking forward....

> 
> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
> 
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
> 
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
> 
> Please your vote, committers.
> 
> Giacomo
> 

-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by Ross Burton <ro...@mail.com>.
Hi all,

> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
> 
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
> 
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
> 
> Please your vote, committers.

I've been far to busy with paid work of late, but I'm still keeping up
with C2 and these guys impress me.

+1 for both.

Ross

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by giacomo <gi...@apache.org>.
Welcome aboard, guys.

On Mon, 30 Apr 2001, Brian Behlendorf wrote:

> On Mon, 30 Apr 2001, giacomo wrote:
> > Brian, can you open up a cocoon committer account for each:
> >
> >    Martin Man <Ma...@seznam.cz>
> >
> > and
> >
> >    Sylvain Wallez <sy...@anyware-tech.com>
>
> Accounts created (mman, sylvain), passwords sent, and usernames added to
> the relevant line in the avail file, so they should have CVS karma.
>
> 	Brian

Thanks, Brian.

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by Brian Behlendorf <br...@collab.net>.
On Mon, 30 Apr 2001, giacomo wrote:
> Brian, can you open up a cocoon committer account for each:
>
>    Martin Man <Ma...@seznam.cz>
>
> and
>
>    Sylvain Wallez <sy...@anyware-tech.com>

Accounts created (mman, sylvain), passwords sent, and usernames added to
the relevant line in the avail file, so they should have CVS karma.

	Brian




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by giacomo <gi...@apache.org>.

On Fri, 27 Apr 2001, giacomo wrote:

>
> I'm tiered applying patches from this Man :)
>
> How about applying it yourself?
>
> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
>
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
>
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
>
> Please your vote, committers.

I've got a few +1 and no -1 so I think we could install those two
accounts.

Brian, can you open up a cocoon committer account for each:

   Martin Man <Ma...@seznam.cz>

and

   Sylvain Wallez <sy...@anyware-tech.com>

TIA

Giacomo

>
> Giacomo
>
> On Fri, 27 Apr 2001, Martin Man wrote:
>
> > hi all,
> > 	attached is a patch that enables new functionality in form and session
> > validator. it is a new way to specify which parameters to validate and
> > hopefully it cleans a little bit sitemap and introduces more flexibile syntax
> > (comparsion of parameters and comparsion to strings is possible, now just
> > specify what to implement more...)
> >
> > <map:act type="session-validator">
> >     <parameter name="descriptor" value="context://desc.xml"/>
> >     <parameter name="validate-set" value="is-logged-in"/>
> > </map:act>
> >
> > where desc.xml contains
> > <root>
> >     <parameter name="username" type="string" nullable="no"/>
> >     <parameter name="role" type="string" nullable="no"/>
> >
> >     <constraint-set name="is-logged-in">
> >         <validate name="username"/>
> >         <validate name="role"/>
> >     </constraint-set>
> >
> >     <constraint-set name="is-logged-in-admin-role">
> >         <validate name="username"/>
> >         <validate name="role" equals-to="admin"/>
> >     </constraint-set>
> >
> >     <constraint-set name="do-new-passwords-match">
> >         <validate name="newpass"/>
> >         <validate name="renewpass" equals-to-admin="newpass"/>
> >     </constraint-set>
> > </root>
> >
> > rgds,
> > martin man
> >
> > --
> > -------------------------------------------------------------------------------
> > "Only dead fish swims with a stream"
> > gpg_key_available: http://globales.cz/~mman/martin.man.gpg
> > gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 27 Apr 2001, giacomo wrote:

> I'm tiered applying patches from this Man :)
>
> How about applying it yourself?
>
> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
>
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
>
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
>
> Please your vote, committers.

+1 for both.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: [c2] [patch] validator action feature

Posted by Carsten Ziegeler <cz...@sundn.de>.
Allthough this vote is too late,
I want to complete it by a +1 for both.

Keep on your great work.

Carsten

> -----Ursprungliche Nachricht-----
> Von: giacomo [mailto:giacomo@apache.org]
> Gesendet: Freitag, 27. April 2001 22:13
> An: cocoon-dev@xml.apache.org
> Betreff: Re: [c2] [patch] validator action feature
> 
> 
> 
> I'm tiered applying patches from this Man :)
> 
> How about applying it yourself?
> 
> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
> 
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
> 
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
> 
> Please your vote, committers.
> 
> Giacomo
> 
> On Fri, 27 Apr 2001, Martin Man wrote:
> 
> > hi all,
> > 	attached is a patch that enables new functionality in form 
> and session
> > validator. it is a new way to specify which parameters to validate and
> > hopefully it cleans a little bit sitemap and introduces more 
> flexibile syntax
> > (comparsion of parameters and comparsion to strings is 
> possible, now just
> > specify what to implement more...)
> >
> > <map:act type="session-validator">
> >     <parameter name="descriptor" value="context://desc.xml"/>
> >     <parameter name="validate-set" value="is-logged-in"/>
> > </map:act>
> >
> > where desc.xml contains
> > <root>
> >     <parameter name="username" type="string" nullable="no"/>
> >     <parameter name="role" type="string" nullable="no"/>
> >
> >     <constraint-set name="is-logged-in">
> >         <validate name="username"/>
> >         <validate name="role"/>
> >     </constraint-set>
> >
> >     <constraint-set name="is-logged-in-admin-role">
> >         <validate name="username"/>
> >         <validate name="role" equals-to="admin"/>
> >     </constraint-set>
> >
> >     <constraint-set name="do-new-passwords-match">
> >         <validate name="newpass"/>
> >         <validate name="renewpass" equals-to-admin="newpass"/>
> >     </constraint-set>
> > </root>
> >
> > rgds,
> > martin man
> >
> > --
> > 
> ------------------------------------------------------------------
> -------------
> > "Only dead fish swims with a stream"
> > gpg_key_available: http://globales.cz/~mman/martin.man.gpg
> > gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by Davanum Srinivas <di...@yahoo.com>.
+1 for Martin Man.
+1 for Sylvain Wallez.

Thanks,
dims

--- giacomo <gi...@apache.org> wrote:
> 
> I'm tiered applying patches from this Man :)
> 
> How about applying it yourself?
> 
> I promote Martin Man as well as Sylvain Wallez as new commiters to the
> Cocoon project.
> 
> Martin Man is our Action Man contributing and patching alot of C2
> Actions.
> 
> Sylvain Wallez has made the XSP engine much more compact and also
> recently fixed some namespace issues.
> 
> Please your vote, committers.
> 
> Giacomo
> 
> On Fri, 27 Apr 2001, Martin Man wrote:
> 
> > hi all,
> > 	attached is a patch that enables new functionality in form and session
> > validator. it is a new way to specify which parameters to validate and
> > hopefully it cleans a little bit sitemap and introduces more flexibile syntax
> > (comparsion of parameters and comparsion to strings is possible, now just
> > specify what to implement more...)
> >
> > <map:act type="session-validator">
> >     <parameter name="descriptor" value="context://desc.xml"/>
> >     <parameter name="validate-set" value="is-logged-in"/>
> > </map:act>
> >
> > where desc.xml contains
> > <root>
> >     <parameter name="username" type="string" nullable="no"/>
> >     <parameter name="role" type="string" nullable="no"/>
> >
> >     <constraint-set name="is-logged-in">
> >         <validate name="username"/>
> >         <validate name="role"/>
> >     </constraint-set>
> >
> >     <constraint-set name="is-logged-in-admin-role">
> >         <validate name="username"/>
> >         <validate name="role" equals-to="admin"/>
> >     </constraint-set>
> >
> >     <constraint-set name="do-new-passwords-match">
> >         <validate name="newpass"/>
> >         <validate name="renewpass" equals-to-admin="newpass"/>
> >     </constraint-set>
> > </root>
> >
> > rgds,
> > martin man
> >
> > --
> > -------------------------------------------------------------------------------
> > "Only dead fish swims with a stream"
> > gpg_key_available: http://globales.cz/~mman/martin.man.gpg
> > gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [c2] [patch] validator action feature

Posted by giacomo <gi...@apache.org>.
I'm tiered applying patches from this Man :)

How about applying it yourself?

I promote Martin Man as well as Sylvain Wallez as new commiters to the
Cocoon project.

Martin Man is our Action Man contributing and patching alot of C2
Actions.

Sylvain Wallez has made the XSP engine much more compact and also
recently fixed some namespace issues.

Please your vote, committers.

Giacomo

On Fri, 27 Apr 2001, Martin Man wrote:

> hi all,
> 	attached is a patch that enables new functionality in form and session
> validator. it is a new way to specify which parameters to validate and
> hopefully it cleans a little bit sitemap and introduces more flexibile syntax
> (comparsion of parameters and comparsion to strings is possible, now just
> specify what to implement more...)
>
> <map:act type="session-validator">
>     <parameter name="descriptor" value="context://desc.xml"/>
>     <parameter name="validate-set" value="is-logged-in"/>
> </map:act>
>
> where desc.xml contains
> <root>
>     <parameter name="username" type="string" nullable="no"/>
>     <parameter name="role" type="string" nullable="no"/>
>
>     <constraint-set name="is-logged-in">
>         <validate name="username"/>
>         <validate name="role"/>
>     </constraint-set>
>
>     <constraint-set name="is-logged-in-admin-role">
>         <validate name="username"/>
>         <validate name="role" equals-to="admin"/>
>     </constraint-set>
>
>     <constraint-set name="do-new-passwords-match">
>         <validate name="newpass"/>
>         <validate name="renewpass" equals-to-admin="newpass"/>
>     </constraint-set>
> </root>
>
> rgds,
> martin man
>
> --
> -------------------------------------------------------------------------------
> "Only dead fish swims with a stream"
> gpg_key_available: http://globales.cz/~mman/martin.man.gpg
> gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org