4310 Commits

Author SHA1 Message Date
ian%hixie.ch
a1b781fce9 Add support for an "otherwise" block which is called if no exception is triggered. Also, refactor the code to shorten it a bit.
git-svn-id: svn://10.0.0.236/trunk@135634 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-26 02:07:19 +00:00
ian%hixie.ch
d7aee7f938 Handle exceptions raised inside exception blocks by reraising them after the finally block. This code is going to need some refactoring at some point...
git-svn-id: svn://10.0.0.236/trunk@135632 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 16:48:54 +00:00
ian%hixie.ch
f9d8540251 If the exception isn't handled, it should be re-raised.
git-svn-id: svn://10.0.0.236/trunk@135631 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 16:20:03 +00:00
ian%hixie.ch
b2500534f2 Minor comment fixup
git-svn-id: svn://10.0.0.236/trunk@135630 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 14:14:11 +00:00
ian%hixie.ch
1f99610ede Change the semantics of |try| to return the result of the try block when no exception is raised.
git-svn-id: svn://10.0.0.236/trunk@135629 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 12:37:38 +00:00
ian%hixie.ch
881e6f7054 Add basic stringification to exceptions
git-svn-id: svn://10.0.0.236/trunk@135628 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 12:20:34 +00:00
ian%hixie.ch
125131ad8a A standalone class to provide thorough Exception handling in Perl. This, like the Magic* classes, could easily be used separate from PLIF.
git-svn-id: svn://10.0.0.236/trunk@135625 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-25 00:39:40 +00:00
ian%hixie.ch
85dc00f7b1 Remove the annoying 'tried to log in but was already logged in' warning that would be hit each time someone clicked a link to, or used a bookmark to, a login page.
git-svn-id: svn://10.0.0.236/trunk@135590 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:49:01 +00:00
ian%hixie.ch
2cee3c9a12 Mark GET and HEAD requests as idempotent. Commands still have to explicitly support this, of course.
git-svn-id: svn://10.0.0.236/trunk@135589 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:47:20 +00:00
ian%hixie.ch
10d67334f2 Add support for cookies using the new getSessionData() API.
git-svn-id: svn://10.0.0.236/trunk@135588 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:46:30 +00:00
ian%hixie.ch
c0c07ec40c Minor fixups on the regexps. Add support for '--' to signal the end of the arguments (although at the moment it only cancels the previous argument rather than indicating the end of any flag arguments). Change the --batch-force-defaults to be the default --batch mode, and make the old --batch mode be called --batch-no-defaults. This could change again later.
git-svn-id: svn://10.0.0.236/trunk@135587 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:45:37 +00:00
ian%hixie.ch
cebe0dd11b since the default getMetaData() does the same now, removing this redundant implementation
git-svn-id: svn://10.0.0.236/trunk@135586 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:42:57 +00:00
ian%hixie.ch
2ed118ae9c Change getMetaData() to default to undef rather than requiring that it be implemented in descendants. Introduce getSessionData() for things like cookies. Introduce idempotent() so that protocols that can guarentee side-effect-free requests have a way of signalling their wishes.
git-svn-id: svn://10.0.0.236/trunk@135585 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:41:53 +00:00
ian%hixie.ch
fdefe32495 user prefs should be a POST not a GET.
git-svn-id: svn://10.0.0.236/trunk@135584 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:39:43 +00:00
ian%hixie.ch
4fef49a101 Have to escape the error message, otherwise it gets treated as HTML, oops\!
git-svn-id: svn://10.0.0.236/trunk@135583 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:38:50 +00:00
ian%hixie.ch
ee041f841f Minor typo fix in debug code
git-svn-id: svn://10.0.0.236/trunk@135582 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:37:42 +00:00
ian%hixie.ch
3c073dde8a Change the Controller to inherit from PLIF::Service, so that we can reuse the 'dispatch' method from that class in Program.pm. Change the defaulting of the application name to be handled by a default name() implementation in Programepm rather than setting it in Controller.pm. Added a comment next to dispatchMethod() to clarify its role.
git-svn-id: svn://10.0.0.236/trunk@135581 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 11:35:06 +00:00
bugreport%peshkin.net
bc4685bc33 Bug 186383 Checksetup leaves editor backups of localconfig accessible (revised)
r=jaypee
a=justdave


git-svn-id: svn://10.0.0.236/trunk@135578 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 01:53:34 +00:00
bugreport%peshkin.net
e9306419fd Backing out patch from bug 186383 because it broke quicksearch
git-svn-id: svn://10.0.0.236/trunk@135577 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 01:53:33 +00:00
ian%hixie.ch
428a3482b2 Round correctly. This makes the '1 hour' and other singular forms work correctly.
git-svn-id: svn://10.0.0.236/trunk@135575 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 22:21:59 +00:00
ian%hixie.ch
37d6739681 Add a 'sprintf' operator to scalars
git-svn-id: svn://10.0.0.236/trunk@135574 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 22:21:07 +00:00
ian%hixie.ch
2c7eed2733 Add a convenient 'time delta in seconds' to 'brief duration description in english' convertor. Escaped the values in an HTML output string.
git-svn-id: svn://10.0.0.236/trunk@135570 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 15:44:50 +00:00
bbaetz%student.usyd.edu.au
2ab5b50ebe Bug 186337 - Param lookup should fall back to defaults
r=joel, a=justdave


git-svn-id: svn://10.0.0.236/trunk@135556 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 23:39:48 +00:00
bugreport%peshkin.net
49642c7b2f Bug 186383 Checksetup leaves editor backups of localconfig accessible
r=zach
a=justdave


git-svn-id: svn://10.0.0.236/trunk@135553 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 21:04:05 +00:00
gerv%gerv.net
c5c45348f7 Rebuild HTML and text versions of documentation for 2.17.2 release.
git-svn-id: svn://10.0.0.236/trunk@135547 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 16:33:58 +00:00
bbaetz%student.usyd.edu.au
d17356699e Bug 180870 - Remove old shadowdb manual replication code
r, a=myk


git-svn-id: svn://10.0.0.236/trunk@135530 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 23:35:29 +00:00
bbaetz%student.usyd.edu.au
ebae797eae Bug 173622 - Move template handling into a module. r=justdave, joel, a=justdave
git-svn-id: svn://10.0.0.236/trunk@135516 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 07:21:43 +00:00
bugreport%peshkin.net
4051b6266e Bug 185760: New group system doesn't upgrade transparently if usebuggroups = 0
r=justdave
a=justdave


git-svn-id: svn://10.0.0.236/trunk@135515 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 07:16:28 +00:00
justdave%syndicomm.com
d6a03594c2 Bug 186218: importxml.pl was doing a query against the products table using the old schema
Patch by Jonathan Schatz <jon@vmware.com>
r= justdave, a= justdave


git-svn-id: svn://10.0.0.236/trunk@135508 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 03:37:49 +00:00
justdave%syndicomm.com
c08b52f188 Bug 185944: radio buttons for adding/removing groups on the change-multiple-bugs screen all had the same name
r=bbaetz, a=justdave


git-svn-id: svn://10.0.0.236/trunk@135455 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-18 08:01:51 +00:00
gerv%gerv.net
f6cd51d519 Bug 184949 - CSV buglists are missing the Bug ID column. Patch by gerv; r,a=justdave.
git-svn-id: svn://10.0.0.236/trunk@135369 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 00:00:46 +00:00
jouni%heikniemi.net
61451dc92c Bug 185332: Rewrite the description for timezone param (typo fixes etc.)
r=joel, a=justdave


git-svn-id: svn://10.0.0.236/trunk@135337 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-16 06:28:14 +00:00
bbaetz%student.usyd.edu.au
f60e59ef75 Bug 158499 - Templatise XML bug output
r=gerv, justdave
a=justdave


git-svn-id: svn://10.0.0.236/trunk@135318 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-15 09:24:08 +00:00
gerv%gerv.net
03bc3977c4 Bug 116819 - Attach and Reassign in one fell swoop. Patch by gerv; r,a=justdave.
git-svn-id: svn://10.0.0.236/trunk@135317 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-15 09:01:15 +00:00
johnkeis
a5ffdc25f4 Initial Revision
git-svn-id: svn://10.0.0.236/trunk@135256 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 19:43:18 +00:00
justdave%syndicomm.com
6b977246aa bumping version number to 2.17.2
git-svn-id: svn://10.0.0.236/trunk@135241 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 11:33:07 +00:00
justdave%syndicomm.com
a20b1e85e0 Bug 183188: collectstats.pl no longer makes data/mining world-readable
patch by Christian Franke <Franke@computer.org>
r= bbaetz, justave   a= justdave


git-svn-id: svn://10.0.0.236/trunk@135238 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 11:03:14 +00:00
bugreport%peshkin.net
a99e419a4f Bug 184256 Canedit group_control_map entry does not prevent making attachments
r=bbaetz
a=justdave


git-svn-id: svn://10.0.0.236/trunk@135085 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 00:41:19 +00:00
kestes%walrus.com
98b0247347 add functions to access the VC_TREE data structure.:
git-svn-id: svn://10.0.0.236/trunk@135062 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:49:27 +00:00
kestes%walrus.com
4941c1af86 major reworking of code structure to provide a clean Link construction but
not trip the perl warnings about undefined values.


git-svn-id: svn://10.0.0.236/trunk@135061 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:45:03 +00:00
kestes%walrus.com
a620c044e0 I have a better fix for perl warning the last checkin was meant to fix.
Fix it at the source in Build.pm.  This function really should return
undefined if the result is undefined.


git-svn-id: svn://10.0.0.236/trunk@135060 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:43:21 +00:00
kestes%walrus.com
6b84c50469 fixes to allow test harness to run through all VCDisplay implementations during
testing.


git-svn-id: svn://10.0.0.236/trunk@135059 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:35:50 +00:00
kestes%walrus.com
77924b4e3a fixes to allow test driver to run through all VCDisplay packages during unit
testing.


git-svn-id: svn://10.0.0.236/trunk@135058 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:34:34 +00:00
kestes%walrus.com
6b812bd047 fixes to quiet perl warnings about using undefined variables.
Localize most of the  creation of Bonsai arguments into one function
fixes to allow testing of all VCDisplay packages by one test driver.


git-svn-id: svn://10.0.0.236/trunk@135057 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:32:46 +00:00
kestes%walrus.com
70966ce2a4 fix to quiet new perl warnings about using undefined value.
git-svn-id: svn://10.0.0.236/trunk@135056 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:28:48 +00:00
kestes%walrus.com
bf87e9a49e quiet a warning about testing an undefined value (environmental variable
passed from webserver). Update some of the CGI functions to use the
lastest versions.  This was accomplised by including the whole library inside
the file.


git-svn-id: svn://10.0.0.236/trunk@135055 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:27:53 +00:00
kestes%walrus.com
cf2ac11329 add referesh times to summary pages, this variable was empty before this fix.
git-svn-id: svn://10.0.0.236/trunk@135048 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:24:37 +00:00
kestes%walrus.com
85b6b7c354 pass refreshtimes to Summaries. There was no referesh times, in the generated
html before this fix.


git-svn-id: svn://10.0.0.236/trunk@135047 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:23:37 +00:00
kestes%walrus.com
331124639e add target for VCDisplay tests.
git-svn-id: svn://10.0.0.236/trunk@135046 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:22:18 +00:00
kestes%walrus.com
71c4102f3b test the VCDisplay subsystem in isolation.
git-svn-id: svn://10.0.0.236/trunk@135045 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 19:21:12 +00:00