Re: Patch to add 'id' - Mailing list pgsql-www

From Daniel Gustafsson
Subject Re: Patch to add 'id'
Date
Msg-id B48E2886-B071-4EA9-932F-F38ECE1C3F18@yesql.se
Whole thread Raw
In response to Patch to add 'id'  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Patch to add 'id'
Re: Patch to add 'id'
List pgsql-www
> On 10 Jun 2018, at 04:16, Bruce Momjian <bruce@momjian.us> wrote:
>
> Would someone please apply this patch to the website code so pglife
> (http://pglife.momjian.us/) can more easily scrape the current release
> numbers from the website?   Thanks.

While harmless enough, I’m not a huge fan of adding identifiers to the site
which are not in use in the site code, such non-obvious external dependencies
make the code harder to maintain.

If you are using XPath expressions to access the values, would something like
this on the versioning page suffice for what you’re after?

    //*[@id="pgContentWrap"]/table/tbody/tr/td[text()="Yes"]/../td[2]

cheers ./daniel

pgsql-www by date:

Previous
From: Bruce Momjian
Date:
Subject: Patch to add 'id'
Next
From: Magnus Hagander
Date:
Subject: Re: Patch to add 'id'