wyntarvox (
wyntarvox) wrote in
dw_dev_training2011-03-06 10:21 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Packages
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?
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?