Re: [Zope-dev] Adapter registration in ZCML provides IUserPreferredCharsets lost ?
Baiju M wrote: > On Mon, Jan 11, 2010 at 10:22 AM, Baiju M wrote: >> Hi All, >> There was an adapter registration provides IUserPreferredCharsets. >> I can see it has moved to zope.i18n.locales with some others here: >> http://svn.zope.org/zope.app.i18n/trunk/src/zope/app/i18n/configure.zcml?rev=98208&r1=95495&r2=98208 >> >> But, I cannot see it ever reached here ? >> http://svn.zope.org/zope.i18n/trunk/src/zope/i18n/locales/configure.zcml?rev=75140&view=log >> >> Can I add it there ? >> >> Instead of "zope.app.publisher.browser.ModifiableBrowserLanguages", >> I will use the new location: >> "zope.publisher.browser.ModifiableBrowserLanguages" > > This will make zope.publisher as dependency for zope.i18n, which may not be > a good idea. Please suggest me where we will move this ? I don't know exactly where to move this, but making zope.publisher a dep of zope.i18n would be bad. - C ___ 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] Adapter registration in ZCML provides IUserPreferredCharsets lost ?
On Mon, Jan 11, 2010 at 10:22 AM, Baiju M wrote: > Hi All, > There was an adapter registration provides IUserPreferredCharsets. > I can see it has moved to zope.i18n.locales with some others here: > http://svn.zope.org/zope.app.i18n/trunk/src/zope/app/i18n/configure.zcml?rev=98208&r1=95495&r2=98208 > > But, I cannot see it ever reached here ? > http://svn.zope.org/zope.i18n/trunk/src/zope/i18n/locales/configure.zcml?rev=75140&view=log > > Can I add it there ? > > Instead of "zope.app.publisher.browser.ModifiableBrowserLanguages", > I will use the new location: > "zope.publisher.browser.ModifiableBrowserLanguages" This will make zope.publisher as dependency for zope.i18n, which may not be a good idea. Please suggest me where we will move this ? Regards, Baiju M ___ 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] Adapter registration in ZCML provides IUserPreferredCharsets lost ?
Hi All, There was an adapter registration provides IUserPreferredCharsets. I can see it has moved to zope.i18n.locales with some others here: http://svn.zope.org/zope.app.i18n/trunk/src/zope/app/i18n/configure.zcml?rev=98208&r1=95495&r2=98208 But, I cannot see it ever reached here ? http://svn.zope.org/zope.i18n/trunk/src/zope/i18n/locales/configure.zcml?rev=75140&view=log Can I add it there ? Instead of "zope.app.publisher.browser.ModifiableBrowserLanguages", I will use the new location: "zope.publisher.browser.ModifiableBrowserLanguages" Regards, Baiju M ___ 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] Possible DateTime timezone-related regression in Zope 2.12
Laurence Rowe wrote: > 2010/1/10: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Martin Aspeli wrote: >>> Wichert Akkerman wrote: On 2010-1-10 04:36, Martin Aspeli wrote: > so in your test, `DateTime(md.CreationDate())` will always be > the current time, but with an implicitly added 'GMT+0' while > `DateTime()` will be the current time in your local time zone. > so if i'm not mistaken, on plone 4.0 the test with fail for you > an me (in 'GMT+x' time zones) and pass in the u.s. fun! :) > > Does anyone know if this change was deliberate, or what may > have happened? Have you looked at http://zope3.pov.lt/trac/log/Zope/trunk/lib/python/DateTime?rev=95999 >> for hints? >>> Yes, there are various timezone related changes, e.g. >>> >>> http://zope3.pov.lt/trac/changeset/81213/Zope/trunk/lib/python/DateTime >>> >>> >> http://zope3.pov.lt/trac/changeset/85830/Zope/trunk/lib/python/DateTime >>> It's hard to know whether this was an intended change or not, and >>> if so, how to deal with the breakage in a way that's compatible >>> with 2.10 and 2.12. >>> >>> I blame Laurence. :-p >> Better blame DateTime :-) >> Fixing one issue in DateTime is likely to trigger another new bug. >> The DateTime is just fragile. > > I believe the current behaviour is intentional to preserve backwards > compatibility. See the discussion starting here: > https://mail.zope.org/pipermail/zope-dev/2007-October/030042.html > > Maybe it was 'fixed' on 2.10 branch some time later. Sorry, just to be clear - which behaviour is correct? The 2.10 one or the 2.12 one? My vote would go for the 2.10 one - in the absence of timezone information, assume local timezone, not GMT. If we agree on that, is it clear what needs to be changed for this to work? Can we also agree that it's very bad for 2.10 and 2.12 to exhibit different behaviour here? Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ 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] Possible DateTime timezone-related regression in Zope 2.12
2010/1/10 : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin Aspeli wrote: >> Wichert Akkerman wrote: >>> On 2010-1-10 04:36, Martin Aspeli wrote: so in your test, `DateTime(md.CreationDate())` will always be the current time, but with an implicitly added 'GMT+0' while `DateTime()` will be the current time in your local time zone. so if i'm not mistaken, on plone 4.0 the test with fail for you an me (in 'GMT+x' time zones) and pass in the u.s. fun! :) Does anyone know if this change was deliberate, or what may have happened? >>> Have you looked at >>> http://zope3.pov.lt/trac/log/Zope/trunk/lib/python/DateTime?rev=95999 >>> >>> > for hints? >> >> Yes, there are various timezone related changes, e.g. >> >> http://zope3.pov.lt/trac/changeset/81213/Zope/trunk/lib/python/DateTime >> >> > http://zope3.pov.lt/trac/changeset/85830/Zope/trunk/lib/python/DateTime >> >> It's hard to know whether this was an intended change or not, and >> if so, how to deal with the breakage in a way that's compatible >> with 2.10 and 2.12. >> >> I blame Laurence. :-p > Better blame DateTime :-) > Fixing one issue in DateTime is likely to trigger another new bug. > The DateTime is just fragile. I believe the current behaviour is intentional to preserve backwards compatibility. See the discussion starting here: https://mail.zope.org/pipermail/zope-dev/2007-October/030042.html Maybe it was 'fixed' on 2.10 branch some time later. Laurence ___ 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
Summary of messages to the zope-tests list. Period Sat Jan 9 12:00:00 2010 UTC to Sun Jan 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: Sat Jan 9 20:37:13 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013353.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Sat Jan 9 20:39:13 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013354.html Subject: OK : Zope-2.12 Python-2.6.4 : Linux From: Zope Tests Date: Sat Jan 9 20:41:13 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013355.html Subject: OK : Zope-2.12-alltests Python-2.6.4 : Linux From: Zope Tests Date: Sat Jan 9 20:43:13 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013356.html Subject: OK : Zope-trunk Python-2.6.4 : Linux From: Zope Tests Date: Sat Jan 9 20:45:13 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013357.html Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux From: Zope Tests Date: Sat Jan 9 20:47:14 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-January/013358.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] Possible DateTime timezone-related regression in Zope 2.12
Wichert Akkerman wrote: > On 2010-1-10 04:36, Martin Aspeli wrote: >> so in your test, `DateTime(md.CreationDate())` will always be the >> current time, but with an implicitly added 'GMT+0' while `DateTime()` >> will be the current time in your local time zone. so if i'm not >> mistaken, on plone 4.0 the test with fail for you an me (in 'GMT+x' time >> zones) and pass in the u.s. fun! :) >> >> Does anyone know if this change was deliberate, or what may have happened? > > Have you looked at > http://zope3.pov.lt/trac/log/Zope/trunk/lib/python/DateTime?rev=95999 > for hints? Yes, there are various timezone related changes, e.g. http://zope3.pov.lt/trac/changeset/81213/Zope/trunk/lib/python/DateTime http://zope3.pov.lt/trac/changeset/85830/Zope/trunk/lib/python/DateTime It's hard to know whether this was an intended change or not, and if so, how to deal with the breakage in a way that's compatible with 2.10 and 2.12. I blame Laurence. :-p Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ 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] Possible DateTime timezone-related regression in Zope 2.12
On 2010-1-10 04:36, Martin Aspeli wrote: > so in your test, `DateTime(md.CreationDate())` will always be the > current time, but with an implicitly added 'GMT+0' while `DateTime()` > will be the current time in your local time zone. so if i'm not > mistaken, on plone 4.0 the test with fail for you an me (in 'GMT+x' time > zones) and pass in the u.s. fun! :) > > Does anyone know if this change was deliberate, or what may have happened? Have you looked at http://zope3.pov.lt/trac/log/Zope/trunk/lib/python/DateTime?rev=95999 for hints? Wichert. -- Wichert AkkermanIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ 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 )