From: Chris W. <ch...@cw...> - 2004-02-26 02:26:44
|
Here's the changelog for SPOPS 0.81 so far. The big change is ditching the awful debugging and implementing Log4perl everywhere. Did I miss anything? Otherwise I'll put this out in the next day or so. Chris ---------------------------------------- 0.81 Overall: * Use Log::Log4perl to do logging/debugging. All internal SPOPS classes, and the code generated by them, has been modified to use it. A script (eg/modify_debug_to_l4p.pl) is provided for you to convert your own code. * Modify slightly the default behavior for 'sql_quote()' as defined in SPOPS::SQLInterface. Nobody should notice... Individual: * SPOPS.pm: - Add a 'initialize_custom()' step to 'new()' to allow subclasses to do customization in the constructor. Thanks Simon! - Replace '_w()' and '_wm()' with calls to log4perl -- this is for backwards compatibility only; you should run eg/modify_debug_to_l4p.pl to get on the bandwagon * SPOPS/ClassFactory/DefaultBehavior.pm: - Fix a 'return' where the error message was truncated due to commas rather than period being used. Thanks to Simon for the spot. * SPOPS/ClassFactory/DBI.pm: - Fix a 'return' where the error message was truncated due to commas rather than period being used. Thanks to Simon for the spot. * SPOPS/DBI.pm: - Provide better error message from 'id_clause()' when we don't have any type information available. Thanks to Simon Ilyushchenko (si...@cs...) for the report. - For constructing group queries (fetch_group, fetch_iterator), add the class's table to the 'from' array if it's not already there. This allows you to specify join queries and 'assume' the class table will be added. - In save() only call pre_fetch_id() or post_fetch_id() if an ID is NOT ALREADY DEFINED. - Applied patch from Pawel Gajda to fix lazy loading problem. * SPOPS/DBI/([:driver:]).pm: - Get rid of all driver implementations of 'sql_quote()' since it's defined in SPOPS::SQLinterface and they were all using the same definition anyway. * SPOPS/HashFile.pm: - Don't dereference a hash, gets rid of warning many OI users saw since they upgraded to 5.8... * SPOPS/Loopback.pm: - Add a simple (!) ability for 'fetch_group' to parse the 'where' clause and use options from 'value' to substitute for a placeholder. * SPOPS/Manual/Configuration.pm: - Fix configuration typo (using 'publisher_link' instead of 'publisher_book' in links_to configuration). Thanks Simon! * SPOPS/Secure.pm: - Add warnings when our definitions of global_current_user and global_current_groups are found. * SPOPS/SQLInterface.pm: - Add to default 'sql_quote()' a check to see if the $value to be quoted is defined; if not use 'NULL'. Thanks to Simon for the report. Also, document the 'sql_quote()' method and make the new default to use the two-argument form of DBI->quote( $value, $type ). * SPOPS/Tool/DateConvert.pm: - When converting FROM an object TO a string (e.g., during a save()), if the given item isn't a reference then just return it, assuming it's a date in the right string format. * SPOPS/Tool/UTFConvert.pm: - Determine at runtime whether we're running in 5.6.0 or less or 5.6.1 or greater and use different encoding/decoding schemes as appropriate. (Thanks to the Arvato folks for providing the post-5.6.1 version...) |