[Zope-Checkins] CVS: Zope/skel/etc - zope.conf.in:1.18

Chris McDonough cvs-admin at zope.org
Fri Oct 31 03:00:34 EST 2003


Update of /cvs-repository/Zope/skel/etc
In directory cvs.zope.org:/tmp/cvs-serv20354/skel/etc

Modified Files:
	zope.conf.in 
Log Message:
Add <warnfilter> section, which allows you to configure Python warning filters in zope.conf.  Useful for suppressing the USELESS DeprecationWarnings that emanate from TALGenerator wrt i18n.


=== Zope/skel/etc/zope.conf.in 1.17 => 1.18 ===
--- Zope/skel/etc/zope.conf.in:1.17	Tue Oct 21 10:55:12 2003
+++ Zope/skel/etc/zope.conf.in	Fri Oct 31 03:00:25 2003
@@ -680,6 +680,51 @@
 #   </nteventlog-handler>
 # </logger>
 
+# Directive: warnfilter
+#
+# Description:
+#     A section that allows you to define a warning filter.
+#     The following keys are valid within a warnfilter section:
+#
+#      action:  one of the following strings:
+#
+#           "error"   turn matching warnings into exceptions
+#           "ignore"  never print matching warnings
+#           "always"  always print matching warnings
+#           "default" print the first occurrence of matching warnings
+#                     for each location where the warning is issued
+#           "module"  print the first occurrence of matching warnings
+#                     for each module where the warning is issued
+#           "once"    print only the first occurrence of matching
+#                     warnings, regardless of location
+#
+#      message:  a string containing a regular expression that the
+#                warning message must match (the match is compiled to
+#                always be case-insensitive)
+#
+#      category: a Python dotted-path classname (must be a subclass of
+#                Warning) of which the warning category must be a subclass in
+#                order to match
+#
+#      module:   a string containing a regular expression that the
+#                module name must match (the match is compiled to be
+#                case-sensitive)
+#
+#      lineno:   an integer that the line number where the warning
+#                occurred must match, or 0 to match all line numbers
+#
+#     All keys within a warnfilter section are optional.  More than
+#     one warnfilter section may be specified.
+#
+# Default: unset
+#
+# Example:
+#
+#    <warnfilter>
+#       action ignore
+#       category exceptions.DeprecationWarning
+#    </warnfilter>
+
 
 # Directive: max-listen-sockets
 #




More information about the Zope-Checkins mailing list