Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move old liaison statements from hardcoded template to database #324

Closed
ietf-svn-bot opened this issue Nov 3, 2009 · 5 comments
Closed

Comments

@ietf-svn-bot
Copy link

owner:rjsparks@nostrum.com resolution_fixed type_enhancement | by pasi.eronen@nokia.com


Currently, ietf/templates/liaisons/liaisondetail_list.html
contains old liaison statements up to February 2004. They should be
in the database instead (this may require adjusting the database schema, too).


Issue migrated from trac:324 at 2022-03-04 00:57:41 +0000

@ietf-svn-bot
Copy link
Author

@pasi.eronen@nokia.com commented


Some Perl code that isn't finished, but could be useful:

open(INPUT, "liaisondetail_list.html");
$/ = '<tr>';
while ($_ = <INPUT>) {
    last if (/Legacy stuff, hardcoded/);
}
while ($_ = <INPUT>) {
    s/ valign=top>/>/g;
    s/ valign="top">/>/g;
    s/ nowrap>/>/g;
    s/<td>/<td>/gi;
    s/<\/td>//gi;
    s/<\/tr>//gi;
    s/<tr>//gi;
    s/<br>//gi;
    s/\s+/ /g;
    s/<.table> .. endblock ..//;
    s/^\s*<td>//;
    s/\s*<td>/\t/g;
    @cols = split /\t/;
    if (@cols != 4) {
        die "Not four columns";
    } 
    $date = $cols[0];
    if ($date !~ /^\w+ \d\d\d\d$/) {
        print $_;
        die "Bad date $date";
    }
    $links = $cols1d6f2aa81b29043390617e6d02496b63bf78f1ab;
    $links =~ s/\(\.?pdf file\)//g;
    $links =~ s/\(pdf\)//g;
    $links =~ s/<\/a>( \(Temporary Document [^)]+\))/\1<\/a>/g;
    if ($links !~ /^(\s*<a href="[^"]+">[^<]*<\/a>)+\s*$/i) {
        print "------\n", $links, "\n";  
    }
}

@ietf-svn-bot
Copy link
Author

@pasi.eronen@nokia.com changed owner from `` to rjsparks@nostrum.com

@ietf-svn-bot
Copy link
Author

@pasi.eronen@nokia.com changed status from new to closed

@ietf-svn-bot
Copy link
Author

@pasi.eronen@nokia.com set resolution to fixed

@ietf-svn-bot
Copy link
Author

@pasi.eronen@nokia.com commented


Done in changeset:2004; shipped and deployed in v2.44.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant