Mar. 6th, 2011

Packages

Mar. 6th, 2011 10:21 pm
wyntarvox: (Default)
[personal profile] wyntarvox
I'm working on bug 3479, and to implement it I want to create LJ::Event::JournalNewComment::Edited to overwrite the content method.

I copied cgi-bin/LJ/Event/JournalNewComment/TopLevel.pm (which seems to serve a similar purpose), renamed it to Edited.pm, changed the package name and overwrote the content method. In LJ::Talk I changed the fired event for edited comments to LJ::Event::JournalNewComment::Edited->new(), restarted apache (successfully), started the workers and edited a comment, but received no notification.

TheSchwartz queue shows the following error:

Can't locate object method "raw_params" via package "LJ::Event::JournalNewComment::Edited" at /dreamhack/home/8138-wyntarvox/dw/cgi-bin/LJ/ESN.pm line 123.

However, this method is defined in LJ::Event, of which JournalNewComment is a subclass, and Edited a subclass of that. Does inheritance not reach that far?

Profile

dw_dev_training: The stylised 'd', with the word 'dev' above, and the word 'training' at the side, representing the dw_dev_training comm. (Default)
Dreamwidth Development Training

September 2022

S M T W T F S
    123
45678910
1112131415 1617
18192021222324
252627282930 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 2nd, 2025 11:35 am
Powered by Dreamwidth Studios