Open-Wide/OWSimpleOperator — pull request #5 by brookinsconsulting (2014-09-28 22:29:29+00:00)
Title: Implemented: Added settings and code to provide for ini setting to disable debug output

Hello Open-Wide,

We have been working with your OWSimpleOperator extension more and more and have found another issue with the code which we wish to improve.

The problem
==========

We have found situations where we no longer wished to see the function calls and results from our template operator calls using OWSimpleOperator.

After some amount of time we finally decided to find out why there seemed to be no way to configure this behavior. We found that the class included a public variable of the OWSimpleOperator class which controlled this behavior.

The solution
==========

We extended this behavior by adding a class constructor method which enables or disables automatic debug output based on simple to manage ini settings.

We did not change the behavior of the code only it's configurability. Instead of class property manipulation we now provide ini settings based manipulation.

Backwards compatibility
==================

The automatic debug output is still enabled by default just like before our pull request.

This was done this way to maintain backwards compatibility for sites which already expect this feature to be enabled by default.

For sites which which to disable this output they now can make an ini setting file override and disable the automatic debug output using the [OWSimpleOperatorSettings] DebugOutput=disabled ini setting.

Closing
======

This is a big improvement to the current state of affairs. We hope you'll agree and accept this pull request.

These changes make using the OWSimpleOperator extension to use custom operators which do not cause debug output to become cluttered with operator calls and results debug output when you don't want them to do so.

Please let us know what you think of this new feature! We think it's great for all users of this extension! Especially in multi site configurations.

Cheers,
Brookins Consulting