Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Dependencies of zope.error

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


tl at gocept

Sep 24, 2009, 7:59 AM

Post #1 of 5 (706 views)
Permalink
Dependencies of zope.error

- The last release of zope.error doesn't have all dependencies declared
while work has been done on the trunk to fix that. Is there a specific
reason why no new release has been made since?

- zope.error depends on zope.container solely in order for the error
reporting utility to be able to subclass Contained, which in turn calls
itself a silly mix-in class. Also, zope.error makes no use of the fact
that the utility is Contained. Should the Contained support be dropped
or somehow made conditional on whether zope.container is available?

- zope.error depends on zope.publisher which is only used by the tests in
order to provide a request object from which to read some information
for the error log. However, the code that reads that information is
rather liberal as to what the request actually is, and doesn't
technically require it to be a zope.publisher HTTP request. I think this
should be made more consistent by either making the error logging code
stricter or using a minimal request object in the tests. Opinions?

Cutting the dependency on zope.container would drop the total number of
dependencies of zope.error (trunk) from 30 to 22, additionally cutting the
dependency on zope.publisher would make it 10.

--
Thomas



_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 )


tseaver at palladion

Sep 24, 2009, 9:18 AM

Post #2 of 5 (655 views)
Permalink
Re: Dependencies of zope.error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Lotze wrote:

> - The last release of zope.error doesn't have all dependencies declared
> while work has been done on the trunk to fix that. Is there a specific
> reason why no new release has been made since?

Likely somebody thought there was remaining work to be done.

> - zope.error depends on zope.container solely in order for the error
> reporting utility to be able to subclass Contained, which in turn calls
> itself a silly mix-in class. Also, zope.error makes no use of the fact
> that the utility is Contained. Should the Contained support be dropped
> or somehow made conditional on whether zope.container is available?

+1 for dropping Contained. +0 for making it conditional.

> - zope.error depends on zope.publisher which is only used by the tests in
> order to provide a request object from which to read some information
> for the error log. However, the code that reads that information is
> rather liberal as to what the request actually is, and doesn't
> technically require it to be a zope.publisher HTTP request. I think this
> should be made more consistent by either making the error logging code
> stricter or using a minimal request object in the tests. Opinions?

+sys.maxint to using a mock request object, and dropping the dependency.

> Cutting the dependency on zope.container would drop the total number of
> dependencies of zope.error (trunk) from 30 to 22, additionally cutting the
> dependency on zope.publisher would make it 10.

Good start. :)



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

iD8DBQFKu5vQ+gerLs4ltQ4RAn5CAKDIjWV6uvab7OovMLhT5PyWFpiqjQCfexGA
l3OgzZSLpYK76z66+wC+edw=
=qHFX
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 )


tl at gocept

Sep 28, 2009, 1:08 AM

Post #3 of 5 (620 views)
Permalink
Re: Dependencies of zope.error [In reply to]

Tres Seaver wrote:

>> - zope.error depends on zope.container solely in order for the error
>> reporting utility to be able to subclass Contained, which in turn
>> calls itself a silly mix-in class. Also, zope.error makes no use of
>> the fact that the utility is Contained. Should the Contained support
>> be dropped or somehow made conditional on whether zope.container is
>> available?
>
> +1 for dropping Contained. +0 for making it conditional.

I've dropped the dependency on the Contained mix-in class but not the fact
of the utility being contained: it now implements
zope.location.interfaces.ILocation directly. This means I've dropped the
package dependency on zope.container but kept one on zope.location.

> +sys.maxint to using a mock request object, and dropping the dependency.

Done.

I think I'll release the current zope.error later today so people get the
benefit of the lighter dependencies.

--
Thomas



_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 )


faassen at startifact

Sep 29, 2009, 4:12 AM

Post #4 of 5 (614 views)
Permalink
Re: Dependencies of zope.error [In reply to]

Hey,

Thomas Lotze wrote:
[snip]

> I think I'll release the current zope.error later today so people get the
> benefit of the lighter dependencies.

Given you access to this too. :)

Regards,

Martijn



_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 )


tl at gocept

Sep 29, 2009, 4:33 AM

Post #5 of 5 (633 views)
Permalink
Re: Dependencies of zope.error [In reply to]

Martijn Faassen wrote:

Thomas Lotze wrote:
>> I think I'll release the current zope.error later today so people get
>> the benefit of the lighter dependencies.
>
> Given you access to this too. :)

Thank you, I've just made the release.

--
Thomas



_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.