Interchange

CVS log for interchange/code/SystemTag/error.coretag

[BACK] Up to [Local Repository] / interchange / code / SystemTag

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Apr 11 06:30:46 2008 UTC (8 months, 4 weeks ago) by danb
Branches: MAIN
CVS tags: STABLE_5_6-root, STABLE_5_6-branch, REL_5_7_1, REL_5_6_1, REL_5_5_3, REL_5_5_2, HEAD, DEB_5_6_1_2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -3 lines
Allow default error labels to be set in the Locale.

The previous behavior was to use the variable name when no label was given. This change causes it to first check for a default label in the form of an error_label_${variable name} entry in the Locale configuration before falling back on just the variable name. As such, it is fully backwards compatible.

This is useful if you use Locale to override the error messages in core modules and also want to override the display of the label without setting up or modifying the profile everywhere the error may be displayed (with labels) on the site. For example:

Locale en_US <<EOF
{
# Override an error in Order.pm with one specific to this catalog.
"'%s' for item %s is not numeric/integer",
"We do not offer fractions of a product; however, the product is designed so that you may cut it to the exact dimensions needed. (The quantity you entered was '%s'.)",

# Also override the error label.
"error_label_mv_order_quantity",
"Quantity",

}
EOF

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 1 10:52:45 2007 UTC (17 months, 1 week ago) by kwalsh
Branches: MAIN
CVS tags: REL_5_5_1, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -3 lines
    * Corrected some stupidity in my last commits:

	-- Created a new CSS_CONTRAST Variable, which we'll use instead of
	   the CONTRAST variable to select the CSS class name.

	-- The CSS class now defaults to mv_contrast instead of just
	   "contrast", as "contrast" is more likely to conflict with
	   existing CSS classes.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Aug 1 05:42:29 2007 UTC (17 months, 1 week ago) by kwalsh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4 lines
    * Closing bug #83 (Fallback value for std_label uses deprecated
      HTML font tag).

	-- Added a ".contrast" class to the THEME_CSS file.

	-- Modified the [error] tag to use <span class="contrast"> instead
	   of <FONT COLOR=RED>.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 00:20:09 2007 UTC (21 months, 1 week ago) by pajamian
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_3
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +9 -4 lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later".  Update copyrights.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Mar 30 23:40:49 2007 UTC (21 months, 1 week ago) by pajamian
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -4 lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later".  Update copyrights.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jan 26 01:50:08 2007 UTC (23 months, 1 week ago) by pajamian
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -3 lines
Fix [error] tag so it does not attempt to replace format codes other than %s in
the text or std_label attributes.  The following test code demonstrates the
problem:

[error name=test set="This is a test error"]
[error name=test std_label=|
    <a href="[area href=formhelp form='
        field=mytable::test
        returnto=this/page
    ']">mylabel</a>
| show_error=1]

In the above test the [area] tag translates this/page in the form attribute to
this%2fpage.  The error tag then sees the %2f as a float specifier and
translates it to this0.000000page, also since the error text itself is gobbled
up the error itself does not display since there is nothing for the later %s
code to match against.  This patch corrects that problem by using a regexp to
substitute the error text instead of an sprintf, and so only the first instance
of %s will be substituted.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Nov 8 18:14:35 2005 UTC (3 years, 2 months ago) by jon
Branches: MAIN
CVS tags: STABLE_5_4-root, REL_5_4_2, REL_5_4_1, REL_5_4_0, REL_5_3_3, REL_5_3_2
Branch point for: STABLE_5_4-branch
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Big copyright and version number update to prepare for 5.3.2 release.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Feb 9 13:39:42 2005 UTC (3 years, 10 months ago) by docelic
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1, DEB_5_3_0_20051004_1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -1 lines
Header/license fix or Version update+minor formatting fix, or both

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 9 02:46:53 2004 UTC (4 years, 9 months ago) by jon
Branches: MAIN
CVS tags: MANIFEST
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -1 lines
Add "filter" option to error tag. Especially useful is the "entities"
filter when outputting admin errors.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Sep 23 14:30:22 2003 UTC (5 years, 3 months ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_2-root, STABLE_5_2-branch, STABLE_5_0-root, STABLE_5_0-branch, REL_5_2_1, REL_5_2_0, REL_5_1_1, REL_5_1_0, REL_5_0_2, REL_5_0_1, REL_5_0_0_RC2, REL_5_0_0_RC1, REL_5_0_0, REL_4_9_9, DEB_5_2_1_1, DEB_5_0_0_2, DEB_4_9_8_20031014_1, DEB_4_9_8_20031010_1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +35 -2 lines

* Add [error auto=1] similar to [warnings auto=1].

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:20:32 2003 UTC (5 years, 11 months ago) by racke
Branches: LINUXIA
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +0 -0 lines
updated LINUXIA branch to 4.9 sources in order to use it as testbed again

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 05:52:38 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_8, REL_4_9_6, REL_4_9_5, REL_4_9_4, REL_4_9_2, REL_4_9_1, DEB_4_9_8_20030911_1, DEB_4_9_8_20030706_1, DEB_4_9_8_2
Branch point for: LINUXIA
	* The great tag breakout!

	* Almost all tags are now UserTag definitions. The only exceptions
	  are:

		and bounce goto if label or unless

    * New TagDir directive (default is VENDROOT/code) sets the
	  directory (or directories) which are searched for code definitions
	  set by UserTag and CodeDef.

	* New TagGroup directive establishes groups of ITL tags which can
	  be included.

	  	TagGroup :crufty "banner default ecml html_table onfly sql"

	  The default groups include :core, which contains all of the
	  ITL tags defined in 4.8/early 4.9. The groups are defined
	  in $Vend::Cfg::StdTags and can be undefined if desired
	  with "TagGroup :group".

	* New TagInclude directive allows inclusion of tags (or groups
	  of tags). If a tag is defined as a core tag (with a .coretag
	  or .tag or .ct extension) and is not included, it will not
	  be compiled and placed in the tag map. This is for all catalogs,
	  so if *any* catalog uses a tag it must be included.

	  Examples:

		# Include the base tags
	  	TagInclude :core

		# Not the commerce tags
		TagInclude !:commerce

		# But make sure item-list is included even though
		# it is in :commerce
		TagInclude item-list

		## Double negatives are honored
		TagGroup    :foo "bar !baz buz"
		## With the group above, the below is equivalent
		## to TagInclude !bar baz !buz
		TagInclude !:foo

    * New CodeDef directive allows the setting of filters,
	  order checks, FormAction, ActionMap, ItemAction,
	  and LocaleChange.

			## filters
			CodeDef  mixedcase Filter
			CodeDef  mixedcase Routine <<EOR
			sub {
				my $val = shift;
				## [filter mixedcase]mixed case[/filter]
				## outputs "MiXeD CaSe"
				$val =~ s/(.)(.)/\u$1\l$2/g;
				return $val;
			}
			EOR

			## order checks
			CodeDef  mixedcase OrderCheck
			CodeDef  foo  Routine <<EOR
			sub {
				my ($ref, $var, $val) = @_;
				return (1,$var) if $val eq 'bar';
				return (0,$var, "foo must be bar");
			}
			EOR

	   All work in catalog.cfg; LocaleChange and ItemAction are not
	   global. FormAction, ActionMap, and ItemAction directives
	   are equivalent to their CodeDef equivalents.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

Interchange CVSweb <info@icdevgroup.org>