Commit graph

15368 commits

Author SHA1 Message Date
Colin Kuskie
8a448e8f96 Tests for methods that die. Strange tom-foolery to get $@ into the logged message... 2010-08-10 10:27:45 -07:00
Colin Kuskie
3a9a3dd8e9 Add retry in case of problems in dispatch. Add tests for logging errors for bad templates. 2010-08-10 10:27:45 -07:00
Colin Kuskie
25fb019a18 Prepare a test method for throwing Template exceptions. Add code to handle HTTP 304 for visitors. 2010-08-10 10:27:45 -07:00
Colin Kuskie
08f453475e Add extra tests for denied www methods, checking asset state, add comments to test, and cleanup code. 2010-08-10 10:27:45 -07:00
Colin Kuskie
1e00e6a93f Complete refactor, to handle defaulting to www_view. 2010-08-10 10:27:45 -07:00
Colin Kuskie
7a1abd7bc0 Alter URL permutations to handle the cases when there is a leading / in the URL. Add the dispatch subroutine. 2010-08-10 10:27:45 -07:00
Colin Kuskie
c987747409 Explicit return of undef in the fall through case. Test for notFound now look for undef. Added POD. 2010-08-10 10:27:45 -07:00
Colin Kuskie
7e96b15141 Check for fragment existance. Clarify a test. 2010-08-10 10:27:44 -07:00
Colin Kuskie
a649816db8 handle query params before URLs 2010-08-10 10:27:44 -07:00
Colin Kuskie
cb4189b7da Initial pass at dispatch 2010-08-10 10:27:44 -07:00
Colin Kuskie
ead0c0d0e9 Fix test setup and lib dirs. 2010-08-10 10:27:44 -07:00
Colin Kuskie
35284c0753 getUrlPermutations, and a stub for Content::Asset::dispatch so the test doesn't die. 2010-08-10 10:27:44 -07:00
Colin Kuskie
32a75ebe38 Use correct path to get to WebGUI::Test 2010-08-10 10:27:44 -07:00
Colin Kuskie
092e3502c2 Add stub dispatch sub to Asset.pm 2010-08-10 10:27:44 -07:00
Doug Bell
9d6463f1e7 make sure something is returned 2010-08-10 10:27:44 -07:00
Doug Bell
2ccbdf4e19 fix %INC jiggery-pokery 2010-08-10 10:27:44 -07:00
Doug Bell
00b41fb2a0 add tests for declined behavior 2010-08-10 10:27:44 -07:00
Doug Bell
b5e1db8ff9 test default www_view with unhandled fragment 2010-08-10 10:27:44 -07:00
Doug Bell
b77f98ed6a test ?func= dispatch with unhandled fragment 2010-08-10 10:27:44 -07:00
Doug Bell
7ab4c2d95f test overridden dispatch should trump default 2010-08-10 10:27:44 -07:00
Doug Bell
2d8c354cb3 add tests for new dispatch system 2010-08-10 10:27:43 -07:00
Doug Bell
994f0aa98c fix 11770 Starter needs to set all account plugins
Refactored HomePage wizard to have a method to update
all places where the style template needs to be updated
2010-08-10 12:24:28 -05:00
Doug Bell
89c1afd10e fix 11758: formatting on account stuff is wrong 2010-08-10 11:51:55 -05:00
Scott Walters
7eda8f7d46 Numerous corrections to tests.
Currently, "Looks like you failed 62 tests of 3882".
Many transient, non-deterministic failures lurk and specific asset types need special cases added in test subclasses.
2010-08-10 11:24:39 -04:00
Colin Kuskie
b8917d4e57 Make sure that keywords are always returned in alphabetical order in the WikiMaster byKeyword view. 2010-08-09 19:27:45 -07:00
Colin Kuskie
b5ef9fc9e7 Add POD for the new sortOrder option to Keyword's getMatchingAssets 2010-08-09 18:57:41 -07:00
Colin Kuskie
9fafa25bf5 Give ZipArchives a default template. Fixes bug #11769. 2010-08-09 15:26:19 -07:00
Scott Walters
d57d9ff962 Don't blow up on view when there are no WebGUI::Asset::WikiPage
child objects under us to feature.  Also, the only reason that -1
on the rand works is because Perl is nice.
2010-08-09 15:17:00 -04:00
Scott Walters
c1a918493f Force scalar context to avoid getting () back and the associated odd number of elements in hash warnings. 2010-08-09 14:46:45 -04:00
Scott Walters
b7cb774e60 Avoid warnings about odd numbers of form elements. session->form->process
will return () when called in list context so force scalar context and it
nicely gives us an undef.
2010-08-09 14:39:53 -04:00
Scott Walters
13e7d4c6d5 Fix: WebGUI::Asset::File::ZipArchive specifies a default template of '' 2010-08-09 13:39:16 -04:00
Colin Kuskie
a1b1eaff3c Add the default email subscription template again, since it seems to be missing from the 7.8 sites that got upgraded. 2010-08-09 10:19:35 -07:00
Colin Kuskie
7a21887110 Fix a bad call to quote_identifer. Fixes bug #11766. 2010-08-08 16:27:56 -07:00
Doug Bell
455f850ac0 history now works. JS needs locale month names 2010-08-06 18:41:08 -05:00
Doug Bell
0f9500b2cc fix my tyops 2010-08-06 18:05:03 -05:00
Doug Bell
fd524c9e2a add revisions to asset data in admin console 2010-08-06 17:50:57 -05:00
Doug Bell
a13fee07a0 add getRevisionDates method 2010-08-06 17:50:28 -05:00
Doug Bell
6d6e5768ef fix typo preventing Article from add/edit 2010-08-06 17:02:09 -05:00
Doug Bell
7dc57ce29d allow both className (new) and class (backcompat) 2010-08-06 17:00:12 -05:00
Doug Bell
fc6c84e737 fix class/className problems in www_editSave 2010-08-06 17:00:12 -05:00
Doug Bell
9949666926 temporary fix to the getToolbar problem
Later we should make getToolbar add the toolbar in a hidden
state. The Admin Console JS can unhide it.
2010-08-06 17:00:12 -05:00
Doug Bell
8c631fbc86 only show asset helpers when editing, not adding 2010-08-06 17:00:12 -05:00
Doug Bell
a99b15a38d remove getAdminConsole preventing editing Collab 2010-08-06 17:00:12 -05:00
Doug Bell
5e64d6f5fb fix problem with options preventing asset editing 2010-08-06 17:00:11 -05:00
Doug Bell
f1fed19e24 remove AdminBar macro from all templates 2010-08-06 17:00:11 -05:00
Doug Bell
4eee60512d add i18n macro alias 2010-08-06 17:00:11 -05:00
Doug Bell
10d6bd71cf remove irrelevant admin console items from config 2010-08-06 17:00:11 -05:00
Doug Bell
754fc0abe7 update current version tag after loaded 2010-08-06 17:00:10 -05:00
Colin Kuskie
ad9d5604e0 Remove duplicate default in CartItem options. 2010-08-06 12:21:03 -07:00
Colin Kuskie
be42b7118c Migrate CartItem from Class::InsideOut to Moose. 2010-08-05 16:24:10 -07:00