]> git.decadent.org.uk Git - maypole.git/blob - Changes
adcab975e541a4eb7a22cd6222b0bd4786b9269a
[maypole.git] / Changes
1 This file documents the revision history for Perl extension Maypole.
2 For information about current developments and future releases, see:
3     http://maypole.perl.org/?TheRoadmap
4
5 2.12  22 June 2007
6    Fixed some db_colinfo test bugs
7    Fixed typo in edit form template
8    Inheritence simpler and nicer and less hacked
9    add_model_superclass method moves @ISA munging into the model
10    new Class::DBI::DFV based model
11    new test to check everything compiles
12    Model inheritance re-organised
13    New config method : additional, for stashing additional info, especially from additional_data method
14    new warn method in maypole/request class/object, over-ridden by Apache::MVC, etc or own driver
15    AsForm fixes to stringification _to_select 
16    new build_form_elements attribute for Maypole request and Maypole::Config, set it to 0 to avoid building cgi form if you don't need it
17    made DFV and FromCGI warn instead of die on unexpected cgi params
18    added CGI params to TT error template
19    small improvements to some factory templates
20    fix to path handling in mod_perl and CGI when location ends in /
21    fixed template path ordering so i.e. /tablename/list is used before /list when provided with a tablename
22    fixed template path with array refs
23    fix to template being reset from path in plain templates (i.e. where no model), may affect those relying on the bug ( bug 23722 )
24    added search_columns method to base cdbi model class, provides display_columns unless over-ridden
25    fix to display_line macro in factory templates (bug 22920)
26    fix to correct problem with LocationMatch and regex based Location directives in apache config.
27    change to view::base to only call display_columns,  stringify_columns, to_cgi if model class can
28    changed template path to only look for custom, factory, etc on first/only path provided
29    fix to redirect_request
30    Fixed typo in _do_update_or_create (bug 26495)
31    added new hook - preprocess_location
32    added new attribute to Maypole::Config - request_options
33    improved pager template macro
34
35 2.111 Mon 30 April 2007
36    - forked - see 2.111 changelog
37
38 2.11 Mon 31 July 2006
39
40 SVN revision 519
41
42 Deprecated:
43     Directly accessing the attributes of the request object, or the parameters 
44     in $r->params, or anything else, is DEPRECATED and likely to break in future 
45     releases. Be good, and use proper method calls.
46
47     Maypole no longer uses Class::DBI::AsForm, instead Maypole::Model::CDBI::AsForm
48     has replaced it.
49
50     $config->{$table}{required_cols} is deprecated, please use $class->required_columns instead
51
52
53 Incompatible API changes:
54     Maypole
55          - is_applicable() deprecated for is_model_applicable(). is_applicable is
56          an alias for is_model_applicable now.
57     Maypole::Constants
58          - ERROR constant now 500, previously -1 (bug #18901)
59     Maypole::Model
60         - delete and search actions are now deprecated - use do_search and do_delete
61           instead
62     Maypole::View
63         - table name rather than moniker is used to find templates
64
65 API additions and enhancements:
66     Maypole::Application:
67         - -Init flag (wishlist 14123)
68         - recognises Maypole::HTTPD and installs Maypole::HTTPD::Frontend
69             as its frontend
70     Maypole::Headers:
71         add() alias to push() (wishlist 14142)
72     Maypole:
73         - get_session() method (no-op)
74         - get_user() method (no-op)
75         - get_session() is called during handler_guts() before authenticate()
76         - new preprocess_path() method added and called by parse_path(), 
77                 parse_path() will leave any properties set by preprocess_path() in 
78             place
79         - start_request_hook() added
80         - status() attribute added (though only used by start_request_hook() 
81             so far)
82         - setup() split into setup(), setup_model(), and load_model_subclass()
83         - added new path processing methods for ssl and default table/action
84         - added make_path() 
85         - added make_uri()
86         - improved exception handling
87         - now uses File::MMagic::XS to guess mime type of output unless already set
88         - new component method provides Maypole::Component functionality
89         - new object method gets/sets first/only object in objects
90      Maypole::Model
91         - do_delete, do_search in place of delete/search actions
92      Maypole::View::TT:
93         - new report_error method
94         - new embedded error report page in __DATA__
95      Templates:
96         - Improved pager macro/include
97         - Improved factory templates
98         - added the status() attribute, although it's not used in many places 
99             yet
100         - Changed factory edit/view to use object instead of objects
101      Maypole::Model::CDBI
102         - improved error messages in do_edit action
103         - new required_columns mutator method
104         - new column_required accessor method
105
106 Bug fixes:
107     Fix to cgi_maypole.t (bug 11346)
108     Fix to TT error reporting (bug 13991)
109     Template xhtml validation (bug 13975)
110     Apache2 fixes in Apache::MVC (bug 13888)
111     Fixed inheritance issues in Mp::Application - Mp::App now manipulates the 
112         caller's @ISA directly, and doesn't inject itself into the chain (bugs 
113         12923 & 14120)
114     Improved Template error reporting (14133)
115     Maypole::Session::generate_unique_id() now returns the id (bug 14124)
116     Moved ar accessor to Apache::MVC (bug 14014)
117     Refactored core to support further development in 2.11 and onwards
118     Fixed related_class() method (bug 14566)
119     Added a cgi() attribute in Maypole::CGI
120     Factory templates now less vulnerable to XSS (bug 16659)
121     Reduced risk of XSS in factory templates (bug 16659)
122     model search/delete methods in model and subclassing the cdbi mode (bug 16661)
123     fixed problems with stringify_self and untaint missing ignore columns (bug 15678)
124     fixed Maypole::Model::CDBI::Plain to JustWork(TM) with plain CDBI Classes (bug 16977)
125     some silent death scenarios resolved
126         Now initializes template_args, stash, parmas, objects and others to correct data type. (bug 15147)
127
128 Documentation:
129     Fix to documentation for CGI::Maypole (bug 7263)
130     Simplified Net::Amazon example (bug 14073)
131     Numerous major and minor updates to docs.
132     Renamed Maypole::Manual::Request to Maypole::Manual::Cookbook
133         Added Maypole::Manual::Install, with material removed from 
134             Maypole::Manual::About
135         Added Maypole::Manual::Inheritance
136         Added Maypole::Manual::Terminology
137         - updated Maypole::Manual::View
138         - updated Maypole::View:TT
139     Examples of fancy forms and templates using new features
140
141 Requirements:
142    HTTP::Body now required
143    CGI::Untaint >= 1.26 now required rather than >= 0
144
145
146 2.10 Tue 19 Jul 2005
147     Multiple Template Paths added ( http://rt.cpan.org/NoAuth/Bug.html?id=13447 )
148     Small fix to templates/factory/frontpage ( http://rt.cpan.org/NoAuth/Bug.html?id=11236 )
149     MasonX support in Maypole::Application ( https://rt.cpan.org/NoAuth/Bug.html?id=12383 )
150     Maypole::Model::CDBI::Plain / Maypole Config issue ( http://rt.cpan.org/NoAuth/Bug.html?id=11530 )
151     Repeat Submission detection support ( Bug #6500 )
152     Fix to setup_database in Maypole::Model::CDBI ( Bug #12384 )
153     Fix to plugin to allow Maypole::Plugin::Config::YAML to work
154     Fix to Maypole::Model::CDBI order sub from list
155     Improvement to primary display column using CDBI
156     Improved efficiency of finding stringified columns using new classmetadata field
157     Fixed BeerDB to untaint pub fields
158
159     Additional Requirements : Digest::MD5
160
161 2.09  Mon Jan 25 22:00:00 2005
162     Fixes:
163     - Fixed plugin inheritance set up by Maypole::Application, added tests
164
165     Templates:
166     - factory/addnew will only prefill values when there's a row creation error
167
168
169 2.08  Mon Jan 24 20:45:00 2005
170     - Added $r->config->template_extension() to set optional file extension
171       for templates (Dave Howorth)
172
173     Fixes:
174     - Maypole::Application adds plugin classes to caller's @ISA (Marcus Ramberg)
175     - FETCH_CODE_ATRIBUTES in M::M::Base should return an empty list if there
176       are no attributes
177     - M::M::CDBI will warn() about Class::DBI::FromCGI errors
178     
179
180 2.07  Sun Jan 16 18:45:00 2005
181     (This version was not uploaded to CPAN)
182
183     Internal changes:
184     - Removed Maypole::Model->description. It didn't work as expected and
185       clashed with 'description' columns in the database
186
187     Fixes:
188     - Model->process() shouldn't set $r->objects() to a list with a single,
189       undefined element
190     - Fixed overriding $r->template_args->{classmetadata} in M::V::Base
191       (Thanks to Dave Howorth for spotting the mistake)
192     - #9473: Maypole::Model::CDBI->related_class (Thanks David Baird)
193     - #9434: M::M::CDBI->search generated "uninitialized value" warnings
194
195     Templates:
196     - The addnew template will attempt to prefill form fields with request
197       parameters
198     - edit template includes 'addnew' if there is no object to edit
199
200 2.06  Wed Dec 29 01:30:00 2004
201     Fixes:
202     - Minor restructuring of the manual so search.cpan.org indexes it better
203     - #9129: Skip t/apache_mvc.t if Apache::Request isn't installed
204     
205
206 2.05  Fri Dec 24 03:20:00 2004
207     - Revised and updated documentation. Many thanks to Dave Howorth for his
208       hard work and 120kb documentation patches.
209     - Added support for request and response HTTP headers with
210       $r->headers_in & $r->headers_out (Maypole::Headers)
211     - Support for compound primary keys for Maypole::Model::CDBI classes
212     - Template toolkit objects are configurable with M::Config->view_options
213     - Templating performance should be improved when running Maypole with
214       mod_perl since compiled templates remain in memory. CGI users can use
215       TT2's COMPILE_DIR or COMPILE_EXT options with
216       Maypole::Config->view_options to improve performance
217
218     Internal changes:
219     - Added a new override for the model: fetch_objects(). 
220     - 'classmetadata' template variables can now be overriden individually
221     - New unit tests for Maypole, CGI::Maypole, Maypole::Headers, and others.
222       More to come.
223
224     Fixes:
225     - Maypole::CLI is more tolerant of trailing slashes in the request/uri_base
226     - fixed a bug in CGI::Maypole::parse_location() (Dave Howorth)
227     - Also applied that fix to Apache::MVC (Marcus Ramberg)
228     - some fixes for Maypole::Config, Maypole::Model::Base and
229       Maypole::Model::CDBI::Plain (Dave Howorth)
230     - Documented adding new accessors to Maypole::Config
231     - Added Apache::RequestIO to Apache::MVC (michael#diaspora.gen.nz)
232     - Applied patch to fix length of utf8 documents.
233     - support compound primary keys in CDBI fetch_objects.
234     - Check if has_a actually points to a Maypole::Model (Dave Howorth)
235     - Make test suite work with DBD::SQLite2
236     - default search() action removes empty fields from search parameters
237     - #6622 - Maypole::Application will create a separate Maypole::Config for
238       each application (instead of the current workaround for multiple apps
239       under mod_perl)
240     - #7643 - improve M::V::Base's error() messages. prefix error with label,
241       and carp()
242     - #7651 - minor POD improvements in M::M::CDBI (Dave Howorth)
243     - #7834 - minor POD update in M::M::CDBI (Kevin Connor)
244     - #7917 - if do_edit fails for object creation, try again with the correct
245       template (addnew)
246     - #7930 - handle Class::DBI constraint failures in do_edit. 
247
248     Templates:
249     - add support for compound primary keys in factory templates
250       (Dagfinn Ilmari MannsÃ¥ker)
251     - Only show buttons for public actions.
252       (Dagfinn Ilmari MannsÃ¥ker)
253     - Split the meat of the view template off to a view_item macro.
254     - New login template
255     - Other assorted css/template fixes
256
257
258 2.04  Tue Oct 27 14:00:00 2004
259     - fixed Apache::MVC version (Randal Schwartz)
260     - fixed template_args (Dave Howorth)
261     - new Maypole::Config documentation (Dave Howorth)
262     - Maypole::Model::Base::process() no more steals you the first
263       arg after fetching objects
264
265 2.03  Tue Oct 26 13:00:00 2004
266     - increased version number of Apache::MVC
267     - fixed display_tables bug (Steve Simms)
268     - fixed templates, now again XHTML compliant
269     - documentation fix (Dave Howorth)
270     - only set charset for text/*
271
272 2.02  Mon Oct 25 13:00:00 2004
273     - Fixed charset in http header.
274     - replaced action links with forms in factory templates
275
276 2.01  Sun Oct 24 14:50:00 2004
277     - documentation fix to make t/03podcoverage happy
278
279 2.0   Fri Oct 22 20:00:00 2004
280     - added parse_args() (Simon Flack)
281     - call additional_data() and authenticate() for plain templates
282     - merged Apache2::MVC (mod_perl2 support) into Apache::MVC
283     - added Maypole::Application universal front-end
284     - config parameter handling for Maypole::Model::CDBI
285     - $r->{query} is now deprecated, use $r->{params} for GET and POST
286     - fixed multiple value handling (Simon Flack)
287     - added exception handling (Simon Flack)
288     - fixed documentation bugs
289     - changed default documentencoding to utf8. Change with 
290       $r->config->{document_encoding}
291     - removed Maypole::View::Mason as it's distributed separately on CPAN.
292     - factory templates are now XHTML 1.1 compliant.
293     - made the config hash into -> Maypole::Config
294     - accessors for everything
295     - win32 support
296     - new documentation for Maypole.pm (Simon Flack)
297     - moved doc/*.pod to lib/Maypole/Manual
298     - added Maypole::Model::Base::is_public() to make it simple to overload
299       :Exported behavior
300     - added support for replacing use base qw/All My Modules/ with 
301       use Maypole::Application qw/Redirect AnotherPlugin/; note that this 
302       will only triggers with parameters to import, to preserve backwards
303       compability.
304     - fixed search ordering in Maypole::Model::CDBI and parameter
305       handling in CGI::Maypole (Dave Slack)
306     - sweet new factory templates (Danijel Milicevic)
307     - zero search fix (Dave Slack)
308
309 1.7   Sat Jul 17 20:15:26 BST 2004
310     - Emergency release - we lost the "use Maypole::Constants" from
311       CLI.pm somehow
312
313 1.6   Fri Jul 16 23:51:21 BST 2004
314     - Two very trivial fixes:
315     - Put ::Plain in the MANIFEST, so it actually ships this time
316     - Make CLI test == OK, not just true
317
318 1.5   Mon Jun 21 14:36:54 BST 2004
319     - CLI mode correctly uses Constants module
320     - Template footers as well as headers (Markus Ramberg)
321     - Fix problems on failed object create (Jesse Sheidlower)
322     - Fix related() to deal with latest version of Class::DBI (Markus)
323     - Add sample CSS to distribution
324     - Maypole::Model::CDBI::Plain, for those who already have a CDBI set
325       of classes set up
326     - Friendlier errors when a template can't be found
327     - Don't authenticate without a model class
328     - #6569 Passing DBI options in setup() (Mickael Joanne)
329     - #6571 User-defined ok_tables: patch
330     - #6572 Makefile patch: require up-to-date CBDI::AsForm (Markus Ramberg)
331     - #6573 Set empty params to '' instead of undef (Jody Belka)
332     - #6617 Required cols patch in CDBI.pm (Jesse Sheidlower)
333
334 1.4   Fri Apr 16 18:11:41 BST 2004
335     - Much, much more documentation
336     - CLI debugging mode
337     - CGI frontend (CGI::Maypole)
338     - Beginnings of a test suite
339     - Maypole::Constants module to remove dependency on Apache
340     - Refactoring of view classes to base/module-specific modules
341     - HTML::Mason view class
342     - Various small template bug fixes and enhancements
343
344 1.3   Fri Mar 26 19:16:33 GMT 2004
345     - Fix serious order/CDBI::Page interaction bug.
346     - Die if model/view class can't be compiled.
347
348 1.2   Thu Mar 25 12:35:21 GMT 2004
349     - Ensure safety when dereferencing any ->objects
350     - Support for the "frontpage" template
351     - Maypole itself no longer uses ->{ar}, which is now completely
352       refactored into the Apache::MVC class
353     - The beginnings of the documentation framework
354     - Support for paging and ordering in searches
355     - Stringify column changed from magic "name" to customizable
356       property
357     - Move BeerDB to ex/
358     - Fix SQLite dependency
359
360 1.1   Wed Feb 25 10:29:25 GMT 2004
361     - Update CDBIL dependency
362     - Don't stringify to "name" if there isn't one
363     - Better support for authentication and template changes
364     - Full set of templates
365     - Allow passing of username and password to ->setup
366     - display_columns method
367
368 1.0   Wed Feb 11 17:34:12 GMT 2004
369     - Renamed from Apache::MVC to Maypole.
370     - Clearer separation of model and view classes from controller
371     - Factoring out of Apache-specific code back into Apache::MVC
372
373 0.2   Thu Feb  5 18:03:33 GMT 2004
374     - This release adds paging of list results and ordering by column
375       (ascending and descending)
376
377 0.01  Thu Jan  8 15:50:17 2004
378         - original version; created by h2xs 1.22 with options
379                 -AX -b 5.6.0 -n Apache::MVC
380