Menu

#296 Python3: Manual TestingChanges, Plus Webcrawler Trap

v1.0 (example)
open
None
5
2026-05-19
2026-05-15
Al von Ruff
No

1] SQLparsing.py: Removes list() from SQLloadTitlesXBT(), which was previously added for forgotten reasons.

2] Removes parenthesis in the first SQL caluse in SQLloadAwardsXBA(), requiring a change to both _SQLloadAwardsXBA_parameterized() and _SQLloadAwardsXBA_legacy()

3] Adds list() to _DisplayPendingTitleEdits() and _DisplayPendingTitleChangesInPubEdits() in viewers.py. These routines extact keys from a dictionary using the built-in .keys() method. The return value is of different types in python2 vs python3, and the python3 version does not support indexing, so this encapsulates the keys() call with a list(). It is erified that 'Records' is identical between python2 and python3, and that The script fails on Python3 without this change. This runs fine on python2.

4] A new test to cover the semantics of SQLloadTitlesXBT()

5] A new honeybot script was added to /biblio to capture web crawlers. See the note inside hp.py for more details. Since /edit and /mod are somewhat protected by the need to login, this currently only targets /biblio, although it is an easy one line fix to add to /edit or /mod.

Discussion

  • Al von Ruff

    Al von Ruff - 2026-05-15
    • assigned_to: Al von Ruff
     
  • Ahasuerus

    Ahasuerus - 2026-05-15

    Added the Webcrawler trap to the Python 2 code in:

    biblio/TARGETS
    biblio/common.py
    biblio/hp.py

    Installed in SVN 1326 on 2026-05-15. Keeping the SR open.

     
  • Ahasuerus

    Ahasuerus - 2026-05-19

    Added the Webcrawler trap to edit and mod pages under Python 2:

    biblio/common.py
    common/isfdb.py
    edit/isfdblib.py
    mod/isfdblib.py

    Installed in SVN 1328 on 2026-05-29. Keeping the SR open.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB