Re: Patch to add 'id'

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Patch to add 'id'
Дата
Msg-id B48E2886-B071-4EA9-932F-F38ECE1C3F18@yesql.se
обсуждение исходный текст
Ответ на Patch to add 'id'  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Patch to add 'id'  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Re: Patch to add 'id'  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Patch to add 'id'
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Patch to add 'id'