Re: [Zope-DB] Warnings from mxODBC in 2.8.5
Chris Withers wrote: > M.-A. Lemburg wrote: >> Well, given that in Zope 2.9.0 it also doesn't catch >> the following warning that you get on startup: >> >> /home/lemburg/zope/Zope-2.9.0/lib/python/App/ImageFile.py:21: >> DeprecationWarning: Using OFS.content_types is deprecated (will be >> removed in Zope 2.11). Instead use zope.app.contenttypes. >> from OFS.content_types import guess_content_type > > Did you put in a specific warn filter for this? Yes, one that's supposed to catch exceptions.DeprecationWarning (basically, I just uncommented the example in the zope.conf file). >> this doesn't sound surprising. Perhaps there's a bug >> in the Zope filter code ?! > > Well, the above was a bug that I think has already been fixed... > > I haven't seen it though, as it's only in 2.9 and we're using 2.8 -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 24 2006) >>> Python/Zope Consulting and Support ...http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
M.-A. Lemburg wrote: Well, given that in Zope 2.9.0 it also doesn't catch the following warning that you get on startup: /home/lemburg/zope/Zope-2.9.0/lib/python/App/ImageFile.py:21: DeprecationWarning: Using OFS.content_types is deprecated (will be removed in Zope 2.11). Instead use zope.app.contenttypes. from OFS.content_types import guess_content_type Did you put in a specific warn filter for this? this doesn't sound surprising. Perhaps there's a bug in the Zope filter code ?! Well, the above was a bug that I think has already been fixed... I haven't seen it though, as it's only in 2.9 and we're using 2.8 Our next version will only be available for Zope 2.7 onwards and will remove much of the old-style interface logic which we still have to keep around for backwards compatibility reasons. When's this due to land? Sorry, but we don't have an ETA yet. *sulk* ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
On Fri, 20 Jan 2006 08:27:25 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long deprecated 'methods' attribute. 'methods' will be ignored by install_product in Zope 2.10. Please use registerClass instead. DeprecationWarning) FWIW this also effects ZpsycopgDA (at least using 1.1.21) Charlie ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
Chris Withers wrote: > M.-A. Lemburg wrote: >> The warning filter should work for any Python code which >> issues these warnings, regardless of where and how it is >> defined. However, you'd have to register >> the filter early during Zope startup in order for it >> to be active by the time OFS.Application.py is imported. > > I'm using the warning filter stuff that zope.conf provides, it works for > all other products ,just not mxODBC. I wonder why? Well, given that in Zope 2.9.0 it also doesn't catch the following warning that you get on startup: /home/lemburg/zope/Zope-2.9.0/lib/python/App/ImageFile.py:21: DeprecationWarning: Using OFS.content_types is deprecated (will be removed in Zope 2.11). Instead use zope.app.contenttypes. from OFS.content_types import guess_content_type this doesn't sound surprising. Perhaps there's a bug in the Zope filter code ?! >>> Anyway, I guess this is mainly aimed at the eGenix people: is there a >>> version of mxODBC available which has these problems fixed? >> >> No. The reason is that the mxODBC Zope DA supports many old >> Zope versions (starting with Zope 2.3). > > *sigh* > >> Our next version will only be available for Zope 2.7 onwards >> and will remove much of the old-style interface logic which >> we still have to keep around for backwards compatibility >> reasons. > > When's this due to land? Sorry, but we don't have an ETA yet. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 23 2006) >>> Python/Zope Consulting and Support ...http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
On Mon, 23 Jan 2006 11:53:41 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: Charlie Clark wrote: You shouldn't worry too much! I'd just installed the FreeBSD port for 2.9.0 which was actually 2.8.5! Haha... okay, that just makes me even more scared of FreeBSD... Oh, it shouldn't! FreeBSD's ports are excellent and really easy to use. It was my mistake as I should have read the package information. I have reported the mislabelling to the maintainer. The current breakneck pace of Zope releases doesn't make it easy for companies like us providing Zope add-ons. The last couple of releases have all had minor changes in the architecture which have required changes to the mxODBCZopeDA for compatability. We are still waiting for the Windows binary version of Zope 2.9 before we release anything for it. Charlie ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
Charlie Clark wrote: You shouldn't worry too much! I'd just installed the FreeBSD port for 2.9.0 which was actually 2.8.5! Haha... okay, that just makes me even more scared of FreeBSD... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
On 23 Jan 2006, at 10:38, Charlie Clark wrote: On Mon, 23 Jan 2006 10:24:04 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: Charlie Clark wrote: Hi Chris, are you using Zope 2.8.5 or Zope 2.9.0 or are they the same thing? 2.8.5. I find the fact that you ask if 2.8.5 and 2.9.0 are the same thing quite scary... You shouldn't worry too much! I'd just installed the FreeBSD port for 2.9.0 which was actually 2.8.5! 2.9.0 is *not* 2.8.5. If you install ports from third parties who package the wrong thing that's an unrelated problem the packager needs to be made aware of. jens ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
On Mon, 23 Jan 2006 10:24:04 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: Charlie Clark wrote: Hi Chris, are you using Zope 2.8.5 or Zope 2.9.0 or are they the same thing? 2.8.5. I find the fact that you ask if 2.8.5 and 2.9.0 are the same thing quite scary... You shouldn't worry too much! I'd just installed the FreeBSD port for 2.9.0 which was actually 2.8.5! Charlie ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
M.-A. Lemburg wrote: The warning filter should work for any Python code which issues these warnings, regardless of where and how it is defined. However, you'd have to register the filter early during Zope startup in order for it to be active by the time OFS.Application.py is imported. I'm using the warning filter stuff that zope.conf provides, it works for all other products ,just not mxODBC. I wonder why? Anyway, I guess this is mainly aimed at the eGenix people: is there a version of mxODBC available which has these problems fixed? No. The reason is that the mxODBC Zope DA supports many old Zope versions (starting with Zope 2.3). *sigh* Our next version will only be available for Zope 2.7 onwards and will remove much of the old-style interface logic which we still have to keep around for backwards compatibility reasons. When's this due to land? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
Charlie Clark wrote: Hi Chris, are you using Zope 2.8.5 or Zope 2.9.0 or are they the same thing? 2.8.5. I find the fact that you ask if 2.8.5 and 2.9.0 are the same thing quite scary... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
On Fri, 20 Jan 2006 08:27:25 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: Have other people seen this? I tried adding a warning filter but it didn't have any effect. My only guess is becuase mxODBC ships only as .pyc files :- S Anyway, I guess this is mainly aimed at the eGenix people: is there a version of mxODBC available which has these problems fixed? Hi Chris, are you using Zope 2.8.5 or Zope 2.9.0 or are they the same thing? Charlie -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Warnings from mxODBC in 2.8.5
Chris Withers wrote: > Hi All, > > I get the following warnings from mxODBC on Zope 2.8.5: > > lib/python/OFS/Application.py:788: > DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long > deprecated '__ac_permissions__' attribute. '__ac_permissions__' will be > ignored by install_product in Zope 2.10. Please use registerClass instead. > DeprecationWarning) > lib/python/OFS/Application.py:803: > DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long > deprecated 'meta_types' attribute. 'meta_types' will be ignored by > install_product in Zope 2.10. Please use registerClass instead. > DeprecationWarning) > lib/python/OFS/Application.py:820: > DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long > deprecated 'methods' attribute. 'methods' will be ignored by > install_product > in Zope 2.10. Please use registerClass instead. > DeprecationWarning) > > Have other people seen this? > I tried adding a warning filter but it didn't have any effect. My only > guess is becuase mxODBC ships only as .pyc files :-S The warning filter should work for any Python code which issues these warnings, regardless of where and how it is defined. However, you'd have to register the filter early during Zope startup in order for it to be active by the time OFS.Application.py is imported. > Anyway, I guess this is mainly aimed at the eGenix people: is there a > version of mxODBC available which has these problems fixed? No. The reason is that the mxODBC Zope DA supports many old Zope versions (starting with Zope 2.3). Our next version will only be available for Zope 2.7 onwards and will remove much of the old-style interface logic which we still have to keep around for backwards compatibility reasons. Cheers, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jan 20 2006) >>> Python/Zope Consulting and Support ...http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db