forked from interchange/interchange
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWHATSNEW-4.9
3714 lines (2488 loc) · 116 KB
/
WHATSNEW-4.9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
------------------------------------------------------------------------------
What's new in each version of Interchange
(since the version 4.8 branch)
------------------------------------------------------------------------------
Interchange 5.0.1 released 2004-03-29.
Security
--------
* Plug a security hole which allows an attacker to expose arbitrary variable
contents by using an URL like
http://shop.example.com/cgi-bin/store/__SQLUSER__.
All Interchange applications using the standard "missing" special page
from the demo catalog or a similar one are vulnerable to this attack.
The attacker may learn the SQL access information for your Interchange
application and use this information to read and manipulate sensitive
data.
* Disallow [ and < in page names when setting MV_PAGE and MV_PREV_PAGE
variables.
* Prevent login information from getting re-saved on a session cancel.
* Define a set of CGI keys that we don't want to save to disk, as
@Global::HideCGI.
* Don't show sensitive (i.e. @Global::HideCGI) CGI variables in a dump.
This allows saving a session to disk for diagnositic purposes in case
of order failure.
Core
----
* Allow [dump no-cgi=1 no-session=1 no-env=1] to finetune dump.
* Tolerate leading whitespace in query in Vend::Form.
Admin
-----
* Fix bug where affiliate reports don't filter based on that.
* Make reports with no specified end_date work.
* Fix missing relocation variables in Vend::Table::Editor found by Paul
Vinciguerra.
Usertags
--------
* history-scan: Make pageonly=1 option work correctly when there's no
History saved in the user's session.
Foundation
----------
* Remove unmatched </FORM> from cart_display component.
Debian
------
* Add libhtml-parser-perl to Build-Depends to keep HTML::Entities
module out of the package (Closes: #224435, thanks to Henrik Holmboe
<elements@hack.se> for the bug report)
* Switch to gettext-based debconf templates (Closes: #235494, thanks to
Martin Quinson <Martin.Quinson@tuxfamily.org> for the patch)
------------------------------------------------------------------------------
Interchange 5.0.0 released 2003-12-15.
Core
----
* Make grouping of items work again.
* Fixed Vend::Table::Common bug which prevented Database property HIDE_FIELD
from working properly.
* On 2002-10-21 Canada Post changed symbol NF to NL to reflect the province of
Newfoundland changing its name to "Newfoundland and Labrador". For details
see:
http://www.canadapost.ca/personal/corporate/about/announcements/newpcode-e.asp
The "province" profile check will now accept both NF and NL, but NF is now
deprecated and will be removed in a future release.
* Limit data part of Vend::File:writefile error message to 120 characters in
order to avoid disk abuse, resolve scalar references.
* Add filter option to [scratch], the same as with [value] and [cgi].
* Tolerate empty CGI key/value pairs to avoid unfriendly 500 errors. We
already tolerated one at the beginning and one or more at the end of the
query parameters:
http://www.icdevgroup.org/i/dev/index?&id=abcd
http://www.icdevgroup.org/i/dev/index?id=abcd&&&&&&
Now these are handled gracefully too:
http://www.icdevgroup.org/i/dev/index?&&id=abcd
http://www.icdevgroup.org/i/dev/index?id=abcd&&&xyz=123
* Don't track admin pages.
* Allow multiline values for [scratch mv_data_enable].
UI
--
* Force user to enter name of new page/template/component name to avoid
server crashes.
* Fix content editor to actually use the selected template for new pages.
* inactive/HIDE_FIELD are always ignored for record display in UI.
* Add table= parameter to [query] calls if table is different from products.
This fixes a rare problem that only occurs when using multiple external
databases in one catalog.
* Improve [flex-select] so that key column can have formatting options
via mv_metadata just like all other columns in a table. The value
that is passed to the flex_editor is unadulterated in all cases.
* Make description and icon of menu item 'Tables' a bit more appropriate.
* Add "-" spacer between items in top menu.
* Remove "Accounting" from menus and replace with "Reports". Not active
by default.
* Remove unused code in item select page.
* Add [traffic-report] tag and modified admin/reports/traffic/ByAffiliate
page which calls it. Now reports on large files without crashing the
system. Probably can handle up to 500 MB files with on any kind of a
reasonable server.
Usertags and Filters
--------------------
* New Usertag [report-table] generates an HTML table based on
the results of a query, with bells and whistles. Can do horizontal
(colspan) and vertical (rowspan) subheaders, apply any Interchange
filter or widget to any column, add a CSS class to any column, link
cell contents (and add parameters to the link based on any column in
the query results), add virtual columns based on internal variables
(such as the line number), and skip rows based on an array of toggles
you specify.
Good for making quick tables, sophisticated reports, and easy forms.
Written by Christopher Wenham <cwenham@synesmedia.com>.
* [formel] fetches the label for the display type from the metadata
if not passed with the parameters.
* Removed unfinished [find] usertag.
* Allow customization of [warnings auto=1] with class, style, extra as in
many IC tags.
* Added new "md5" filter that calls Digest::MD5::md5_hex.
* Let [image] handle maddening new ImageMagick behavior that won't operate on
the file named.
Foundation
----------
* Error handling on account maintenance form works better.
* Fixed issue with checkout page payment forms and Mozilla which
might cause Place Order button to be obscured in some cases.
* Separate shipping addresses now appear in customer email
copy and are logged to the orderline table. Also appear
in UI order view and on ship notice emails when appropriate.
* Fixed a few bugs with RMA demo and added line-item details.
* Change Newfoundland from NF to NL in "state" table.
* Added simple demo of contact form.
* Changes to search form(s) now that HIDE_FIELD works.
* Fix ordering of THEME_CSS so it will be set in high-traffic and
PreFork mode.
Menu
----
* Add code which tells you which is the last row in the menu. Improves
ability to add spacers and other HTML formatting.
Options
-------
* Add inventory function back in. Mysteriously removed during the
Options rewrite.
Payment
-------
* Add Linkpoint payment module.
Jobs
----
* Remove update_locales job, as a consequence of the removal of the
[find] usertag.
Shadow
------
* Add stubs for commit and rollback methods, thanks to Thomas Weiss
<pater.noster@gmx.net> for report.
* Use $Vend::Cfg->{DefaultLocale} as fallback locale. The UI destroys
the $Scratch->{mv_locale} setting and the catalog translation
became inconsistent.
i18n
----
* Add and improve foundation and UI translations.
* localize script is now able to detect backtick quoting in [msg].
Debian
------
* Add Interchange variable MV_GETPPID_BROKEN to
/etc/interchange/features.cfg in order to start Interchange
properly on systems with threaded Perl (Closes: #221939).
* Revive USE_FOUNDATION handling in interchange-ui postinst to
keep 4.8.x interchange-cat-foundation catalogs running.
Miscellaneous
-------------
* Add filter to strip trailing slash on the CGI directory to makecat.
------------------------------------------------------------------------------
Interchange 4.9.9 released 2003-10-31.
Core
----
* Remove long-deprecated %Safe hash. Use $CGI, $Carts, $Items, $Config,
$Scratch, and $Values instead of $Safe{cgi} etc.
* Fix locking of NFS sessions.
* Make [bounce ...] more reliable with respect to terminating output
and future parsing.
* Send Content-Size header with downloads.
* Add MD5 password support to UserDB.
To activate, use UserDB "md5" option, i.e.:
UserDB ui md5 1
* Make $Tag object be rebuilt every time a new page is done.
* Fix bug in [PREFIX-discount-subtotal] where quantity was greater
than one. We were overloading the discount_price() routine, which
was dumb, so a new discount_subtotal() routine takes over.
* Add iso_time and null_time options for updating UserDB time_field:
UserDB default null_time 1
UserDB default iso_time 1
* Add stubs for log_error and errstr routines in the database
modules.
* Fix for broken getppid() on Linux systems with threads enabled.
To implement, use
Variable MV_GETPPID_BROKEN 1
in interchange.cfg. It substitutes a syscall(64) for the getppid
call.
This should only be necessary on systems with threads enabled,
which is NOT recommended for IC.
* Allow overriding LENGTH_EXCEPTION_DEFAULT with individual LENGTH_EXCEPTION.
This just makes LENGTH_EXCEPTION accept values like:
Database transactions LENGTH_EXCEPTION_DEFAULT truncate_log
Database transactions LENGTH_EXCEPTION update_date=ignore
* Don't run set_defaults at all for a subcatalog, as they should be set
for the base catalog.
* Allow for SELECT statements in parentheses or other non-word characters.
* Enable [order] tag to specify a variant, not just a base product, when
options are in use, e.g.:
[order code="ABCD" variant="ABCD-XYZ"]Buy now</a>
* Fix a problem where the following worked:
$Tag->price({ code => $sku });
but the following failed:
$Tag->price($sku);
The problem was highlighted by Paul Vinciguerra, in IRC.
* Add date-based counter capability to Vend::CounterFile.
-- In a database, you just add
Database tablename AUTO_NUMBER_DATE 1
To have real autonumbering, you still must define AUTO_NUMBER.
This of course does not work with AUTO_SEQUENCE.
You must make sure your key field type is at least 12 chars.
-- In a counter tag, you do:
[counter file=filename.ctr date=local]
or
$Tag->counter({ file => $fn, date => 'local'});
To define GMT as being used for the numbering, you do:
[counter file=filename.ctr date=gmt]
* Fix problems that GDBM and some other types would not honor HIDE_AUTO_FILES.
* Allow an ActionMap, Autoload, or profile to generate a completely
virtual page and avoid readin() of anything.
* Fix bug that prevented [loop-change foo] from working when the range of
conditions was only 0 and 1.
* Add no_set boolean option to [userdb], which prevents userdb row from
being set with values.
* Don't throw away UseModifier cart modifiers on every cart update.
They can still be updated via CGI mv_item_option if it's set.
* Remove insurance of trailing null fields being included in arrays.
Any traversing of the arrays should be keyed on code/sku anyway,
and that is the only one that needs to be fully populated.
Fix provided by Brian Rogers of Groxis -- caused problems for one
of his custom ordering routines.
* Allow return of page from readin (or readfile in locale mode) without
the locale language substitutions done. This allows proper edits of
pages.
* Allow set of status header even when not doing redirect.
* Fix double-setting of Content-Type header, use proper header
setting routine.
* Never set a cookie when mv_tmp_session in effect.
* Add DeliverImage directive that enables fast IC delivery of
images requested from it.
To enable, do in catalog.cfg:
DeliverImage Yes
If the file extension is present and the MimeType for that extension
begins with "image/", the path will be adjusted to add ImageDir
or ImageDirSecure, and a 302 issued.
This happens before database or session opens, and is quite fast.
Sets $Vend::tmp_session so no cookie is issued.
* Make frequently-used HTML::Entities encode_entities routine available
to embedded Perl.
* Allow timed_build to autocreate directory path when filename with path
component is specified. This makes it easier to do dynamic directories
based on CGI parameters etc. when there are thousands of timed build
files. E.g.:
[timed-build file="timed/@@MV_PAGE@@/[item-code]" minutes=86400] ...
* Avoid cluttering of global logs with
'Attempt to call perl from within Safe'.
* Fix prefork problem that might be biting someone, could cause missing
filters.
* Add ability to access and test the $opt hash for any search
loop.
[loop prefix=top list="a b c"]
[loop list="1 2 3" foo-opt="[top-code]"]
[if-loop-header-param foo_opt]
Foo is there! It is: [loop-header-param foo_opt]
[/if-loop-header-param]
[if-loop-header-param !foo_opt]
Foo is NOT there! It is: [loop-header-param foo_opt]
[/if-loop-header-param]
[if-loop-header-param foo_opt eq a]
Foo is equal to a.
[else]
Foo is NOT equal to a.
[/else]
[/if-loop-header-param]
<br>
[/loop]
<p>
[/loop]
* Add module-version intrinsic test:
<input name=mv_column_op
type=hidden
value="[if module-version Text::Query]aq[else]rm[/else][/if]"
>
* Enhance [PREFIX-alternate] to support
[PREFIX-alternate] Defaults to [value mv_item_alternate] or 2 (same)
[PREFIX-alternate N] Alternate every N items (same)
[PREFIX-alternate except_last] Every time except last in list
[PREFIX-alternate except_first] Every time except last in list
[PREFIX-alternate first_only] Only on the first item
[PREFIX-alternate last_only] Only on the last item
[PREFIX-alternate 0] Alias for first_only
[PREFIX-alternate -1] Alias for except_last
* Move handling of anchor option from tag_area to vendURL.
* Add new facility for storing address books in outboard address table,
instead of an in-record hash, and start framework for adding different
personalities to UserDB.
* Move UserDB's "logout" function to a subroutine so that it can be inherited.
* Add RedirectCache directive which allows redirected page requests to
be set to mv_tmp_session then written to the target from which it was
redirected. This allows a complete web site to be mirrored to static
HTML as it is requested, accompanied with the proper setting of
AcceptRedirect in Interchange and ErrorDocument in the Apache server.
To use:
* Set ErrorDocument 404 to the Interchange URL in Apache.
* Set "AcceptRedirect Yes" in interchange.cfg.
* Set "RedirectCache /var/www/html" in interchange.cfg (use
your document root in place of /var/www/html).
When a page http://yourdomain.tld/subdir/page.html is not found,
Interchange gets a redirect which causes it to set mv_tmp_session=1.
If Interchange doesn't find the page, then it returns "missing" and
no writing is done. If IC does find the page, it is written to
/var/www/html/subdir/page.html and the page will be found on next
access.
Exclude on HTTP server side can be done with permissions -- don't set
it writable by IC daemon if you don't want it written.
* Fix problem where defining blank GlobalSub would kill *all* globalsubs.
* Never issue a session ID on timed-build URL.
* Remove conditional for caching history on Pragma: no-cache -- this is
all wrong. The directive is to this page transaction of Interchange,
i.e. timed-build and such. It should not be used to prevent building
of history, partly because browsers may send it for their own reason.
* Prevent autovivification of $CGI::values{mv_username}, and make CookieLogin
slightly more efficient when already logged in.
* Allow custom increment and decrement routines with inc-routine and
dec-routine options. They can be an inline code reference:
[counter
file=testcount
inc-routine=`sub { shift(@_) + 2 }`
]
[counter
file=testcount
decrement=1
dec-routine=`sub { shift(@_) - 2 }`
]
or a Sub or GlobalSub:
catalog.cfg:
Sub three_steps_forward <<EOR
sub {
my $val = shift; $val += 3; return $val;
}
EOR
Sub two_steps_back <<EOR
sub {
my $val = shift; $val -= 2; return $val;
}
EOR
[counter file=testcount inc-routine=three_steps_forward]
[counter file=testcount dec-routine=two_steps_back decrement=1]
* Add [error auto=1] similar to [warnings auto=1].
* Fix nested [elsif] problem.
* Fix problem with alphabetic sorting of more lists where search results
appeared in the wrong group.
* Add delimiter option to checked/selected tags. Patch provided by
Mat Jones <mat@thinkopensource.com>.
* Implement Paul Vinciguerra's suggestion to not save mv_password in
the History hash.
You can also set up a different NoHistory set via
@Vend::Dispatch::NoHistory = qw/ foo bar mv_credit_card_number /;
Tables
------
* Set up error reporting to be able to catch database errors
and display in session, catalog error.log, or global error.log
1. Logging levels are on a per-table basis, with
defaults that can be set with DatabaseDefault:
DatabaseDefault LOG_ERROR_CATALOG 1
DatabaseDefault LOG_ERROR_SESSION 1
DatabaseDefault LOG_ERROR_GLOBAL 0
DatabaseDefault DIE_ERROR 0
2. Log errors to the catalog error.log by default.
Database inventory LOG_ERROR_CATALOG 0|1*
3. Log errors to the session always if an admin, and
controlled by configuration if not.
Database inventory LOG_ERROR_SESSION 0|1*
This has the effect of giving a big red error message when such
an event as failing to create a record occured. In most cases,
you would be able to use the <-Back button and fix the error
and resubmit.
The error tag is "table foo", where foo is the table.
4. Die at the page level (500 error) only if that is explicit
request in config for that table:
Database inventory DIE_ERROR 0*|1
5. Log errors globally only on explicit request:
Database inventory LOG_ERROR_GLOBAL 0*|1
6. LENGTH_EXCEPTION errors go into warnings if they are handled
with truncate.
* default
* Fix numeric sorting in SQL statements if a field is NUMERIC.
* Allow limits from SQL statement to flow through even if ml="" is set
and let direct_sql.html admin page honor them.
* Fix table names so that we don't have the funky .txt problems
where a SQL query would not work on a DBM database unless
the file name base matched the table name.
* Attempt to regularize error messages so that they can be
more easily translated. Now should have about 50% less
variations.
* Prevent internal server error when $db->row($key) fetches no results
within DBI module.
* Fix bug in DBI module that caused arbitrary column to get set
to primary key instead of to the intended new value.
* Add internal Interchange locking routines and support for GDBM. (Should
work on others as well but is not tested.)
To set internal locking, just put in the config:
Database access IC_LOCKING 1
On GDBM, employs the GDBM_NOLOCK parameter.
It should prevent the errors in access.gdbm when multiple admins are
logged in. It might also serve to make userdb in GDBM somewhat usable.
Search
------
* Add Altavista-style search operator with Text::Query (CPAN) module.
Calls Text::Query::*AdvancedString with op=aq, calls
Text::Query::*SimpleString with op=tq.
Examples:
[loop search="
se=hammer -framing
sf=description
fi=products
st=db
co=yes
rf=*
op=tq
"]
[loop-code] [loop-param description]<br>
[/loop]
[loop search="
se=hammer NEAR framing
sf=description
fi=products
st=db
co=yes
rf=*
op=aq
"]
[loop-code] [loop-param description]<br>
[/loop]
Honors mv_case (-case option), mv_all_chars (-regexp option),
mv_substring_match (-whole option) and mv_exact_match
(-litspace option).
* Add ability to map in custom search routines. In interchange.cfg:
CodeDef find_hammer SearchOp find_hammer
CodeDef find_hammer Routine <<EOR
sub {
my($self, $i, $string, $opname);
#::logDebug("Calling fake SearchOp");
return sub {
#::logDebug("testing with fake SearchOp");
my $string = shift;
$string =~ /hammer/i;
};
}
EOR
Now you can do:
[loop search="
se=hammer NOT framing
sf=description
fi=products
st=db
co=yes
rf=*
op=find_hammer
"]
[loop-code] [loop-param description]<br>
[/loop]
The passed parameters are:
- The search object ($self)
- The index into coordinated search array ($i)
- The pattern to match
- The name of the op (find_hammer in this case)
Must return a sub which receives the data to match and returns
1 if it matches. DOES NOT HONOR mv_negate UNLESS you tell it to.
See Vend::Search::create_text_query for an example of how to
return a proper routine and look in search object for the
associated params.
Payment
-------
* CCVS payment module removed.
* Add support for Canadian PSiGate gateway. Thanks to Gary Benson for his
work and testing.
* Fix potential PreFork problems in AuthorizeNet module.
* Add a "x_ADC_Delim_Character" (set to \037, which is ASCII US)
to replace the default field separator (,). A comma isn't a
very useful default, as people tend to use them in their address.
Problem reported, and fix tested, by John Young in IRC.
Shipping
--------
* Don't cache zero UPS shipping cost.
* UPS no longer accepts UK as a country code for shipments to
Great Britain.
-- did an exception remap for UK --> GB
-- Added UPS_COUNTRY_REMAP code so that this type of thing
can be done elsewhere.
# Remap Monaco to France for UPS
Variable UPS_COUNTRY_REMAP MC=FR
* Add ability to build weight adjustments based on Simple options
settings. Requires a "weight" field in the options table.
* Add hide_error option to suppress error message when no shipping methods
are found.
* Allow comment lines in shipping.asc, with leading # mark.
UI
--
* Add missing user and password to SQL DUMP COMMAND in xfer_catalog
UserTag.
* Remove the Term modules from checks -- they have nothing to do with
IC operation and Term::ReadKey can cause core dumps.
* Remove extra <html> from templates.
* Force name to text variable, so numerical-only names will not cause
crash when a string function is done.
* Minor improvements in backup setup.
-- Let backup tables be explicitly specified in
UI_BACKUP_TABLES.
-- If no UI_BACKUP_TABLES, honor first "backup" then
"!display_filter" in table metadata.
-- Display size of downloadable file.
-- Prevent spurious .html extension on download link.
* Add meta_editor support for MAXLENGTH and JavaScript checks.
* Made default metadata (for merge) match foundation.
* Fix inability to set and retain multiple user groups with fix
provided by Sonny Cook.
* Prevent display of meta database when relocated from meta editor.
* Write the selected PGP/GPG key to the Variable table setting.
* Missing session id added to form in various admin pages
(thanks to Paul Vinciguerra <pvinci@vinciguerra.com> for the patch).
* Add check to disallow invalid option names.
* Old-style simple option updates were ineffective because the
"Commit Changes" button's mv_nextpage was set to "admin/item"
instead of @@MV_PAGE@@.
* Allow tracking number to be updated on ship.
Fix contributed by Sebastian Braun.
* Get rid of strange extra loop for billing information in customer_view
pages that just caused extra queries for [bill-data userdb ...] calls.
* Check whether userdb is LARGE instead of transactions on customer page.
* Ensure that secure mode is forced before we bounce to login.
* Fix the long-standing problem that sorts and groupings would not
work on query-by-example search returns.
* Fix problem with creating new option when no prior options exist.
Fix found by Reid Sutherland (reid-ic@thirddimension.net).
* Add ability to edit pages using Mozilla composer, or any HTML editor
that can publish with an HTTP put. Includes ability to upload images
with the files, create new files, and more.
* ONLY operates on the area between <!-- BEGIN CONTENT --> and
<!-- END CONTENT -->.
* Pulls the page title from the <title></title> of the PUT page.
* If a new page is PUT, it is wrapped with the template used in
the nearest DirectoryIndex ("index" by default). If a new file
"trucks/chevy/mom.html" is created and does not exist, the following
files will be used as the template in this order if they exist:
trucks/chevy/index
trucks/index
index
* Update [if-mm ...] to have a "pagematch" and "filematch" function
that allows security checks based on the files and pages fields
in the access table. This allows certain users to have publish
permission only on certain image and page directories. For
instance, if the user "bubba" is only to edit files in the
"trucks" hierarchy, you would want in access:
username:bubba
files:images/trucks/
pages:trucks/
* Add action "admin_publish" that handles the PUT process. Requires
user be logged in as an admin, and requires
* Automatic RCS versioning if PUBLISH_DO_RCS variable is set. Can
stop publish if RCS error when PUBLISH_QUIT_ON_RCS_ERROR Variable
is set.
* Adding "ui_mozilla_edit=1" to the URL keeps ITL tags from being
interpolated within the BEGIN CONTENT/END CONTENT area. This
allows
* Automatically adjusts image paths in the uploaded file to be
relative to the directory the page is in. This allows individual
directories to use different sets of images and Mozilla won't
willy-nilly overwrite things in other directories.
* Can prevent any publishing to the pages root if PUBLISH_NO_PAGE_ROOT
is set.
* Allow component modification via Mozilla editor.
If you follow the "show tags" link (i.e. add ui_mozilla_edit=1 to
the param list), it will output the current component set
in meta headers:
<meta name="component" content="1;component;search_box_small">
<meta name="component" content="2;component;cart_tiny">
<meta name="component" content="3;component;product_tree">
<meta name="component" content="4;component;">
<meta name="component" content="5;component;cross">
<meta name="component" content="5;banner;Specials">
<meta name="component" content="5;cols;2">
<meta name="component" content="5;size;2">
<meta name="component" content="6;component;random">
<meta name="component" content="6;banner;See also...">
<meta name="component" content="6;cols;1">
<meta name="component" content="6;size;3">
<meta name="component" content="7;component;">
<meta name="component" content="8;component;">
For instance, component 5 above is exactly equivalent to:
[control-set]
[component]cross[/component]
[banner][L]Specials[/component]
[cols]2[/cols]
[size]2[/size]
[/control-set]
* Also turn on no_locale_parse in ui_mozilla_edit mode, so that
locale-based information won't be lost.
* Add ability to manipulate any [set setting]value[/set] (tmpn?, seti also)
via meta header edit on Mozilla.
Same procedure, just add a meta_header:
<meta name=setting content="tmpn;setting_name;The setting value">
and that setting will be modified accordingly.
Does not remove settings, only sets the ones found in headers.
* Prevent linked forms et al from coming in from table metadata.
* Add [flex-select] tag, complete replacement for and enhancement to
the admin/flex_select.html page in the UI.
* Each colunn can have individual sort settings, and can individually
be specified to use alphabetic more lists when it is the sorting
column. (ui_more_alpha, ui_sort_option)
* Group "magnifying glass" can be turned off in metadata. (fs_no_group)
* Filters can be specified in metadata instead of just ui_data_fields.
(fs_display_filter)
* Links to other pages specifying the field value can be done
easily. For example, to add a per-sku link on the products
table to the item_options page, put in ui_data_fields
sku
sku-options
price
description
In the metadata for products::sku-options, do:
'extended.fs_link_page' => 'admin/item_options',
'extended.fs_link_parm' => 'item_id',
'extended.fs_link_anchor' => 'Edit Options',
That will produce:
<a href="__CGI_URL__/admin/item_options?item_id=SKU">Edit Options</a>
Can be shorthand-set in ui_data_fields with:
sku
sku-admin/item_options:item_id:Edit Options
price
description
* Columns can be calculated values by putting embedded perl code in
fs_data_calc. The current row hash (with all values in the select colums)
is put in $Vend::Interpolate::item. You can set tables to be pre-opened
in fs_data_tables.
This code in products::prod_group::extended.fs_data_calc:
if($item->{prod_group} eq $prev) {
return "''";
}
else {
return $prev = $item->{prod_group};
}
will produce ditto marks if a prod_group is duplicated.
* An explicit "edit record" link can be enabled. (explicit_edit)
* The edit link on the key column can be disabled. (no_code_link)
* Checkboxes can be disabled. (no_checkbox)
* Check All/Uncheck All JavaScript links can be automatically inserted.
(check_uncheck_all)
* The lines can be numbered. (number_list)
* Header cell and data cell CSS is completely settable in metadata on a
per-column basis.
'extended.header_link_class' => 'Header row link CSS class',
'extended.header_cell_class' => 'Header cell CSS class',
'extended.header_cell_style' => 'Header cell CSS style',
'extended.data_cell_class' => 'Data cell CSS class',
'extended.data_cell_style' => 'Data cell CSS style',
While no metadata edit is provided for data_cell_width, data_cell_height,
data_cell_align, they would be honored if set.
The header rows and data rows can be set in the table metadata:
'extended.header_row_class' => 'Header row CSS class',
'extended.header_row_style' => 'Header row CSS style',
'extended.data_row_class_odd' => 'Data row CSS class, odd numbers',
'extended.data_row_class_even' => 'Data row CSS class, even numbers',
* No longer check for Term::Readline and Term::ReadKey.
* Explicitly set filters to avoid mangling of promotions
* Don't allow user to change order number through order status page.
* Ensure that you don't leave secure server through metaconfig link.
* Remove obsolete wizard pages.
Form
----
* Honor flag telling we already have data.