Update: Solved! Well, this is embarrassing: I discovered that the only problem was that I was attempting to retitle a node id that's not editable. ie, I just had the node ID wrong. Note to self: Improve error messages in PM::Mech::Janitor so that such situations are easier to identify! Sorry to bother you all.

On a side note, I have noticed that Inner Scriptorium nodes are not janitor editable either. The message is: "Not an editor editable type". I'm not sure that they need to be janitor editable, but since nodes in most other Monastery categories are janitor editable, an argument could be made that this section should be too.

---------- Original question, already resolved, follows: ----------

It was bound to happen sooner or later. Something's changed on the Janitors node edit page (displaytype=editors) that has broken my Janitor's Thread Retitler's ability to find the 'edit_node' form. Here's an example run, showing the problem:

perl retitle.pl -i 499080 -f "Perl n00b Qusetion" -t "How do I capture XML into a variable?" -nop Retrieving thread for ID=499080 Found 1 nodes. Preparing changes. There is no form named "edit_node" at PerlMonks/Mechanized.pm line 79 Couldn't find 'edit_node' form in get_title.

I've viewed the raw HTML for the page, and can't see what has changed. Also looking at the PMDev patch history for the editor's displaytype has proven to not be helpful to me.

I'm sure it's something simple, but I guess I need another set of eyes (or maybe castaway could tell me what she's changed that could affect my scraping retitler).

The error message I'm getting seems to be generated by my get_title() method, which is part of the PerlMonks::Mechanized::Janitor class in the PerlMonks::Mechanized module, on display here. Maybe a night of sleep will provide me with the epiphany I need to conquer this minor hickup, but in the meantime if anyone else cares enough to take the time to have a look at it, I'd appreciate any hints.


Dave


In reply to Something broke the Janitor's Thread Retitler by davido

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.