Commit graph

232 commits

Author SHA1 Message Date
JT Smith
0993cba3e9 Cache & If-Modified-Since 2007-09-07 17:55:34 +00:00
Graham Knop
fff821d6e5 fix monthStartEnd function 2007-09-07 14:20:55 +00:00
JT Smith
eb93e97a93 All toolbar icons now have a class called "toolbarIcon" so they can be
styled by external CSS.
2007-08-31 21:35:37 +00:00
JT Smith
2c1f56a009 - rfe: Admin bar doesn't resize with the browser
- fix: Left Admin Bar overlap problem
2007-07-26 23:05:22 +00:00
JT Smith
2082506efb Added Site Starter to WebGUI Initial Configuration. 2007-07-23 19:44:05 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Colin Kuskie
21c4fcb75f This patch adds user invitations, a way for existing users on a site
to send an email to their friends and invite them to create an account
on the site.  The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)

It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace.  Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.

When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in.  This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm.  The latter was so that profile fields can have
their values manually set.  The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.

I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm.  The method is
called getBackToSiteUrl.
2007-06-10 16:38:43 +00:00
James Tolley
c09b2cae1b EMS import/export, Form::*::getValueFromPost(alt_values), and tests 2007-05-29 23:39:24 +00:00
Colin Kuskie
89d48adad2 add missing docs for workflow activity 2007-05-23 17:27:18 +00:00
Frank Dillon
9a8207fee0 Fixed bugs in storage causing multiple storage locations to be created any time a file was created or updated. Fixed a bug which prevents files from potentially breaking on operating systems that are not case sensitive. 2007-05-04 19:19:01 +00:00
Colin Kuskie
38060cc0cb add another privilege method for handling locked assets 2007-04-27 22:20:27 +00:00
Yung Han Khoe
4112758902 Url's in rss feed don't use http_host because http_host includes port and sitenames in conf don't. 2007-04-25 16:20:45 +00:00
Colin Kuskie
76bf1b2ad5 testing for DateTime methods for interval translation and date math. Reformatted some of Session/DateTime for WGBP 2007-04-10 04:51:48 +00:00
Colin Kuskie
4cc810faf3 Added tests for mailToEpoch.
Removed the default setting for mailToEpoch that would have assigned
the epoch to the mail field and automatically caused the method
to fail, returning undef.
2007-04-09 18:01:26 +00:00
Colin Kuskie
1a615f8ad8 replaced a literal loop with isIn, WGBP indented 1 line of Group.pm 2007-04-08 05:07:26 +00:00
Colin Kuskie
88a08fd228 getMimeType returns that string as a default, so the OR will never
be triggered.
2007-04-06 04:59:13 +00:00
Nik Ogura
6d79679194 fixed type in pod 2007-04-01 04:01:52 +00:00
Nik Ogura
b4bc36d23d added custom handling to the %D format to remove initial space in single space days. 2007-04-01 00:38:48 +00:00
Martin Kamerbeek
ba3eedf4a7 Fixed a bug where WG::Sess:Form->param would return duplicate params 2007-03-30 10:51:27 +00:00
JT Smith
c70bf5c256 - fix: Caching (last-modified bug) (misja / E-Wise) 2007-03-28 18:45:59 +00:00
JT Smith
06dbc84312 -fix: Stale pages after user login 2007-03-14 19:20:13 +00:00
JT Smith
172985e2a0 - fix: 7.4 Editing SQL Form seems to break site ...? 2007-03-09 05:38:44 +00:00
JT Smith
3a8bd77cde - Made Weather Data asset more fault tollerant.
- Made CS related upgrades more fault tollerant.
 - Enhanced HTTP caching directives.
2007-03-07 19:12:37 +00:00
JT Smith
47c65b7d66 changed comma to colon to fix problems with macros that use commas as separators 2007-03-05 19:32:11 +00:00
Doug Bell
6e8547169a fixed changelog and some formatting issues 2007-02-01 20:24:00 +00:00
Colin Kuskie
0eba64bc52 Session->Privilege is not design well to work in embedded applications
like the RTE because by default it uses the default user style from settings.
This renders a full page, when we really need a message.

I've added an argument to session->privilege->insufficient to use the
empty style and to use a different message with no embedded macros
to process for logging in.  I tested this on the RTE folder adder and
it works fine.  I duplicated this work in the Image add/edit save routine
as well.

Since privilege->insuffient didn't take arguments before, this preserves
the existing API, which is broken.
2007-01-26 05:45:56 +00:00
JT Smith
600118b40a - fix: Styles were printing double head block headers. 2007-01-07 17:38:24 +00:00
Colin Kuskie
0db2156374 Removed /x from ErrorHandler HTML reformatting since it doesn't use embedded whitespace or comments.
Fixed a typo in the Macro_r_printable where an ending bold tag was dropped.
Add some POD to Asset.pm talking about variables that are added when
processTemplate is called.
More ISA work in the Help system.
2006-11-28 19:20:04 +00:00
Colin Kuskie
a0d2326f9c Found and fixed a bug in ErrorHandler, canShowPerformanceIndicators.
It didn't work with CIDR format IP addresses.  I cannabilized the
code from canShowDebug and refactored it into its own method,
canShowBasedOnIP.  Both canShowDebug and canShowPerformanceIndicators call this.
Updated the docs for the debugIp setting to note that it's used for both
showDebug and showPerformanceIndicators.
Added about 20 more tests to ErrorHandler.t.  Only the two hard methods are
left, fatal (which closes the session at the end) and showDebug, which is
validating a ton of output.
2006-11-21 03:50:15 +00:00
Colin Kuskie
5e074e0939 canShowDebug checked for a literal string, 'text/html' in order to generate
the debug output.  When the default mimetype was changed to text/html; charset=UTF-8,
the literal check always failed.

There are probably a few more of these floating around.
2006-11-17 22:00:35 +00:00
Drake
e3350f05ef Couple of minor code cleanups in WebGUI::Session::DateTime. 2006-11-13 23:20:55 +00:00
JT Smith
4f68a0933c added YUI and YUI-ext
fixed the resizable text area with IE problem
fixed the ad space with IE problem
merged the 7.2.0 and 7.1.4 change logs
2006-11-07 23:15:57 +00:00
Roy Johnson
0ce287c212 fix - Style templates now process metadata properties assigned to them 2006-11-07 16:42:41 +00:00
Doug Bell
e68f609850 WebGUI::Session::Scratch->delete now acts more like Perl's delete()fix: redirectAfterLogin wouldn't work if displayLogin called from WebGUI::Operation::execute 2006-11-07 08:13:23 +00:00
JT Smith
8b20bebc32 merging 7.1.4 changes 2006-11-03 21:29:57 +00:00
Doug Bell
3ab139e6cc fix: SQLReport no longer paginates or runs nested queries when downloading.Stow's warning when cache is disabled is now a debug message, since that's what debug messages are for. 2006-11-02 18:08:39 +00:00
JT Smith
67dfefff08 merging 7.1.3 changes 2006-10-31 23:34:55 +00:00
Doug Bell
2675784f14 Stow now warns if set() is called when cache is disabled 2006-10-30 21:02:15 +00:00
Colin Kuskie
75f159f71b A whole batch of Http test, and a pseudo Request test module to help.
Added accessors to Session/Http.pm, and wrote tests to back them all up.
2006-10-30 18:09:25 +00:00
Colin Kuskie
4ed1ffe3c7 Set default mime-type to include character encoding inside Session/Http.pm
Fix typo in pod in AddUserToGroup workflow.
2006-10-27 04:09:58 +00:00
Colin Kuskie
6ad527c4a9 Bulk tests for Session::Icon
Documented the disabled flag for moveDown and moveUp.  Only the EMS uses this in
the core as far as I can tell.
Optimized out 1 profile call in getBaseURL
2006-10-20 21:19:08 +00:00
Colin Kuskie
37aad09679 Clean up Session::Privilege code.
Add $! to errorHandler message in Session::Icon when toolbar dir cannot be opened.
Change i18n for default toolbar "Default" to be more self explanatory.
2006-10-19 23:19:22 +00:00
Colin Kuskie
acaa0a0e20 remove context sensitive behavior of getStatus and add an accessor instead 2006-10-16 15:58:47 +00:00
Colin Kuskie
defef0767d missed two places where getStatus is called in list context. fixed. 2006-10-16 15:50:03 +00:00
Colin Kuskie
ca7110249f Extend Session::Http::getStatus so that is will also return the
description when called in list context.
Build tests to verify that behavior, and the default settings
for code and description.
2006-10-15 05:23:32 +00:00
Colin Kuskie
eadb9ada36 Implemented the last few tests to give Session::Style 100% coverage.
There are still a few functional tests that need to be written, they're
codified as TODOs.

In Session/Style.pm, in all methods that have a send immediate option
(when sent=1), they no longer send and cache.  This prevents duplicate
heag tags from being generated if generateAdditionalHeadTags was
ever called twice.
2006-10-12 22:43:33 +00:00
Colin Kuskie
514c2263fc Added tests to cover userStyle.
fixed a bug in userStyle where it would not process data that was false.
process will do this, so I made userStyle do it as well by adding
in a definedness check on $output.
2006-10-12 04:53:43 +00:00
Colin Kuskie
01a09cbea9 Add tests for printableStyleTemplateId.
Found a fixed an infinite loop in WebGUI::Style::process

If an asset was requested to be printed who does not have a
printableStyleTemplateId then process would recurse back up the
lineage until it does find an asset with a printableStyleTemplateId.
Eventually, if none is found, it will find the Asset Root, whose
parent is itself, and it will loop forever.

I added code to jump out of the loop if it recurses back to the
assetRoot.
2006-10-12 04:06:13 +00:00
Colin Kuskie
7867ce3573 more POD docs for WebGUI::Session::Style->process that describe hierarchy if templates 2006-10-12 01:13:41 +00:00
Colin Kuskie
a86c34df84 Added 5 more tests for Style's process method, checking for meta tags
for default processing and for meta tags when cache busting is enabled.

Fixed a bug where the default meta tag Generator did not contain the
WebGUI version.

Added lots of POD to the Style module detailing how meta tags are
handled in various cases.
2006-10-11 04:15:21 +00:00