Closed Bug 140103 Opened 23 years ago Closed 23 years ago

Templatisation odds and ends

Categories

(Bugzilla :: Bugzilla-General, defect)

2.15
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: gerv, Assigned: gerv)

Details

Attachments

(1 file, 1 obsolete file)

I just had a change to grep the sources for places where templatisation is still needed for user-facing stuff. We can't really avoid doing it; not having it causes bugs like bug 137121, and it causes trouble for our localisers. The good news is that it's not all that complicated - just a little bit long-winded. It's mostly in CGI.pl. I'll split the patch into several pieces to make it easier to review. Gerv
Attached patch Patch v.1 (obsolete) — Splinter Review
Templatise some of the last few things in CGI.pl. There's still some more to do, but I don't want this patch to get too big. Gerv
Another 2.16 bug. Well, at least I provide patches when I file them :-) Gerv
Severity: blocker → critical
Status: NEW → ASSIGNED
Keywords: patch, review
Target Milestone: --- → Bugzilla 2.16
Attached patch Patch v.2Splinter Review
Missed a file by forgetting to save it before generating the diff. Gerv
Attachment #81034 - Attachment is obsolete: true
Comment on attachment 81036 [details] [diff] [review] Patch v.2 This looks fine, except... > sub PutHeader { >- >- if (Param("shutdownhtml")) { >- # If we are dealing with the params page, we want >- # to ignore shutdownhtml >- if ($0 !~ m:[\\/](do)?editparams.cgi$:) { >- print "<p>\n"; >- print Param("shutdownhtml"); >- exit; >- } >- } >+ ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}, >+ $vars->{'extra'}, $vars->{'jscript'}) = (@_); >+ >+ $::template->process("global/header.html.tmpl", $::vars) >+ || ThrowTemplateError($::template->error()); > } where does your code special case the params page?
Attachment #81036 - Flags: review-
bbaetz: the shutdownhtml stuff is now done at the top of CGI.pl. According to lxr, Myk made this change on 3rd Feb this year. So, it doesn't need to be in ShowHeader() any more. Gerv
Comment on attachment 81036 [details] [diff] [review] Patch v.2 ok. r=bbaetz, then. Looks fine, and a random testing sample didn't have any problems.
Attachment #81036 - Flags: review- → review+
Comment on attachment 81036 [details] [diff] [review] Patch v.2 why are we removing SyncAnyPendingShadowChanges() from PutFooter? Won't that break installs using shadowdb?
Comment on attachment 81036 [details] [diff] [review] Patch v.2 ok, you added it to the template (found the other bug on it). I don't think that's right (Syncing the shadow database is a code thing and not a user interface thing, and we shouldn't be depending on a template to call it). But that's another issue, and this patch is good for what it does. r= justdave
Attachment #81036 - Flags: review+
Fixed. Checking in CGI.pl; /cvsroot/mozilla/webtools/bugzilla/CGI.pl,v <-- CGI.pl new revision: 1.149; previous revision: 1.148 done Checking in template/en/default/bug/process/results.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/process/results.html.tmpl,v <-- results.html.tmpl new revision: 1.2; previous revision: 1.1 done Gerv
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: