Interchange

CVS log for interchange/lib/Vend/Table/Editor.pm

[BACK] Up to [Local Repository] / interchange / lib / Vend / Table

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat May 10 14:07:40 2008 UTC (7 months, 4 weeks ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_6-root, STABLE_5_6-branch, REL_5_7_1, REL_5_6_1, REL_5_5_3, HEAD, DEB_5_6_1_2
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +9 -3 lines
* Add type_empty parameter to table editor. This allows the selection of a
  different widget type if the length of the data is zero.

  Found on the extended page of the meta editor for the field.

  An example of use would be a "created" field in a table, which is a
  DATETIME type. If the value of the field is the empty string or NULL,
  set type_empty to "datetime" to put a date widget in. Make the normal
  widget type be "value", which allows you to just display the data when
  the value is already set.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Mar 25 17:13:21 2008 UTC (9 months, 2 weeks ago) by jon
Branches: MAIN
CVS tags: REL_5_5_2
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
Various minor UTF-8 changes.

Correct attribution of &Vend::CharSet::display_chars (which is from
perluniintro manpage).

Enable localization of an error string.

Match content type more tightly in 2 spots ("text" is only trustworthy
in the MIME major type, not minor, and even that may be a stretch).

Simplify request method matching in a few places for readability and a
(trivial) performance benefit.

Use conventional $c lexical instead of $g for catalog hashref.

Fix tab/space differences to match context.

Update copyrights of files changed in 2008.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Mar 13 14:17:28 2008 UTC (9 months, 3 weeks ago) by mheins
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +13 -3 lines
* Add ability to set arbitrary options from table editor callouts.
  Sparked by:

	  http://www.icdevgroup.org/pipermail/interchange-users/2008-March/048740.html

  Now allows an option to be set with the opts callout, for example the "ampm"
  option for the time widget.

	  [table-editor
	  	label.starttime='Start Time'
		filter.starttime=date_change
		widget.starttime=time
		opts.starttime="ampm=1"
	   ]

  Options are specified in Interchange string option format as interpreted
  by get_option_hash() routine.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Tue Sep 18 18:51:19 2007 UTC (15 months, 2 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3 lines
applied localization patch from Rene Hertell (#118)

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Aug 13 11:30:47 2007 UTC (16 months, 3 weeks ago) by pajamian
Branches: MAIN
CVS tags: REL_5_5_1, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -2 lines
Fixed problem where form values do not always default to the $Values hash
values for corresponding form fields when defaults=1 and wizard=1 are both set
in the table editor.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Aug 10 12:05:35 2007 UTC (16 months, 4 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -2 lines
Pass applylocale option into Vend::Form::options_to_array in order to
localize option labels (#80).

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Aug 9 13:40:56 2007 UTC (17 months ago) by pajamian
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3 lines
* Updated copyright headers to 2007 (closes bug #102)

* Added GPL and copyright headers to a few files that were missing them.

Revision 1.81.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 30 12:15:46 2007 UTC (21 months, 1 week ago) by pajamian
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_3
Diff to: previous 1.81.2.1: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Mar 30 11:39:54 2007 UTC (21 months, 1 week ago) by pajamian
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 20 12:34:49 2006 UTC (2 years, 3 months ago) by kwalsh
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_2
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
    * Fixed a CSS syntax error, reported by Paul Jordan in IRC.
      (back-ported from CVS HEAD)

Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Aug 11 20:56:17 2006 UTC (2 years, 4 months ago) by kwalsh
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3 lines
    * Fixed a CSS syntax error, reported by Paul Jordan in IRC.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Apr 5 17:40:38 2006 UTC (2 years, 9 months ago) by jon
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +6 -5 lines
Correct display of "Are you sure you want to delete $SKU" dialog when
multi-part primary keys are used.

Problem found and fixed by Jeff Boes <jeff@endpoint.com>. Thanks!

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Jan 30 17:50:03 2006 UTC (2 years, 11 months ago) by jon
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -11 lines
Remove compatible_5_2 pragma, which kept table editor error text
(mistakenly) hidden, as was the case up to Interchange 5.2.

Should be noted in UPGRADE document.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Nov 8 18:14:47 2005 UTC (3 years, 2 months ago) by jon
Branches: MAIN
CVS tags: STABLE_5_4-root, 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.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
Big copyright and version number update to prepare for 5.3.2 release.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Aug 11 22:07:50 2005 UTC (3 years, 4 months ago) by racke
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1, DEB_5_3_0_20051004_1
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
fix bug with duplicate column header, visible in order status UI page

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Jun 28 07:10:57 2005 UTC (3 years, 6 months ago) by jon
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Fix recently broken quoting.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Jun 10 10:56:51 2005 UTC (3 years, 6 months ago) by docelic
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +147 -147 lines
- XHTML-compliance:

  - lowercased/quoted HTML tags (all containers, so no ">" vs. "/>" issues)

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon May 16 05:21:48 2005 UTC (3 years, 7 months ago) by mheins
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +18 -3 lines

* Make defaults for meta editor on views work.

* Allow saving defaults from meta-less editor starts to initialize
  meta editor.

* Allow an overlay of certain meta values based on a subkey.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon May 2 14:12:11 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -65 lines
* Remove %Vend::Table::Editor::Filter_desc in favor of codedef::filter
  setting. Included compatibility so previous "filters" call will work.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Apr 30 15:09:59 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -2 lines
* We had been running without warnings so long, we had gotten a bit sloppy
  in our code in some places.

  Because we do lots of uninitialized hash member stuff with arrays
  of fields and $opt, it is basically unreasonable for us to run with
  the "use of uninitialized variable" warnings. Because we do a fair
  amount of numerical comparisons on empty string values, it seemed
  unreasonable to run with "string value in numeric gt" enabled.

  Also, because Safe, HTML::Entities, and some other modules have
  these checks enabled, page code is bound to have warnings issued
  no matter what you do.

  It seems better to run with some warnings enabled so that we can
  catch bad code practice.

  So I have made the code run without warnings prior to and after
  interpolate_html(), and turned off warnings by default in the
  page code.

  If it is desirable to turn on warnings for pages, you can use
  [pragma perl_warnings_in_page] and see warnings for that page
  (or by default if you put in catalog.cfg).

* In general these changes are:

	 no warnings qw(uninitialized numeric);

  in most pages.

* Add $::Pragma->{perl_warnings_in_page}.

* Remove defined checks when simple set tests will do.

* Streamline some code.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Apr 25 05:43:55 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
* A bit more intelligence in the width-guessing -- when all cells were
  the same size it would get confused.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Apr 25 05:29:38 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +93 -12 lines
* Add adjust_cell_class parameter to address the ragged help text
  display in the table editor.

  If adjust-cell-class=classname is passed as an option, a JavaScript is
  appended which adjusts all 'classname' table cells to the widest
  width among them. (If one is 2x larger than all the rest, it is
  ignored.)

  Note that you may need to fiddle with help_cell_style or
  other style parameters to get it just right. The "adjust_width"
  style attempts to automatically set the help cell width for
  a reasonable display, but it won't always be reasonable.

* Reposition Display_options option-setting so that it can affect
  the cell styles without munging the "extra" value.

* Add new adjust_width display class which automagically uses the
  adjust_width feature.

* Allow user-supplied callback code in an option, with checking to
  make sure it is a code reference.

* Next commit will be db_metaconfig support.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Apr 19 05:23:42 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +304 -3 lines
* Add default CSS style sheet for the table editor, that matches
  the UI.

  Called with:

  	[table-editor table=inventory style-sheet=default]

  Can be set via GlobalSub or elsewhere with:

  	$Vend::Table::Editor::Style_sheet{foo} = $foo_css;

  It is output to the PRESCRIPT area, possibly in an output or
  just prepended to the table editor.

* Anyone is invited to submit more.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Apr 17 12:41:24 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -4 lines
* Correct exclusion mapping for top buttons and messages area. This corrects
  an empty table data cell which was not displaying messages when BOTTOM_BUTTONS
  was in effect.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Apr 15 13:57:05 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +18 -8 lines
* Fix problem with non-UI table editor display, caused bad form. Modify
  FORM_BEGIN in place to insert prescript area.

* Change way intro_text is displayed in wizard/survey mode.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Apr 13 16:13:28 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +6 -26 lines
* Add Stefan's suggested Visibility modification for CodeDef options.
  By default the visibility is public.

  It wants something like:

  		codedef:JavaScriptCheck

  Will return all public Descriptions.

  		codedef:JavaScriptCheck:private         -- return public and private.
  		codedef:JavaScriptCheck:private,admin   -- return public,private,admin

  If Visibility is "with Foo::Bar", it checks to see if $Foo::Bar::VERSION
  is true and returns the option if it is.

* Create routine to automatically select Routine for certain type of
  CodeDef. Currently there are many separate methods of doing that.
  This one prefers local over global, and is called with:

  	   codedef_routine($type, $name);

  For instance, codedef_routine('OrderCheck', 'multistate') will
  return $Vend::Cfg->{CodeDef}{OrderCheck}{multistate} if it exists,
  otherwise returns $Global::CodeDef->{OrderCheck}{multistate}.

* Modify Form.pm to use this for JavaScriptCheck. More will be
  added.

* Modify filters to add private Visibility for non-mainstream filters.

* Modify meta editor to use this.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Apr 13 03:14:47 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +24 -7 lines
* The variable names in country_select were not necessarily unique. Though
  testing worked with two country variables (country and b_country) this
  would not necessarily be the case with all browsers/javascript implentations.
  Rename all variables to make the code pretty much unique. It could be conflict
  with non_standard variable names, so it may take more thought. This should
  be at least better.

* Add a callback_prescript and callback_postscript hook for widgets to
  use. This allows sending code to an area before the form (prescript)
  or after the form (postscript). To begin with, only country_select
  uses this.

* Add calls to callback_prescript and callback_postscript to
  country_select (if routine is present). This puts the script
  code in a better place and removes the necessity for state_select
  being before country_select.

* Callbacks could be used like:

	[display
		name=country
		type=country_select
		callback_prescript=`sub {
				my $val = shift;
				$Scratch->{meta_header} .= "\n$val";
				return;
			}
			`
		callback_postscript=`sub {
				my $val = shift;
				$Scratch->{some_footer} .= "\n$val";
				return;
			}
			`
		]

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Apr 12 15:14:39 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +27 -18 lines
* Make the start of XHTML support for Interchange.

* Add global XHTML and catalog XHTML options. Global is false/off by
  default, and catalog option is defaulted from global option.

* The only effect is that Dispatch.pm sets $Vend::Xtrailer to the
  appropriate value of '/' or ''.

* Use $Vend::Xtrailer to set any <br/> or <br> we use.

* Change some generated HTML to:

	-- lowercase tags
	-- quote parms
	-- use $Vend::Xtrailer

* Supply [br] tag which returns the proper <br/> or <br>.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Apr 12 03:23:21 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -3 lines
* Add descriptions to filters. Some descriptions for trivial, obsolete,
  or very complex filters were left commented out to not clutter a
  filter list with garbage.

* Fix codedef:foo options callout to not be case sensitive.

* Sort codedef:foo return lists by label.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Apr 11 23:32:20 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +27 -2 lines
* Add new automatic options generator -- CodeDef::(Filter|JavascriptCheck|etc.).

* By placing the string 'codedef:filter' in the options field, you
  can pull out the Description members of any CodeDef region.

* For example, if you wanted to build a generator for OrderCheck strings,
  and had custom OrderCheck members, you just define the Description
  as:

  	CodeDef  foo  OrderCheck  1
  	CodeDef  foo  Description The foo check
  	CodeDef  bar  OrderCheck  1
  	CodeDef  bar  Description The bar check

  When you use [display name=checks type=select options="codedef:OrderCheck"]
  you generate:

  <select name="checks">
  	<option value="foo">The foo check
  	<option value="bar">The bar check
  </select>

* Will work for any CodeDef, including UserTag. Does require a Description
  member, though, which are largely undefined.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Apr 10 05:25:14 2005 UTC (3 years, 9 months ago) by mheins
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +291 -74 lines
* Modify table editor to easily switch between display types without
  having (necessarily) to create your own row_template. Defines
  eight standard display types, three of which were already in
  use -- image_meta (UI), simple_row (unused, probably) and
  the default.

* Add admin/db_metaconfig support to select the display type in the
  normal flex_editor.

* Add fields_template_only=1 parameter to [table-editor] that allows you
  to input a simple table with only the field definitions -- wraps it in
  a standard overall_template.

* Create an example [survey-wizard ] tag that uses these new features. It:

	-- reads multi-column page descriptions like [table-editor]
	-- accepts file uploads
	-- allows targeting of file uploads to a directory
	-- allows completely custom per-page templates for complex HTML
	   forms
	-- works in conjunction with changed [email ...] tag to attach
	   file-upload fields to the results email

  This is created in eg/ because it will be in flux as it is gradually
  adapted to allow multi-faceted content upload for products in a
  "wizard" format -- i.e. upload images, PDF documents, license keys,
  etc. to multiple tables, directories, and targets with emailed
  workflow.

  As far as I can tell, the current is completely compatible with
  auto-wizard, but that will change over time and it may be renamed
  or just kept in eg/ for custom implementation.

* The new [email] tag is as far as known completely compatible with
  the current tag, and allows attachments to be added with
  parameters, i.e. in the simplest case:

  [email
  	from="Me"
	to="You"
	subject=Test
	attach="foo.pdf"
  ]
	  Here is the pdf.
  [/email]

  Also allows more complicated multiple uploads:

  [email
  	from="Me"
	to="You"
	subject=Test
	attach.1="foo.pdf"
	attach.2="bar.pdf"
  ]
	  Here are the pdfs.
  [/email]

  or even:

  [email
  	from="Me"
	to="You"
	subject=Test
	attach.1=`{
			path => 'foo.pdf',
			filename => "Mike's copy of foo.pdf",
			disposition => 'attachment',
			type => 'application/pdf',
		}`
	attach.2=`{
			path => 'bar.pdf',
			filename => "Jon's copy of foo.pdf",
			disposition => 'attachment',
			type => 'application/pdf',
		}`
  ]
	  Here are the pdfs.
  [/email]

Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Dec 30 18:00:23 2004 UTC (4 years ago) by mheins
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +13 -5 lines
* Unhide error text which unaccountably has been hidden all along.

* Add ability to control the error template with a parameter -- accepts
  same input as [error] tag.

* Allow old behavior with "Pragma compatible_5_2".

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Jul 21 21:18:52 2004 UTC (4 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5 lines
* Fix longstanding bug where $base_entry_value was not showing the proper
  columns (with a columns:: spec) in the meta editor.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Jul 21 05:46:55 2004 UTC (4 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +23 -2 lines
* Add ExtraMeta capability to UserTags.

  If you put an ExtraMeta setting in the CodeDef for the widget, it
  works the same as a meta record of _widget::type, i.e. it is a structure
  like this one for the "imagedir" widget:

    CodeDef imagedir ExtraMeta <<EOM
    {
        _order => [ qw/ follow_symlinks / ],
        follow_symlinks => {
            widget => 'yesno',
            label => 'Follow Symlinks',
            help => 'Set to yes if you want to list all files, \
                    even following symbolic links',
        },
    }
    EOM

  This adds a "Special for imagedir widget" tab in the meta_editor,
  which allows special settings for the widget.

  Can be done in catalog.cfg widgets and global widgets. The actual
  ExtraMeta is a string value which is runtime-interpolated to a
  hash.

  Can be set in Vend::Form native widgets by setting %Vend::Form::ExtraMeta,
  i.e.:

      $Vend::Form::ExtraMeta{text} = {
        _order => [ 'maxlen' },
        maxlen => {
            widget => 'text_4',
            label => 'Maximum length for value',
        }
      };

  Not that it will do any good until the settings are honored by the
  widget. Should be set to an actual reference.

  There is an illustration for the "imagedir" widget as above.

* Add back in the nascent display_filter edit in meta_editor, and
  give help/setting for restrict_allow.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jun 23 16:21:58 2004 UTC (4 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
* Allow labels to contain an equals sign. Found by Bill Carr.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Jun 7 03:05:30 2004 UTC (4 years, 7 months ago) by mheins
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -8 lines
( Continuation of previous changes to these files, inadvertently committed. )

* Spreadsheets can now do file upload, including those linked inside
  another table.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Jun 7 03:01:45 2004 UTC (4 years, 7 months ago) by mheins
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +15 -4 lines
* Allow table editor to set mv_return_table if not already set, ensures
  that a linked spreadsheet won't command the table upon return to the
  select page.

* Allow a field's restrict_allow to be set to control expansion of
  append/prepend values.

* Make ui_wizard_fields control when ui_data_fields not set. Used
  to always come from ui_data_fields.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Apr 16 16:23:12 2004 UTC (4 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +112 -114 lines
* Remove duplicate members from array.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Apr 12 18:29:50 2004 UTC (4 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +16 -4 lines
* Have table-editor pre-populate the appropriate fields of a COMPOSITE_KEY
  record when an item_id is requested and the item does not exist.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Apr 11 23:01:57 2004 UTC (4 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -2 lines
* Make table-editor recognize returned scalar keys from meta_editor
  and other link-back sources.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Apr 11 05:05:49 2004 UTC (4 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +7 -5 lines
* Add new Class DBI_CompositeKey which allows multiple-key tables to
  be used in Interchange in the majority of ways other tables are
  used.

  Setup is simple. Just use a normal DBI looking table, then
  add

    Database foo MULTIPLE_KEYS key1 key2 key3

  This implies:

    Database foo Class  DBI_CompositeKey

  If you have not already set up the table as a DBI type
  (i.e. "Database foo foo.txt dbi:mysql:foobase") then
  this will fail.

  You should definitely have a COLUMN_DEF for each key. CREATE_SQL
  or using NoImport works fine, too.

  If you want a unique constraint you have to add it. If you
  don't have unique set, you may get anomalous behavior.

  -- Keys are passed via arrays, hashes, or null-separation. For
     instance:

     [data table=foo col=value1 key.0=foo key.1=bar key.2=baz]

     [data table=foo col=value1 key.key1=foo key.key2=bar key.key3=baz]

     [data table=foo col=value1 key=` join "\0", qw/foo bar baz/`]

     All three of the above will return the same thing, as will:

         [perl tables=foo]
            my $db = $Db{foo};
            my @key = qw/foo bar baz/;
            my %key = (
                        key1 => 'foo',
                        key2 => 'bar',
                        key3 => 'baz',
                    );
            my $try1 = $db->field(\@key, 'value1');
            my $try2 = $db->field(\%key, 'value1');
            my $try3 = $db->field( join("\0", @key), 'value1');

            if($try1 eq $try2 and $try1 eq $try3) {
                return "Access methods returned same value.";
            }
            else {
                return "ERROR: Access methods returned differing values.";
            }
        [/perl]

   -- [import-fields table=foo] works, but the {cleanse} option is
      not allowed.

   -- [import table=foo ...] works.

   -- Exports work.

   -- Imports from text files work, i.e. removing .sql file.

   -- Table editor works.

   -- Flex-select works. There is not as yet a batch delete, but that
      should be possible in the future. "Edit keys in sequence" is unlikely
      to ever work.

   -- Autonumbering and AUTO_SEQUENCE are obviously moot.

   -- $db->set_slice(), $db->get_slice work. So does $db->delete_record().
      All use the same key types as other access methods.

   -- $db->set_row() works, but doesn't do the one-field insert behavior.
      Probably a plus. 8-) It should set _Default_ary, but that is not
      tested.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Mar 8 21:06:50 2004 UTC (4 years, 10 months ago) by racke
Branches: MAIN
CVS tags: STABLE_5_2-root, STABLE_5_2-branch, REL_5_2_1, REL_5_2_0, REL_5_1_1, REL_5_1_0, DEB_5_2_1_1
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +8 -4 lines
weed out duplicates in ui_data_fields originating from bad metadata,
causing error in item edit:
probable bad form -- number of values min=0 (wholesale) max=2 (sku)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Feb 22 19:28:38 2004 UTC (4 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +25 -2 lines
* Allow individual profile checks defined in metadata.

  It is defined in the "Help and Check" section of meta_editor.

  IMPORTANT: To enable these checks, the ui_profile part of the overall
  table definition has to be non-blank. You can just put a comment like

    # Enable individual form profile checks

  To enforce a profile on a field, set it's check value to a valid
  IC profile check. For example, to make sure the length of a field
  is between 4 and 10 characters, do:

  	  length 4-10

  Or to ensure it looks like a US or Canada postal code

  	  postcode

  This results in the following being set in the extended field
  of mv_metadata:

  	{ check => 'postcode' }

  If the check has an "=" sign anywhere, the field name is not
  prepended. So to do multiple checks, you need to do

  SECURITY:

  Since the filter or lookup check type can do data lookups and potentially
  call routines, we need to have some security. The table-editor tag
  sets the scratch value "mv_individual_profile" when a ui_profile
  is defined.

  WITHOUT TABLE EDITOR:

  To use this without the table editor, just set an mv_profile as
  normal. Then for each individual check, define in the form:

  	<input type=text name=foo value="">
  	<input type=hidden name=mv_individual_profile value="foo=length 1">

  That would check the form variable "foo" for a length of 1.

  This is automatically done by the [display ...] tag, so you can
  do:

  	[display type=text name=foo check="length 1"]

  to do the same thing.

  You will need to set the scratch value mv_individual_profile yourself
  to enable these.

  POSITIONING WITHIN PROFILE:

  The facility works by modifying the first mv_form_profile run and
  inserts its values either just before the first &fatal=yes or
  *after* the first &update=yes, whichever comes first. If neither
  are in the profile, they are put first in the profile.

  MULTIPLE CHECKS:

  If you have multiple mv_form_profile settings, the individual checks
  are only run as a part of the first one and are not repeated.

* Add blank_default metadata setting, which is the value a field should
  be initialized to (on display) if the current value has a length of 0.

* Remove extended.js_check from meta editor, as that was never implemented.

* Add some labels and help to meta editor.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Feb 13 15:01:00 2004 UTC (4 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -4 lines

* Add option "top-buttons-rows" to set the number of rows where
  top buttons will be triggered. Use said options in appropriate
  pages.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Feb 6 17:12:43 2004 UTC (4 years, 11 months ago) by racke
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -2 lines
display top buttoms if option notable is set

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Feb 2 20:58:13 2004 UTC (4 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +13 -4 lines

* Allow setting of a disabled.param=1 entry so that you can show
  widgets in a table editor yet not accept data from them. The DISABLED=1
  flag will be set in the widget (which normally grays it out) and
  it will be set to be display_only.

* Pass the form and form_name parameters to Vend::Form for use in
  widgets.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jan 29 01:43:45 2004 UTC (4 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2 lines
* Make containing form name (i.e. <form name=foo ...>) available
  to the widget.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Dec 19 19:57:14 2003 UTC (5 years ago) by mheins
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
* Apply Paul's patch to number of rows thing, which gets multiple row
  tabs working on the tabbed display if not in ui_style mode.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 15 22:19:47 2003 UTC (5 years ago) by jon
Branches: STABLE_5_0-branch
CVS tags: REL_5_0_2, REL_5_0_1, DEB_5_0_0_2
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +4 -4 lines
Merge changes from unstable 5.1 branch in version 1.46.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Dec 12 05:30:35 2003 UTC (5 years ago) by mheins
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
* Fix missing relocation variables found by Paul.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Dec 10 21:26:09 2003 UTC (5 years ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_0-root, REL_5_0_0_RC2, REL_5_0_0
Branch point for: STABLE_5_0-branch
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
* Remove stray </A> found by Ton.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Oct 19 16:54:53 2003 UTC (5 years, 2 months ago) by mheins
Branches: MAIN
CVS tags: REL_5_0_0_RC1, REL_4_9_9
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -4 lines

* Allow cancel_text to be set when in database edit mode.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Sep 25 03:07:48 2003 UTC (5 years, 3 months ago) by mheins
Branches: MAIN
CVS tags: DEB_4_9_8_20031014_1, DEB_4_9_8_20031010_1
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
* Remove redundancy found by Paul Vinciguerra.

* What I hope is the final little thing to make the tabbed-display
  fully operational with Mozilla 1.5.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Sep 1 18:20:46 2003 UTC (5 years, 4 months ago) by mheins
Branches: MAIN
CVS tags: DEB_4_9_8_20030911_1
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
* Make tabbed-display relative now that Mozilla supports this. Should make
  setting html-width and table-width in metadata moot.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jul 22 03:36:37 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -6 lines
* Don't focus on meta links when tabbing through form.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Jul 21 17:58:55 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +47 -6 lines

* Add new link_blank_auto setting for table linking. This has the
  effect of:

        -- Automatically using auto-numbering
        -- setting the foreign key column to match the key of the
           edited record (as you would have to do to return the row
           once entered)
        -- Making both those fields hidden and non-changeable.

  Supported in UI with a couple of new settings.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jul 19 22:42:56 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +10 -2 lines

* Allow hidden fields to come from all_opts again (was disrupting
  surveys).

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Jul 15 02:06:05 2003 UTC (5 years, 5 months ago) by jon
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
Two patches for lookup_query in mv_metadata:

* Substitute for placeholders in query (just like with prepend and append):

  _UI_TABLE_
  _UI_COLUMN_
  _UI_KEY_

  This allows foreign table lookup queries to be tailored for the record
  currently being edited in the table editor.

* Avoid internal server error if query fails.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:15:31 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
CVS tags: DEB_4_9_8_20030706_1
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +12 -7 lines
* Allow default opening of a particular tab by adding * to the end of the
  tab label.

	Overridden by explicit "start_at" option given in options/args.

* Further allow focus of editor to start at a particular field if
  it is marked with a *.

   ui_data_fields => q{

   			=General

			foo
			bar

			=Specific*

			buz
			baz*
		},

	The "Specific" tab will be presented open when the record is edited.
	The form focus will be at the "baz" field.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jul 2 04:05:51 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -10 lines
* Fix several things with Table editor

	-- Modified passing of {table} parameter in display for table editor,
	   setting flag to prevent getting table data twice.

	-- Make lookup_query honor {db} parameter for selecting base table
	   for lookup

	-- Lookup should now work internally to the table if no {db} spec'd

	-- Sigh -- Mozilla screwed up their CSS size passing like MSIE, so
	   remove special things that made item editor/table editor automatically
	   look better on Mozilla (without setting *_height and *_width explicitly).

	-- Added MAXLENGTH to things you can set in meta_editor

	-- Added MAXLENGTH to parameters honored by [display ...]/Vend::Form,
	   without having to manipulate extra=" maxlength=22" stuff.

	-- Put hooks in for auto-JS checks in table editor / [display]

* Other

    -- Made default metadata (for merge) match foundation

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jun 19 16:00:39 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
CVS tags: DEB_4_9_8_2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +24 -17 lines

* Fix sequential edit.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jun 18 17:34:46 2003 UTC (5 years, 6 months ago) by jon
Branches: MAIN
CVS tags: REL_4_9_8
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
The great copyright, email address, URL, and version update.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun May 18 18:22:57 2003 UTC (5 years, 7 months ago) by racke
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -3 lines
removed duplicate hash record

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun May 18 15:54:15 2003 UTC (5 years, 7 months ago) by racke
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -3 lines
removed duplicate hash record

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun May 11 04:04:25 2003 UTC (5 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +12 -8 lines

* Allow override of incomplete form checking -- idea from Dan Browning.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon May 5 14:18:53 2003 UTC (5 years, 8 months ago) by mheins
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +46 -17 lines
Various changes to Vend::Table::Editor.

* Fix bug found by Jon where extra queries were done by Vend::Form due
  to table and column parameters being passed when not necessary.
  TODO: Investigate use of table and column at all for Vend::Form --
  I think that code is only needed to support the old, old, static
  option/modifier type of IC, i.e. [item-accessories].

* Add "hidden_all" parameter that allows passing of parameters in links
  generated by [table-editor].

* Add --none-- option to storage book select, so that you can save
  the main data without adding to storage book.

* Minor language change clarifying "save here only".

* Probably final address editing changes prior to hoped-for new address
  capability Kevin Old is working on.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Apr 9 15:08:50 2003 UTC (5 years, 9 months ago) by mheins
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +11 -3 lines

	* Fix "die" and server error when column defined twice in
	  fields-to-edit specification. Do warning instead.

	* Add ability to pass no-meta=1 parameter (don't show meta links)
	  from CGI or table definition.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:33:13 2003 UTC (5 years, 9 months ago) by mheins
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -2 lines

* Allow ui_profile to be set from metadata.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 26 21:05:58 2003 UTC (5 years, 9 months ago) by racke
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -4 lines
avoid code duplication

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 12 03:59:13 2003 UTC (5 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2 lines

* Major update to product options.

* Options are now modular in much the same way as Vend::Payment is.
  You can add an unlimited number of option types simply by dropping
  a module into Vend::Options.

* By default, the old 4.8 style options are in force, implemented
  with Vend::Options::Old48.

  If you add this to catalog.cfg (in etc/after.cfg in foundation):

  	OptionsEnable   option_type

  The "option_type" names a field in the products file which controls
  the option type. This enables new-style options.

  It can also be in a specific table and field, ala AutoModifier:

  	OptionsEnable   table:field

  Indeed, this is added to AutoModifer after catalog.cfg.

* There are two new-style options included:

	Vend::Options::Matrix
	Vend::Options::Simple

  These are equivalent to the current matrix and simple options.

* Options behavior is controlled in catalog.cfg by a locale-style
  multiple hash (ala UserDb or Route):

  	Options   Matrix   sort            o_sort,o_group
  	Options   Matrix   variant_table   my_variants

* To find and add a new option type, simply set something in
  catalog.cfg:

  	Options  MyOptions  table  my_options

  That will cause a require of Vend::Options::MyOptions.

* The matrix products have been moved to the "variants" table.

* The options table contains options for both Matrix and Simple types,
  but only fields for building those simple-type options (which are
  used to generate variants for Matrix). The followign fields
  have been removed from options:

	differential
	mv_shipmode
	o_enable
	o_exclude
	o_footer
	o_header
	o_include
	o_master
	o_matrix
	o_modular
	phantom
	volume
	weight

* The variants table is a subset of the fields in products.

* The admin page for each option style is defined in its
  admin_page routine, usually an include from inclued/Options/OptionType.

* size and color fields removed from products table, option_type added.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Feb 9 21:43:29 2003 UTC (5 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines

* Fix link_rows_blank setting for form linking.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Feb 7 15:51:00 2003 UTC (5 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +17 -9 lines
* Fix "admin/bg.gif not found" error

* Allow pass of nodelete and mv_auto_export options in URL

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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jan 15 14:32:48 2003 UTC (5 years, 11 months ago) by racke
Branches: MAIN
Branch point for: LINUXIA
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
treat blank templates as if they are empty, so

[table-editor ...]
[/table-editor]

exhibits the same behaviour as

[table-editor][/table-editor]

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jan 14 02:25:53 2003 UTC (5 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +574 -278 lines

* Major changes to the Interchange output model and UI.

* There will be more commits for menu data.

UI
-------

* Zeald's redesign of the UI layout is almost fully implemented. There
  are but a few pages that don't incorporate the new layout.

* Each page can have an entry in mv_metadata, which allows setting
  of page titles, display types, menus, and more via database setting.
  An editor is provided.

* Virtual UI pages are fully supported. This will allow catalog-specific
  UI settings to be transmitted to a catalog with simple database updates.
  Each page is simply an entry in mv_metadata.

* The second-level menu can be set either with the page class, as before,
  or in the page metadata with $Scratch->{second_menu}.

* There is a third-level menu callable via $Scratch->{third_menu}. There
  are few situations where the old "next_line" menu setting causes the
  third-level menu -- old menu files should be compatible but where possible
  the third-level menu is explicitly specified.

* [table-editor] and [tabbed-display] can now do tabs to the third-level
  menus. This provides a very seamless tabbed display that does not
  require a page access to change.

* Many changes made to pages to map output to the new template.

* New GPG encryption wizard to make setting up of encryption as close
  to painless as I can make it.

* Change to menu editor to incorporate better menu loading.

* New merge_metadata function allows management of new metadata when
  updating the UI.

* Many, many minor changes and visual improvements.

* A good deal of documentation about the metadata and table editor
  has been written, and those items should be committed soon. Many
  of the features are covered.

Core
-----
* Output of the parser is now sent to @Vend::Output, which allows remapping
  of the parser output before output by the Server module.

  There should be no difference in behavior by default.

  Each piece of output is pushed onto an array, and pointers
  are maintained as to the name of the output. The default if
  the output is not remapped is to go to the $Vend::OutputMap{''} space.

  When output is done in non-mapped mode, @Vend::Output is simply
  joined and sent.

  The behavior diffence comes if you use the Vend::Page::output_cat
  routine. It will output the value of a named space.

  You can map output with the ITL tag:

  	[output-to name=foo]

  To return to the default space, you use:

  	[output-to name=""]

  To return to the *previous* named space, use:

  	[output-to]

  That is not normally what is wanted, though.

  All of the above allows you to map pieces of a page to different named
  spaces and unpack them with the [unpack] tag.

  This is all perhaps easier illustrated than described -- the illustration
  is in the changes to the UI, which map output from the page code to the
  template.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Dec 13 12:53:22 2002 UTC (6 years ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_6
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -3 lines

* Get restrict_allow settings right -- the default was not allowing the "var"
  to be expanded in the image preview path. Should probably look at this
  concept on a per-field basis, and set the default to "".

  Fixes Bugzilla #475, reported by as@freibergnet.de.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Nov 23 03:59:43 2002 UTC (6 years, 1 month ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_5, REL_4_9_4
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +25 -25 lines
* Properly handle class/style stuff in default output.

* This might be wasted motion as templating is about to take another
  big hit... 8-)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 20 18:52:17 2002 UTC (6 years, 1 month ago) by mheins
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +147 -59 lines
* Add general purpose survey and mailed-form creator for the UI.
  Puts a customer satisfaction survey in the foundation -- probably
  should provide a mailed feedback example, too.

* Make outdated bin/update command work better. Probably should remove this
  script, though.

* Bring "edit items in sequence" into the Vend::Table::Editor intrinsically.
  No need now to do the munging of item_id_left on the select page, but
  still compatible with that (to ease problems for users who have done
  custom select pages).

* Add intro_text option for the table editor so that the first page
  of a wizard can have some stuff.

* Revamp auto-wizard to work with the survey table's mv_metadata structure.
  Provides several standard output options for wizards. (online help
  is in process).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Nov 15 13:43:11 2002 UTC (6 years, 1 month ago) by mheins
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -3 lines

Change locale handling.

* Add new directive "ExecutionLocale", which defaults to "C". This is
  set before every page so that the daemon cannot be left in a bad locale.

* Changed current default resolution code to always honor a "DefaultLocale"
  directive, which existed before but was indirectly set.

* Honor any current "Locale en_US default 1" setting, or its equivalent
  in the LocaleDatabase.

* Change old method of setting locales outside of config() routine
  to setting them within the config. Default is resolved in the normal
  %Default custom routine fashion.

* Change so it only sets defaults from POSIX::localeconv() if specified
  specifically with "Locale en_US". Will not do it indirectly, so
  MV_LOCALE_NO_DEFAULTS will no longer be necessary.

* Keep track of last locale set, and if the default has not otherwise
  been specified explicitly set the default to that.

* Of course still allow default user locale setting with ScratchDefault.

I believe this will be completely compatible with the current setup and
remove ambiguity and possiblity for error.

Some examples:

        ## Always forces default locale to be de_DE, despite any future
        ## settings
        DefaultLocale  de_DE

        ## A way of setting DefaultLocale indirectly, would be rendered
        ## meaninngless by the above. Same if done in LocaleDatabase
        Locale  de_DE  default 1

        ## Set the execution locale to de_DE, so you can put , separated
        ## numbers in the db -- don't know if this would work
        ExecutionLocale  de_DE

If two locales have "default" set and no DefaultLocale is specified,
the behavior is undefined, as the first default found will be set
as the default.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Oct 30 17:39:06 2002 UTC (6 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +32 -9 lines
* Change form hrefs for [table-editor] so that it does not generate
  "process" or "ui" by default. This will allow a URL restriction of
  $Config->{VendURL}/admin/ to be effective. TODO: Change the forms in
  pages/admin to not use [process].

  The methodology is to use mv_nextpage as the form action and set
  mv_action to the action, as well as mv_ui if the user is an admin.

* Add mv_ui CGI parameter to cause the 'ui' action to be performed
  prior to process. This allows ui handling while still using mv_action.
  To be debated -- setting mv_ui by default if $Vend::admin.

* Add handling of yesno_checkbox type so that you don't need to have
  two checkboxes with one/zero and "yes/no".

* Add "default_widget" option which allows setting the default widget
  for a field if none is specified.

* Fix {SEND} handling for nph output.

* Prevent insertion of $Variable->{MV_AUTOLOAD} on every interpolate_html.

* Allow extended handling of interpolation for append/prepend html
  if $opt->{restrict_allow} is set in the table editor.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Oct 27 05:09:39 2002 UTC (6 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +209 -87 lines

Fairly major changes which do two types of things.

* Enhance "views".

	-- Allow selection of view based on a field (like prod_group),
	   allows different editor displays for different product types
	   and many other possiblities.

	-- Allow expansion of values in include_forms, or complete ITL.

	-- Allow linking of field-specific meta from within the
	   db_metaconfig editor (convenience). Not enabled by default.

* Change display in UI.

  -- You can [set display_class]cssclass[/set] and change the default
     display (padding, etc.) in the main content cell.

  -- Default changed to 1 padding and left-justify always.

  -- Widths changed in select and table-editor.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 18 07:12:37 2002 UTC (6 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -2 lines
* Allow passing in of values useful for the "links" widget.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 17 04:46:24 2002 UTC (6 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +23 -16 lines
* Major update to order status functions in UI. Much of this is funded
  thanks to Gary Norton and Broadgap Technologies.

* Created new update_order_status.tag usertag which does most
  of the functions done previously in admin/order_status.html

* Order status funky page code replaced with [table-editor version].

* Now can "Shipped checked orders". If you check the ship_auto
  check box, it will:

	-- settle CC charge with payment processor if that is needed
	   or wanted
  	-- ship all lines on order
	-- update all status to shipped
	-- archive the order

* Added following fields to transactions:

  auth_code  -- contains authorization code needed for charge settlement
  tracking_number -- separate shipping tracking number from status

  Also updated log_transaction to insert auth_code if available.

* Regularized database types for orderline and transactions

* Removed unnecessary blank "reports" sampledata for orderline and
  transaction

* Added much metadata for orderline, transactions, and payment
  settings

* Fix auto-encryption of credit card number in Vend::Payment even
  if no EncryptKey or credit card number.

* Modified Vend::Payment::TestPayment to allow testing of charge
  settlement.

* Allow setting link-no-blank=1 in [table-editor] to prevent addition
  of rows in a linked table for a particular view.

* To test out settlement and batch updates with Vend::Payment::TestPayment

	1. Uncomment "Require" line in interchange.cfg.
	2. Set following payment preferences in Administration->Preferences:

		MV_PAYMENT_MODE    testpayment
		MV_PAYMENT_ID      test
		SETTLE_TRANSACTION 1

	3. Restart, place a new order, and use Order Manager to ship.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:23:32 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +37 -37 lines
* Allow a table to be configured as meta-specific by default.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Oct 4 13:40:17 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -8 lines
* Fix problem where empty but defined check would cause profile error for
  "undefined profile check ''".

* Don't bail out for no fields until ui_wizard_fields is parsed.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Oct 3 17:26:29 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +53 -52 lines
* Make possible to generate multiple tabbed displays per page by
  setting different panel_id options.

* Change full_interpolate to first in ordered transforms, so that
  menu entries that need to intepolate ITL do so before menu processing
  is done.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Sep 28 17:48:32 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +13 -6 lines
* Minor things:

	-- Add some WHATSNEW updates

	-- Optimize the form_name and form_extra stuff

	-- Make help_anchor work as in docs

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:26:40 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
* Fix bug found by Dan Browning where multiple columns of the same name would
  not display in the same editor, even if different tables. (This is the real
  fix, the one last night was just an evil twin.)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Sep 27 07:16:57 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +58 -12 lines
* Remove the suddenly-regenerated can't-change-variable-database
  bug that arrived back with all of the extra templates.

* Add DirectoryIndex index.html to catalog.cfg.

* Add the oft-requested "recompute_transaction" thing for
  transactions, using the next two features.

* Add "include_form" capability for Table::Editor, with the
  ability to put random widgets in the form. Used in the
  recompute_transaction thing, via....

* New mv_cleanup facility that is like mv_click and mv_check, but
  happens after the form processing actions is done.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Sep 24 15:40:58 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +158 -55 lines
* Templateable editor. Example:

[table-editor table=products item_id=os28004]
{TOP_OF_FORM}
{HIDDEN_FIELDS}
<table>
	<tr>
		<td>
			Whoa, boy!
		</td>
		<td>
		{COLUMN_description__WIDGET}
		</td>
	</tr>
	<tr>
		{COLUMN_comment}
	</tr>
	<tr>
	<td colspan=2>
	{:REST}
	</td>
	<tr>
		<td colspan=2>
		{BOTTOM_BUTTONS}
		</td>
	</td>
</table>
{BOTTOM_OF_FORM}
[/table-editor]

   The key feature that makes this usable for me is the {:REST},
   which plops the rest of the fields in a tabbed display inside
   that table cell.

* Allow configuring of link_table with db_metaconfig, example provided
  in foundation with transactions table. Only allows one link table --
  multiple link tables would need to be configured in via the
  extended field or with tag options.

* More bug fixes in table-editor stuff. This thing is really coming along!

* Supply end tags to the table-editor in the page editor. While it works
  without it, performance should be better and a stray [/table-editor]
  won't cause problems.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Sep 24 01:37:31 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +57 -50 lines
* Redo of the meta editors.

	-- Change all to paneled display
	-- One meta-editor for all table configuration options, opens
	   to different panels depending on context.
	-- Remove _meta_ links in meta editors, was always confusing

* Change Foundation to no longer need hard-coded __MVC_SAMPLEURL__ etc
  in mv_metadata.asc. This should solve one of the bigger annoyances
  in relocating catalogs.

* Redo items display metadata.

* Minor changes to customer_bill stuff to remove ugly mailto links.

* Fix display_only so that works again.

* Change ugly, ugly 4.5.5-era admin/add_meta_option page, use
  table editor instead.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Sep 23 20:38:39 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +49 -20 lines
* Starting baby steps on "save all config to meta" which will allow
  dynamic field configuration and then save of a view.

* Allow starting with a particular tab open in a tabbed display.

* Export tag_attr_list routine from Interpolate.pm.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 23 17:57:18 2002 UTC (6 years, 3 months ago) by mheins
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +307 -166 lines
* Last preps for complete templatabililty.

	-- Now can set all styles for rows and cells in metadata.
	-- Titles are handled transparently for tabbed and non-tabbed displays.
	-- Can template the different types of rows:

		row_template   --> The normal data row
		combo_template --> The row that is used for user inputted widgets
		break_template --> The row for titles

    -- Fixed quite a few bugs in row formatting
	-- Old row_template styles should be transparently converted to the
	   new tag_attr_list style

  Next stop -- overall_template.

  	{FORM_INTRO}
	<table>
	<tr>
		<td colspan=2>
		{TOP_BUTTONS}
		</td>
	</tr>
	<tr>
		{COLUMN_SKU}
		{COLUMN_PRICE}
	</tr>
	{REST}
	<tr>
		<td colspan=2>
		{BOTTOM_BUTTONS}