Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [propel] Validator Classes

propel
Discussion topic

Back to topic list

Re: [propel] Validator Classes

Reply

Author Matthew Glubb <matt at zgroupplc dot com>
Full name Matthew Glubb <matt at zgroupplc dot com>
Date 2006-02-10 07:31:15 PST
Message -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Hans,

I've noticed that the validator schema problem seems only to exist in
the xsd doc. This patch should fix it although you might want to
think about whether you want to add a new 'class' enumeration value
for the name attribute. Once the patch has been applied, custom
validators are called successfully:

Index: database.xsd
====================​====================​====================​=======
- --- database.xsd (revision 333)
+++ database.xsd (working copy)
@@ -123,6 +123,7 @@
                         <xs:enumeration value="validValues"/>
                         <xs:enumeration value="notMatch"/>
                         <xs:enumeration value="match"/>
+ <xs:enumeration value="class"/>
                 </xs:restriction>
         </xs:simpleType>
@@ -207,6 +208,7 @@
                 <xs:attribute name="value" type="xs:string"
use="optional"/>
                 <xs:attribute name="size" type="xs:positiveInteger"
use="optional"/>
                 <xs:attribute name="message" type="xs:string"
use="optional"/>
+ <xs:attribute name="class" type="xs:string"
use="optional"/>
         </xs:complexType>
         <xs:complexType name="id-method-parameter">

Regards,

Matt


On 10 Feb 2006, at 15:23, Hans Lellelid wrote:

> Yeah, that should work well once this is done. I'm using
> Chiara_PEAR_Server to manage the packages. The only slightly painful
> part so far is changing the configuration to use Postgres instead of
> Mysql. I used Propel to convert the db to postgres ;)
>
> Hans
>
> David Z├╝lke wrote:
>> PEAR channels are _so_ cool, especially because we can have dev
>> versions
>> installable through them (if I'm not mistaken, that is). People will
>> love that.
>>
>> - David
>>
>>
>>
>> Am 10.02.2006 um 16:07 schrieb Hans Lellelid:
>>
>>> Yes, I would recommend everyone using SVN version for anything other
>>> than development / playing around use 1.2 branch at this point. The
>>> fixes from 1.2 will get merged into TRUNK, but there will be
>>> other more
>>> drastic changes happening to trunk in the near future (once we
>>> get done
>>> with the infrastructure changes & get the new release out).
>>>
>>> I hope to release 1.2 this weekend. I'm working on setting up PEAR
>>> channels for these projects now to make it easier to install -- and
>>> easier to managing the (Phing + Creole) dependencies.
>>>
>>> Hans
>>>
>>> Matthew Glubb wrote:
>>>> Hi Hans,
>>>>
>>>> Am I safer checking out 1.2 rather than trunk then?
>>>>
>>>> Matt
>>>>
>>>> On 10 Feb 2006, at 14:29, Hans Lellelid wrote:
>>>>
>>>>>> Hi Matt,
>>>>>>
>>>>>> Sorry -- that is in branches/1.2 (which is currently more up-
>>>>>> to-date
>>>>>> than trunk since bugs are being fixed there)
>>>>>>
>>>>>> Hans
>>>>>>
>>>>>> Matthew Glubb wrote:
>>>>>>> Hi Hans,
>>>>>>>
>>>>>>> Thanks for the reply. in the current svn version of propel
>>>>>>> generator and
>>>>>>> runtime the string 'propel.schema.validate' doesn't exist
>>>>>>> anywhere, let
>>>>>>> alone default.properties:
>>>>>>>
>>>>>>> <http://propel.phpdb.​org/trac/browser/tru​nk/generator/
>>>>>>> default.properties>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Matt
>>>>>>>
>>>>>>> On 10 Feb 2006, at 13:35, Hans Lellelid wrote:
>>>>>>>
>>>>>​>>>> This sounds like a bug. I'll look into it.
>>>>>​>>>>
>>>>>​>>>> http://propel.phpdb.​org/trac/ticket/196
>>>>>​>>>>
>>>>>​>>>> You can disable validation as a workaround (see recent list
>>>>>​>>>> message
>>>>>​>>>> about optional validation, or take a look at the
>>>>>​>>>> propel.schema.validate
>>>>>​>>>> property in default.properties).
>>>>
>>>>
>>>>
>>>> m a t t h e w g l u b b
>>>>
>>>> ____________________​____________________​____________________​_______
>>>> _____
>>>> Z Group PLC
>>>>
>>>> Tel: +44 (0) 8700 111 173
>>>> Fax: +44 (0) 8707 051 393
>>>> Txt: +44 (0) 7800 140 877
>>>> Web: <http://www.zgroupplc.com/>
>>>>
>>>> PLEASE NOTE ZGROUP IS NOT LIABLE FOR ANY DAMAGES, MALFUNCTION,
>>>> OR LOSS
>>>> OF DATA, CAUSED AS A RESULT OF FOLLOWING ANY ADVICE ENCLOSED
>>>> IN THIS
>>>> EMAIL. ANY CHANGES SHOULD BE CARRIED OUT AT YOUR OWN RISK.
>>>>
>>>> This email and any files transmitted with it are
>>>> confidential and
>>>> intended solely for the use of the individual or entity to whom
>>>> they are
>>>> addressed. The opinions expressed in this mail are those of
>>>> the author
>>>> and do not necessarily represent the views of the company. If
>>>> you have
>>>> received this email in error please notify <service at zgroupplc dot com>
>>>>
>>>>
>>>>
>>>
>>> --------------------​--------------------​--------------------​--------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@pr​opel.tigris.org
>>> For additional commands, e-mail: users-help at propel dot tigris dot org
>>>
>>>
>>>
>>> --------------------​--------------------​--------------------​--------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@pr​opel.tigris.org
>>> For additional commands, e-mail: users-help at propel dot tigris dot org
>>>
>>>
>>
>>
>> --------------------​--------------------​--------------------​---------
>> To unsubscribe, e-mail: users-unsubscribe@pr​opel.tigris.org
>> For additional commands, e-mail: users-help at propel dot tigris dot org
>>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@pr​opel.tigris.org
> For additional commands, e-mail: users-help at propel dot tigris dot org
>



m a t t h e w g l u b b

____________________​____________________​____________________​____________
Z Group PLC

Tel: +44 (0) 8700 111 173
Fax: +44 (0) 8707 051 393
Txt: +44 (0) 7800 140 877
Web: <http://www.zgroupplc.com/>

PLEASE NOTE ZGROUP IS NOT LIABLE FOR ANY DAMAGES, MALFUNCTION, OR LOSS
OF DATA, CAUSED AS A RESULT OF FOLLOWING ANY ADVICE ENCLOSED IN THIS
EMAIL. ANY CHANGES SHOULD BE CARRIED OUT AT YOUR OWN RISK.

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. The opinions expressed in this mail are those of the author
and do not necessarily represent the views of the company. If you have
received this email in error please notify <service at zgroupplc dot com>



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD7LHHyI6MkdKP​ngkRAnGFAKCdLe4YODEP​fUXsSS+BgeGinSW90ACf​a7Bs
Wb9TISnLR4IedDT/BWygYMM=
=mIU1
-----END PGP SIGNATURE-----

« Previous message in topic | 10 of 17 | Next message in topic »

Messages

Show all messages in topic

Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 04:47:25 PST
     Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 05:35:00 PST
         Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 06:23:09 PST
             Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 06:29:51 PST
                 Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 06:35:50 PST
                     Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 07:07:42 PST
                         Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 07:14:39 PST
                         Re: [propel] Validator Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-02-10 07:18:00 PST
                             Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 07:23:35 PST
                                 Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 07:31:15 PST
                                     Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 07:42:43 PST
                                     Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 07:45:10 PST
                                         Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 07:51:35 PST
                                             Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-10 07:53:52 PST
                                                 Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 08:06:44 PST
                                                     Re: [propel] Validator Classes Matthew Glubb <matt at zgroupplc dot com> Matthew Glubb <matt at zgroupplc dot com> 2006-02-10 08:22:17 PST
                                                         Re: [propel] Validator Classes hlellelid Hans Lellelid 2006-02-15 06:09:35 PST
Messages per page: