Re: [Zope-dev] Decimal validation error.

2010-02-10 Thread Mats Nordgren
Seems a plain vanilla install of bluebream validates decimals fine with
zope.app.form.  Does z3c.form validate decimal fields or is that delegated
to zope.schema?

On Wed, Feb 10, 2010 at 8:27 AM, Mats Nordgren  wrote:

> I have an interface with a decimal field.  It validates fine for 1,2 and 3
> fractions but if I enter a decimal with 4 fractions I get validation error
> "The entered value is not a valid decimal literal."
>
> I'm using the pypi release of bluebream and z3c.form 2.3.2.
>
> Mats
>
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.12 and Globals.DevelopmentMode

2010-02-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sylvain Viollon wrote:
> On Sat, 06 Feb 2010 02:14:07 -0500
> Tres Seaver  wrote:
> 
>Hello,
> 
>> There was never any guarantee that Globals would be fully popluated
>> before the start of product initialization:  third-party code needs to
>> defer checking that flag at "import" time (which is the point of the
>> pattern Hanno outlines).
>>
>> An even better pattern would probably be to avoid the Globals "dumping
>> ground" altogether and use the configuration object directly:
>>
>>   from App.config import getConfiguration
>>   config = getConfiguration()
>>   if config.debug_mode:
>>  
>>
> 
>As matter of fact I tried that. And it always returned False
>(that's why I posted that mail at first). I have to review my setup,
>to see if there is something wrong, before I can continue to argue.
> 
>I am using buildout and plone.recipe.zope2instance.

That sounds as though you grabbed the configuration "early" (before
startup has loaded it from the config file / command line options).  You
*can't* to this at module scope, because your module may be imported
before the initialization has been done.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkty4icACgkQ+gerLs4ltQ4a/QCeIXRVUIg4ib7m0yOj2lWP21XI
pMYAn0V7pQ7x0hVGn1eRXLAd1NfHuoh7
=EUxK
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Decimal validation error.

2010-02-10 Thread Mats Nordgren
I have an interface with a decimal field.  It validates fine for 1,2 and 3
fractions but if I enter a decimal with 4 fractions I get validation error
"The entered value is not a valid decimal literal."

I'm using the pypi release of bluebream and z3c.form 2.3.2.

Mats
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] No license distributed with sources

2010-02-10 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2/10/10 15:53 , Lennart Regebro wrote:
> On Tue, Feb 9, 2010 at 08:19, Marius Gedminas  wrote:
>> Well, technically I suppose we're all violating the law by not following
>> the ZPL requirement of keeping the licence text next to the files it
>> covers when we redistribute them.  It's unlikely for the Zope Foundation
>> to sue any of us, thankfully.
> 
> Oh, you just wait, if I get elected to the board there is gonna be HELLFIRE!
> 
> No, seriously, sticking a copy in each package as a part of the big
> header update seems a good idea.

+1 on that. Even if adding the file is inappropriate (e.g. because a
license file already exists) the checkin will alert the respective
package developers to the change and they can fix that if needed.

jens

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

iEYEARECAAYFAkty1asACgkQRAx5nvEhZLLmkQCglk/A9Y2R2f+iF545K+ZgcNZt
Wr8An2TycG6VII2yIYguAw3g5WSaLeHe
=6Gm/
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] No license distributed with sources

2010-02-10 Thread Lennart Regebro
On Tue, Feb 9, 2010 at 08:19, Marius Gedminas  wrote:
> Well, technically I suppose we're all violating the law by not following
> the ZPL requirement of keeping the licence text next to the files it
> covers when we redistribute them.  It's unlikely for the Zope Foundation
> to sue any of us, thankfully.

Oh, you just wait, if I get elected to the board there is gonna be HELLFIRE!

No, seriously, sticking a copy in each package as a part of the big
header update seems a good idea.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 6 OK

2010-02-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Feb  9 12:00:00 2010 UTC to Wed Feb 10 12:00:00 2010 UTC.
There were 6 messages: 6 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Feb  9 20:36:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013539.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Tue Feb  9 20:38:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013540.html

Subject: OK : Zope-2.12 Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Feb  9 20:40:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013541.html

Subject: OK : Zope-2.12-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Feb  9 20:42:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013542.html

Subject: OK : Zope-trunk Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Feb  9 20:44:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013543.html

Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux
From: Zope Tests
Date: Tue Feb  9 20:46:42 EST 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013544.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.12 and Globals.DevelopmentMode

2010-02-10 Thread Sylvain Viollon
On Sat, 06 Feb 2010 02:14:07 -0500
Tres Seaver  wrote:

   Hello,

> 
> There was never any guarantee that Globals would be fully popluated
> before the start of product initialization:  third-party code needs to
> defer checking that flag at "import" time (which is the point of the
> pattern Hanno outlines).
> 
> An even better pattern would probably be to avoid the Globals "dumping
> ground" altogether and use the configuration object directly:
> 
>   from App.config import getConfiguration
>   config = getConfiguration()
>   if config.debug_mode:
>  
> 

   As matter of fact I tried that. And it always returned False
   (that's why I posted that mail at first). I have to review my setup,
   to see if there is something wrong, before I can continue to argue.

   I am using buildout and plone.recipe.zope2instance.

   Regards,

   Sylvain,


-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )