$Header: /cvsroot/CGI::Framework/Changes,v 1.17 2004/01/07 02:40:18 mina Exp $
Revision history for Perl module CGI::Framework
0.12
- Implemented support for 4 new callbacks:
pre__pre__all()
post__pre__all()
pre__post__all()
post__post__all()
0.11
- Implemented new method: return_template()
- Implemented 2 new special variables: _missing_info and
_missing_info_caller
- Calling the clear_session() method will now preserve
the internal _lang and _lastsent variables
0.10
- Implemented new logic that fixes problem of the framework validating
the last-sent template even if the client hit BACK in their web browser
and is actually submitting a different template. The default is now
to validate whichever template the client is submitting, which is not
necessarily the last template sent.
- Added new constructor option: disable_back_button
Note that this constructor replicates the behavior of version 0.09
and below. Unlike the previous versions, the default for
version 0.10 is NOT to disable the back button.
If you'd like to maintain the behavior of version 0.09 and
earlier, you must set "disable_back_button => 1" in your
constructor/initializer.
See the POD for more details.
0.09
- Fixed a bug that caused language tags in a template with no content
in them (such as <en></en>) to cause random parsing problems and
missing content.
- Introduced internationalization and localization to errors added
via the add_error() method by utilizing the excellent Locale::Maketext
module.
- Documentation clarification for multi-language support
0.08
- Added new method initial_template()
0.07
- Implemented new logging features:
+ log_filename constructor key
+ log_this() method
- Implemented new fatal error handling features:
+ Fatal error template through the new fatal_error_template constructor key
+ Fatal error email-to-admin feature through the new fatal_error_email,
sendmail, smtp_host and smtp_from constructor keys as well as the
new pre-defined variable _fatal_error for use in the fatal error template
- New pre-defined variable _current_template
0.06
- Renamed constructor parameter importform to import_form, renamed built-in
html variable _formaction to _form_action. Both changes are backwards compatible
- If "import_form" was supplied to constructor, then subsequent calls to the
form() method will return the value from the import_form namespace instead of
from the built-in CGI object. This allows the programmer to modify the value
in the namespace (such as $FORM::firstname) then use form() or remember() to
operate on the new value, not the original one.
- add_error() method no longer restricted to being called from inside a
validate_templatename() routine. That gives the flexibility to add_error()
followed by manually calling show_template() at any time.
- The INITIALIZENEWPROJECT function now creates an /images/ subdirectory
inside the /public_html/ subdirectory and places a couple of small images in
it, which the errors.html template references. It looks nicer :)
0.05
- Fixed a bug that caused the framework not to call the pre_templatename and
validate_templatename subroutines if the non-OOP (function-based) approach using
the initialize_cgi_framework initializer was used, and the callbacks_namespace
parameter was not supplied.
0.04
- Any methods and initializer parameters that were made up of 2 concatenated words
have now been separated by an underscore. The following are affected:
Methods/Functions:
adderror => add_error
clearsession => clear_session
showtemplate => show_template
Constructor/Initializer parameters:
callbacksnamespace => callbacks_namespace
cookiename => cookie_name
initialtemplate => initial_template
sessionsdir => sessions_dir
templatesdir => templates_dir
validlanguages => valid_languages
The old names will still be available for compatability-purposes however will be
phased out sometime in the future for code-cleanliness. All existing and new
programs should use the new naming convention.
- Implemented the ability to save session data in a mysql table instead of text files
through a new constructor parameter sessions_mysql_dbh.
- Implemented a new method "remember" that is a shorthand for transferring values
from the just-submitted form to the session.
- Changed default form enctype to "multipart/form-data" so that file-uploads can
be done. This seems to have no side-effect other than enabling file uploads to
work.
- Some documentation and synopsis bugfixes. - Thanks to Ron Savage <rons@deakin.edu.au>
0.03
- Added new methods: get_cgi_object, get_cgi_session_object, html_push, html_unshift
- Added new constructor option, importform
- Documentation fixes and elaborations
0.02
- Initial release