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
|
|---|