2011-08-01  Roland Geider <roland.geider@intevation.de>

	* libmpuls/db/db.py: issue2241: quote the arguments passed to
	  psycopg2.connect, as it is done in mpulsweb/lib/db.py

2011-07-27  Roland Geider <roland.geider@intevation.de>

	* libmpuls/evaluation/evaluation.py: issue2277: add an index on ID on
	the tmp_eval table. This speeds up some evaluation queries
	considerably.

2011-06-07  Roland Geider <roland.geider@intevation.de>

	* libmpuls/evaluation/export.py: issue1304: fix sentence

2011-06-01  Roland Geider <roland.geider@intevation.de>

	* libmpuls/evaluation/export.py: issue1304: change the text describing
	  which cases will be evaluated

2011-05-30  Torsten Irländer <torsten.irlaender@intevation.de>

	* contrib/tagall.sh: Fixed tagall script. Do not create a KA list. 

2011-03-15  Roland Geider <roland.geider@intevation.de>

	* libmpuls/db/db.py: typo

2010-11-09  Roland Geider <roland.geider@intevation.de>

	* libmpuls/evaluation/export.py: issue1352: Typo

2010-10-25  Torsten Irlaender <torsten@intevation.de>

	* setup.py: Set version number to 0.4.7

2010-10-20  Torsten Irlaender <torsten@intevation.de>

	* contrib/tagall.sh: tagging config, port an list of dbs to be tagged
	can be given as parameter.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	Use one database connection for all tags when setting tags
	instead of opening a new connection for every tag id.

	* libmpuls/service/tags.py (TagSetter.perform): Open database
	connection here and pass it to add_tag and del_tag.
	(TagSetter.add_tag, TagSetter.del_tag): New parameter conn for the
	database connection.  Since there's only one connection for all
	tags now, be careful to rollback the transaction if setting a tag
	failed.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/db/db.py (DB.closeConnections): Call the close method
	of the connection object, not the boolean.  This was an error
	hidden by silencing exceptions.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/db/db.py (DB.recycleConnection, DB.closeConnections):
	Do not silently suppress exceptions that may hide actual bugs.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/db/db.py: Add missing import for the sys module.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/db/db.py (DB.getConnection): If an existing unused
	connection is found, return it, instead of incorrectly opening a
	new one.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/db/db.py: Adapt code formatting to MPuls conventions.
	Remove some commented out code.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/service/tags.py (GET_TAGS_SQL, GET_OLD_CASES)
	(GET_CASE_APPOINTMENTS, GET_GLOBAL_APPOINTMENTS): Removed.
	They're not used anywhere.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/service/tags.py: Remove unused imports.

2010-10-20  Bernhard Herzog  <bh@intevation.de>

	* libmpuls/service/tags.py: Adapt code formatting to MPuls
	conventions.

2010-06-18  Torsten Irländer <torsten.irlaender@intevation.de>

	* setup.py: Set version to 0.4.6

2010-06-03  Torsten Irländer <torsten.irlaender@intevation.de>

	* libmpuls/evaluation/evaluation.py (EvaluationSet): Added some
	  comments.
	* libmpuls/evaluation/config.py (EvaluationConfig.__init__): Changed
	docstring

2008-17-05 Torsten Irlaender <torsten.irlaender@intevation.de>

	* libmpuls/service/tags.py: Optionally provide login credentionals for
	the database on init of TagSetterConfig.

2008-11-04 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set version to 0.4.4

	* setup.py: Set version
	
2008-11-04 Torsten Irlaender <torsten.irlaender@intevation.de>

	Issue567

	* libmpuls/evaluation/export.py: Changed HTML and CSV Rendering to
	render german text and not english.

2008-10-23 Torsten Irlaender <torsten.irlaender@intevation.de>

	Modified default locations for tagging config file

	* contrib/tagall.sh,
	  tagd.py: Default location is now: /var/lib/postgresql/tagging.xml

2008-10-19 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added contrib scripts

	* contrib/checkdaemon.sh: Checks if the daemon is running. If not
	  start it
	* contrib/tagall.sh: Will try to tag all available databases.
	* contrib/tagd_init.d: Moved tagd_init.d

	Set version to 0.4.3

	* setup.py

2008-10-08 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set version to 0.4.2

	Added init script for tagd

	* tagd_init.d: Place in /etc/init.d/ as tagd

2008-10-06 Torsten Irlaender <torsten.irlaender@intevation.de>

	Modifiy perform function of the tagsetter. Now an optionally caseid
	parameter can be provided. This makes it possible to reuse the
	tagsetterconfig with other caseids (daemon-mode).

	* libmpuls/service/tags.py: new caseid param in perform function.

	Only reload XML-Config if database connection changes

	* tagd.py: Save taggingconfig while working on the same database.

	Set Version to 0.4.1

	* setup.py: Set Version

2008-10-05 Torsten Irlaender <torsten.irlaender@intevation.de>

	Issue505

	* libmpuls/evaluation/config.py,
	  libmpuls/service/tags.py: Changed master_tbl_view to
	  master_tbl_eval_total_view 

2008-09-30 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set Version to 0.4.0

	* setup.py: Set Version

	Added tagging deamon

	* tagd.py: New.

2008-09-29 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set Version to 0.3.2

	* setup.py: Set Version

	Allow emtpy datefields. 

	* libmpuls/evaluation/evaluation.py: If no datefields or dates are
	  provided the evaluation is done with all available cases. 
	* mpulseval.py: Code formating.

2008-09-25 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set Version to 0.3.1

	* setup.py: Set Version
	
2008-09-24 Torsten Irlaender <torsten.irlaender@intevation.de>

	Fixed some imports and encoding issues

	* libmpuls/evaluation/evaluation.py
	  mpulseval.py: Cleanup of imports.
	* libmpuls/evaluation/export.py: Fixed encoding issue on export.

2008-09-23 Torsten Irlaender <torsten.irlaender@intevation.de>

	Set Version to 0.3.0

	* setup.py: Set Version

2008-09-22 Torsten Irlaender <torsten.irlaender@intevation.de>

	Transformed try-except-finally statements to be python 2.4 compatible

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/service/tags.py,
	  mpulseval.py: Transformed Try-Except blocks.

	Replaced lxml-lib with standard python library

	* libmpuls/evaluation/config.py, 
	  libmpuls/service/tags.py:Replaced lxml

2008-09-16 Torsten Irlaender <torsten.irlaender@intevation.de>

	Implemented first version of trend anlyse evalutions

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py: Handle trend analysis if
	  configured in evaluation configuration 

	Fixed calculation in end dates in trend evaluations

	* libmpuls/evaluation/evaluation.py: Use last day of month as end date
	instead of first day of next month.

2008-09-15 Torsten Irlaender <torsten.irlaender@intevation.de>

	Determine field ids of gender in xsl tranformation as it differs from
	waska to wasko

	* libmpuls/evaluation/xslt/adele.xslls/libmpuls: dynamic fieldids.

	Write versions in XML header

	* libmpuls/__init__.py,
	  libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py: Write some information on versions
	  of the used components. This can be used to hopefully reproduce an
	  evaluation at any time.

2008-09-14 Torsten Irlaender <torsten.irlaender@intevation.de>
	Second version of percent calculation.

	* libmpuls/evaluation/export.py: HTML export now supports merged
	percent calulation over more than one xtable.

	Fixed implmentation of averange calculation

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py: Fixed calc of total avg.

2008-09-14 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added some info output if mapping could not be found. 

	* libmpuls/evaluation/config.py: info output.
	* libmpuls/evaluation/export.py: Improved code quality.

2008-09-11 Torsten Irlaender <torsten.irlaender@intevation.de>

	First version of percent calculation.

	* libmpuls/evaluation/export.py: HTML export now supports percent
	calculation.

2008-09-09 Torsten Irlaender <torsten.irlaender@intevation.de>

	Calc avg total when evaluating avg-values

	* libmpuls/evaluation/evaluation.py: Calc avg values.

2008-09-08 Torsten Irlaender <torsten.irlaender@intevation.de>

	Optionally define cases on which the tagging will be done

	* libmpuls/service/examples/config.xml,
	  libmpuls/service/tags.py,
	  mpulstags.py: Add optional --caseid parameter. Default is check all
	  cases.

2008-09-08 Torsten Irlaender <torsten.irlaender@intevation.de>

	Allow custom connections in mpuleval

	* libmpuls/db/db.py,
	  mpulseval.py,
	  mpulstags.py: Added more option to pulseval to allow custom
	  connections. 

2008-09-07 Torsten Irlaender <torsten.irlaender@intevation.de>

	Enable adele evaluations. Added support for mapping agency names. 

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py,
	  libmpuls/evaluation/xslt/adele.xsl,
	  mpulseval.py: Added new exporter to transform libmpuls xml into
	  adele-specifiv xml. Further added some more params to make adele
	  evaluations possible 

	Allow custom connections in mpulstags

	* libmpuls/db/db.py,
	  mpulstags.py: Read userdefined params and not only default values

2008-08-31 Torsten Irlaender <torsten.irlaender@intevation.de>

	Changed checks for minimum requirements of phases

	* libmpuls/evaluation/examples/config.xml,
	* libmpuls/evaluation/evaluation.py: Additionally to the old phase
	definition alternatively all allowed phases can be defined as a comma
	seperated list.

2008-08-28 Frank Koormann <frank.koormann@intevation.de>

	Improve robustness: Count results might be None.

	* libmpuls/evaluation/evaluation.py (EvaluationQuery._sum):
	Skip None count results.

2008-08-21 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added subselect as base for evaluations

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py: Optionally use subselects as base
	  fr evaluations instead of "master_tbl"

2008-08-20 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added logging and some doc

	* libmpuls/evaluation/config.py
	  libmpuls/evaluation/evaluation.py
	  libmpuls/evaluation/export.py
	  mpulseval.py

2008-08-19 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added simple Rendering for HTML and CSV

	* libmpuls/evaluation/export.py,
	  mpulseval.py: Simple Rendering on XML-Domtree.

2008-08-17 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added filtering for tags.

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/service/examples/config.xml: Filter by tags and phase

2008-07-08 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added new modul "service".

	* .hgignore,
	  libmpuls/evaluation/evaluation.py,
	  mpulseval.py,
	  libmpuls/db/__init__.py,
	  libmpuls/db/db.py,
	  libmpuls/evaluation/examples/config.xml: Moved DB in its own package
	  
	* setup.py,
	  libmpuls/evaluation/examples/config.xml,
	  libmpuls/service/__init__.py,
	  libmpuls/service/examples/config.xml,
	  libmpuls/service/tags.py,
	  mpulstags.py: Added a service to check the cases for defined
	  criteria (e.g old cases) and to add or delete tags. This lib can be
	  used in cronjobs to to the checks nightly.

2008-07-01 Torsten Irlaender <torsten.irlaender@intevation.de>

	Read out name and description from the config-xml

	* libmpuls/evaluation/config.py
	  libmpuls/evaluation/export.py

	Sum up all result rows of an evaluation to an additional "total"-row
	at the end if the result has more then one resultrow.

	* libmpuls/evaluation/evaluation.py

	Added dates to the where-clause. Support unicode data from the
	database

	* libmpuls/evaluation/config.py,
	  libmpuls/evaluation/db.py,
	  libmpuls/evaluation/export.py

2008-06-30 Torsten Irlaender <torsten.irlaender@intevation.de>

	Modified XML Output and XSL output

	* libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py,
	  libmpuls/evaluation/xslt/mako.xsl: Added new param 'id' and 'desc'
	  to evalset. Modified xsl output to generate the available exports.
	  Note that this rendering is specific for the mpuls server. Think
	  about moving this export into the server.

	Cleanup: Removed Mako-Export.

	* libmpuls/evaluation/export.py,
	  libmpuls/evaluation/xslt/mako.xsl: Mako export is to specific to be
	  included in the libmpuls.

2008-06-27 Torsten Irlaender <torsten.irlaender@intevation.de>

	Modified XML-Output

	* libmpuls/evaluation/export.py: Introduced new format for xml output.

	Added CSV-Export

	* config.xml,
	  libmpuls/evaluation/export.py,
	  mpulseval.py,
	  libmpuls/evaluation/xslt/csv.xsl: Added XSL-Style to export
	  evaluation results as CSV File.

	Added Mako-Export

	* libmpuls/evaluation/export.py,
	  libmpuls/evaluation/xslt/mako.xsl: Added XSLT-Style to export
	  evaluation results as Mako-snippet. These snippets are intended to
	  be used by the mpuls-ng server for further processing.

2008-06-26 Torsten Irlaender <torsten.irlaender@intevation.de>

	Added XML Export of an evaluationset

	* libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py,
	  mpulseval.py: Added new format of XML Format for evaluation sets.

	Adding some documentation

	* libmpuls/evaluation/evaluation.py, 
	  libmpuls/evaluation/export.py,
	  mpulseval.py: Added some epydoc strings

2008-06-26 Torsten Irlaender <torsten.irlaender@intevation.de>

	Initial creation of the libmpuls

	* .hgignore,
	  Changelog,
	  config.xml,
	  libmpuls/__init__.py,
	  libmpuls/evaluation/__init__.py,
	  libmpuls/evaluation/config.py,
	  libmpuls/evaluation/db.py,
	  libmpuls/evaluation/evaluation.py,
	  libmpuls/evaluation/export.py,
	  mpulseval.py,
	  setup.py: Adding files
