Tony Cook [Mon, 28 May 2012 05:40:08 +0000 (15:40 +1000)]
allow use of the new template system from static pages
Tony Cook [Mon, 28 May 2012 04:13:00 +0000 (14:13 +1000)]
pass variables to the template engine for dynamic article pages
Tony Cook [Mon, 28 May 2012 04:01:59 +0000 (14:01 +1000)]
allow _ in the variable names settable by .set
Tony Cook [Wed, 23 May 2012 03:47:32 +0000 (13:47 +1000)]
change note for
03c73acfe
Tony Cook [Wed, 23 May 2012 03:45:18 +0000 (13:45 +1000)]
fix thumb scale() with a transparent source and a background
Tony Cook [Wed, 23 May 2012 03:09:41 +0000 (13:09 +1000)]
fix a syntax error in admin/order_detail.tmpl
Tony Cook [Tue, 22 May 2012 01:02:04 +0000 (11:02 +1000)]
reset paid_manually when marking an order unpaid
If left set, payment via the public interface (which doesn't set paid_manually
to zero) could be treated as a manual payment.
I could have updated every other payment mechanism to reset paid_manually but
it's too likely I'd have missed a change.
Tony Cook [Tue, 22 May 2012 00:58:20 +0000 (10:58 +1000)]
handle plain scalar errors passed to the message() method
Tony Cook [Mon, 21 May 2012 09:28:59 +0000 (19:28 +1000)]
notes for the manual payment changes
Tony Cook [Mon, 21 May 2012 06:15:59 +0000 (16:15 +1000)]
add a paid_manually column and use that to mark an order having been paid manually
also, send the paid/unpaid note to the audit log
also, require a csrfp for these actions
Tony Cook [Tue, 8 May 2012 05:30:30 +0000 (15:30 +1000)]
fix parsing of link aliases in doclink[]
Tony Cook [Tue, 8 May 2012 05:13:54 +0000 (15:13 +1000)]
doclink[] accepts a link alias too
Tony Cook [Wed, 2 May 2012 23:57:54 +0000 (09:57 +1000)]
when requesting a html version of a generic message, escape the result if it turns out not to be a message id
Tony Cook [Wed, 2 May 2012 23:56:55 +0000 (09:56 +1000)]
an unclosed .if construct would crash
Tony Cook [Mon, 30 Apr 2012 02:07:06 +0000 (12:07 +1000)]
add the Courier::FixedAU shipping driver.
Tony Cook [Fri, 27 Apr 2012 09:09:50 +0000 (19:09 +1000)]
[rt #1290] set the eimage variable to the image being edited
Tony Cook [Fri, 27 Apr 2012 09:07:32 +0000 (19:07 +1000)]
note changes to bsexlsprod.pl and the docs
Tony Cook [Fri, 27 Apr 2012 06:10:50 +0000 (16:10 +1000)]
update importer to do price tiers and tags
and briefly document the thing so I don't need to reverse engineer
it each time.
Tony Cook [Mon, 23 Apr 2012 00:53:28 +0000 (10:53 +1000)]
remove some junk left in Changes from the template3 merge
Tony Cook [Mon, 23 Apr 2012 00:52:20 +0000 (10:52 +1000)]
Tony Cook [Sat, 21 Apr 2012 02:53:30 +0000 (12:53 +1000)]
fix handling of literal tags with a false value
Previously a tag defined as:
tagname => 0
wouldn't be replaced.
Tony Cook [Mon, 23 Apr 2012 00:48:28 +0000 (10:48 +1000)]
Merge template re-re-work
Tony Cook [Fri, 20 Apr 2012 01:03:06 +0000 (11:03 +1000)]
template re-work: prepare for merge
Tony Cook [Fri, 20 Apr 2012 01:02:54 +0000 (11:02 +1000)]
template re-work: documentation
Tony Cook [Fri, 20 Apr 2012 01:02:34 +0000 (11:02 +1000)]
template re-work: add a preload template to allow for common definitions
Tony Cook [Wed, 18 Apr 2012 03:53:33 +0000 (13:53 +1000)]
template re-work: make the article variable available to edit pages
Tony Cook [Tue, 17 Apr 2012 06:57:47 +0000 (16:57 +1000)]
template re-work: prevent infinite recursion on .call - limit to 50 levels
Tony Cook [Tue, 17 Apr 2012 05:21:33 +0000 (15:21 +1000)]
template re-work: set some simple variables for the logon form.
Tony Cook [Tue, 17 Apr 2012 05:20:59 +0000 (15:20 +1000)]
template re-work: basic BSE template variables integration
- set request, cgi, cfg, action values
- re-work message handling to add the messages method to request
objects, for per message error/notice information
- AdminDispatch now flashes the logon error instead of
passing it as a parameter
Tony Cook [Tue, 17 Apr 2012 05:18:12 +0000 (15:18 +1000)]
template re-work: add variable parameters to BSE::Template wrappers
Tony Cook [Tue, 17 Apr 2012 05:16:41 +0000 (15:16 +1000)]
template re-work: implement the template object format callback
Tony Cook [Tue, 17 Apr 2012 05:16:13 +0000 (15:16 +1000)]
template re-work: don't call reftype on non-references
Tony Cook [Tue, 17 Apr 2012 05:15:45 +0000 (15:15 +1000)]
template re-work: allow an empty format code after | in <:= ... :>
Tony Cook [Fri, 6 Apr 2012 00:29:17 +0000 (10:29 +1000)]
template re-work: implement .if / .elsif / .else / .end
Tony Cook [Fri, 6 Apr 2012 00:28:48 +0000 (10:28 +1000)]
template re-work: update test for new .call token
Tony Cook [Wed, 4 Apr 2012 07:20:19 +0000 (17:20 +1000)]
template re-work: update expression parsing tests for the new alpha names
Tony Cook [Wed, 4 Apr 2012 05:48:21 +0000 (15:48 +1000)]
template re-work: re-work parser dispatch from a long if to a method check
Tony Cook [Wed, 4 Apr 2012 05:48:04 +0000 (15:48 +1000)]
template re-work: remove unused $content argument definition
Tony Cook [Wed, 4 Apr 2012 04:15:30 +0000 (14:15 +1000)]
Template re-work: implement .for.
Tony Cook [Wed, 4 Apr 2012 04:15:05 +0000 (14:15 +1000)]
template re-work: if calling an entry on a hash and the entry is a code ref, call the code ref
Tony Cook [Wed, 4 Apr 2012 02:11:48 +0000 (12:11 +1000)]
template re-work: implement .call and .define
Tony Cook [Wed, 4 Apr 2012 02:09:40 +0000 (12:09 +1000)]
template re-work: add some missing version numbers
Tony Cook [Mon, 2 Apr 2012 04:25:50 +0000 (14:25 +1000)]
template re-work: more tests
Tony Cook [Mon, 2 Apr 2012 04:25:41 +0000 (14:25 +1000)]
template re-work: don't treat wrapped objects like normal objects
Tony Cook [Mon, 2 Apr 2012 04:25:10 +0000 (14:25 +1000)]
template re-work: add expression tests to manifest
Tony Cook [Mon, 2 Apr 2012 04:24:49 +0000 (14:24 +1000)]
template re-work: treat undefined top level variable access as unimplementeds
Tony Cook [Mon, 2 Apr 2012 04:23:59 +0000 (14:23 +1000)]
template re-work: add <:% expr ; ... :>
Tony Cook [Mon, 2 Apr 2012 04:22:41 +0000 (14:22 +1000)]
template re-work: add push and unshift array methods
Tony Cook [Mon, 2 Apr 2012 04:22:17 +0000 (14:22 +1000)]
template re-work: parse empty [] correctly
Tony Cook [Sat, 31 Mar 2012 04:31:15 +0000 (15:31 +1100)]
template re-work: hash literals
Tony Cook [Sat, 31 Mar 2012 04:30:28 +0000 (15:30 +1100)]
template re-work: split wrappers out of Expr.pm
Tony Cook [Thu, 29 Mar 2012 08:48:10 +0000 (19:48 +1100)]
template re-work: WIP more expression handling
Tony Cook [Wed, 28 Mar 2012 03:55:48 +0000 (14:55 +1100)]
template re-work: expression tokenization and parsing
Tony Cook [Fri, 23 Mar 2012 08:54:54 +0000 (19:54 +1100)]
template re-work: implement <:case !Foo:>
Tony Cook [Thu, 22 Mar 2012 08:01:19 +0000 (19:01 +1100)]
template re-work: if !Foo tag
Tony Cook [Thu, 22 Mar 2012 08:00:57 +0000 (19:00 +1100)]
template re-work: fix t/t020templates for warnings rule
Tony Cook [Wed, 21 Mar 2012 10:07:54 +0000 (21:07 +1100)]
template re-work: new style tokens
Tony Cook [Tue, 20 Mar 2012 11:08:09 +0000 (22:08 +1100)]
template re-work: avoid a rescan of the text after the last tag
Tony Cook [Wed, 4 Apr 2012 05:07:45 +0000 (15:07 +1000)]
Silly adrian no longer uses upper case flags
Tony Cook [Tue, 20 Mar 2012 10:31:41 +0000 (21:31 +1100)]
change note for
047c851cbb
Tony Cook [Mon, 19 Mar 2012 10:02:06 +0000 (21:02 +1100)]
Tony Cook [Mon, 19 Mar 2012 05:01:36 +0000 (16:01 +1100)]
[rt #1328] no shipping calculation is done for zero weight orders
If all products in the order have weight zero the order is treated
not to be shipped and the shipping cost is set to zero and shipping
name to "none".
Tony Cook [Sat, 17 Mar 2012 04:44:05 +0000 (15:44 +1100)]
handle a 0 cost as an unavailable service
There's still some problems with this though.
Tony Cook [Sun, 11 Mar 2012 23:27:11 +0000 (10:27 +1100)]
load OtherParents before using it
_load_step_kids expected other code to load it, but Adrian hit a case
where it didn't.
Tony Cook [Fri, 9 Mar 2012 05:32:18 +0000 (16:32 +1100)]
add test to check all installed templates for validity
also removed some old, no longer used templates, and
bse_template_check.pl can now test more than one template at a time.
Tony Cook [Fri, 9 Mar 2012 04:00:35 +0000 (15:00 +1100)]
change note for
65c27d058
Tony Cook [Fri, 9 Mar 2012 03:59:29 +0000 (14:59 +1100)]
the product tag on the admin order detail now uses tag_article as it should
Tony Cook [Thu, 8 Mar 2012 04:32:00 +0000 (15:32 +1100)]
the search indexer now uses configured scores
Tony Cook [Thu, 8 Mar 2012 00:28:15 +0000 (11:28 +1100)]
make subscription/isubscription into object tags
use that to add a delete link on the subscription edit page
Tony Cook [Wed, 7 Mar 2012 07:04:18 +0000 (18:04 +1100)]
[rt #1331] option to disable old-style image insertion
It can be disabled on an article basis.
It can be disabled on a global basis.
It can be defaulted to disabled for new articles.
Life is good.
Tony Cook [Wed, 7 Mar 2012 03:24:45 +0000 (14:24 +1100)]
0.21 release
Tony Cook [Wed, 7 Mar 2012 03:43:38 +0000 (14:43 +1100)]
fix the WEBBASE where we save dists
Tony Cook [Wed, 7 Mar 2012 03:41:25 +0000 (14:41 +1100)]
add a missing comma to BSE::UI to avoid a warning
Tony Cook [Wed, 7 Mar 2012 03:29:25 +0000 (14:29 +1100)]
Squirrel::Template.html is generated, don't track it
Tony Cook [Wed, 7 Mar 2012 03:04:47 +0000 (14:04 +1100)]
admin links are now synthesized links to admin.pl
even if it says something else in the admin column of the article
Tony Cook [Wed, 7 Mar 2012 02:48:56 +0000 (13:48 +1100)]
fix the bse_msg_base entry for bse/admin/generic/accessdenied
Tony Cook [Wed, 7 Mar 2012 02:45:44 +0000 (13:45 +1100)]
update bse_modules.pl for DevHelp::Payment::Eway
Tony Cook [Wed, 7 Mar 2012 02:40:36 +0000 (13:40 +1100)]
change notes for recent changes
Tony Cook [Wed, 22 Feb 2012 13:06:17 +0000 (00:06 +1100)]
Rewrite Squirrel::Template into parsing and processing steps
Works in two ways:
- avoid multiple passes over the whole very large text
Previously the templater grabbed the base text, substituted any
wrappers and includes to produce a large string in memory, and then
performs multiple passes of substitution over the whole text until
either there are no tags to replace or we hit a limit.
- avoid processing of iterators in false conditionals
Previousl iterators were processed before conditionals so that
conditionals within the iterator will be processed in the context of
the iterator.
With the changes if the conditional can be resolved only the true
conditional will be processed.
The changes here lead directly to some other improvements:
- line numbers and source files are being tracked, and in the future
may be used to report errors with a bit more precision.
- this provides the base for a more regular templating language that
can work with an object system to avoid having to create tags to
expose functionality that the objects already provide.
Tony Cook [Sun, 4 Mar 2012 03:49:07 +0000 (14:49 +1100)]
<:if children:> has been obsolete forever
Tony Cook [Fri, 2 Mar 2012 12:12:44 +0000 (23:12 +1100)]
ignore the Devel::Cover coverage database
Tony Cook [Mon, 5 Mar 2012 06:07:30 +0000 (17:07 +1100)]
update BSE::Cache::CHI to use the more modern interface
Note that CHI uses Moose and probably isn't suitable for lots of CGI
Adrian Oldham [Mon, 5 Mar 2012 21:25:41 +0000 (08:25 +1100)]
add access to more order fields for subscription order summary
Tony Cook [Wed, 8 Feb 2012 02:19:06 +0000 (13:19 +1100)]
change note for
3f015bd23
Tony Cook [Mon, 6 Feb 2012 11:17:38 +0000 (22:17 +1100)]
[rt #1301] refactor makeIndex.pl into separate CGI and command-line tools
Tony Cook [Mon, 6 Feb 2012 08:56:18 +0000 (19:56 +1100)]
avoid using the old tag where article fields conflict with other form types
Tony Cook [Mon, 6 Feb 2012 03:48:04 +0000 (14:48 +1100)]
Tony Cook [Mon, 6 Feb 2012 03:45:28 +0000 (14:45 +1100)]
the error_img tag could crash producing an inline error for logon_form
_service_error() would pass the error message as $error to logon_form
which then passed that value directly to tag_error_img, which would
attempt to use the non-reference as a hash reference, crashing.
Tony Cook [Tue, 31 Jan 2012 23:19:31 +0000 (10:19 +1100)]
Tony Cook [Tue, 31 Jan 2012 23:17:58 +0000 (10:17 +1100)]
fix the message id for the move up a level message
Tony Cook [Tue, 31 Jan 2012 12:40:50 +0000 (23:40 +1100)]
change notes for the last few changes
Tony Cook [Tue, 31 Jan 2012 12:37:47 +0000 (23:37 +1100)]
the file iterator is now an object iterator, and efile an object tag
this allows use of file_exists in the edit templates
Tony Cook [Tue, 31 Jan 2012 12:36:58 +0000 (23:36 +1100)]
tag_object(_plain)? now checks restricted_method() if available
tag_object also now is implemented in terms of tag_object_plain
Tony Cook [Tue, 31 Jan 2012 12:35:12 +0000 (23:35 +1100)]
add file_exists method to BSE::TB::ArticleFile to check the file exists
full_filename no longer requires the cfg object.
Tony Cook [Tue, 31 Jan 2012 01:09:19 +0000 (12:09 +1100)]
fix <:which tags:> and allow fallback to hash access for tag_article
Tony Cook [Tue, 31 Jan 2012 00:28:30 +0000 (11:28 +1100)]
give BSE::TB::Site a restricted_method() method too
to avoid crashing on the section list
Tony Cook [Mon, 30 Jan 2012 23:48:01 +0000 (10:48 +1100)]
Tony Cook [Mon, 30 Jan 2012 23:46:46 +0000 (10:46 +1100)]
make tag_article smarter so sensible article methods can be called
Tony Cook [Mon, 30 Jan 2012 08:46:01 +0000 (19:46 +1100)]
Tony Cook [Mon, 30 Jan 2012 08:44:43 +0000 (19:44 +1100)]
consistently use admin_tags instead of the old set of admin tag methods