14:07:52 <KwBot> [nikola] pfmoore opened issue #3254: Emoji shortcode fails with an encoding error on Windows https://github.com/getnikola/nikola/issues/3254 14:50:11 <KwBot> [nikola] Kwpolska closed issue #3254: Emoji shortcode fails with an encoding error on Windows https://github.com/getnikola/nikola/issues/3254 15:12:28 -travis-ci:#nikola- getnikola/nikola#10577 (master - 1d1ada7 : Chris Warrick): The build passed. 15:12:28 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/f426eba692b3...1d1ada72f8ff 15:12:28 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/524986012 19:27:21 <phaebz> I inherited a module containing a `class Plugin(ShortcodePlugin)` and a method `handler` that returns some HTML, how can I get at that HTML? I read something about `nikola plugin -i`, but am I on the right track? What kind of setup would be needed for just exercising that plugin code? 19:54:31 <ralsina> phaebz: plugins are not really meant to be called outside Nikola 19:54:44 <ralsina> phaebz: but hey, if you really want to, import, create and call :-) 20:04:32 <phaebz> ralsina: Thanks, yeah, I thought as much, but I got that snippet without any instructions so I thought I might be best off using it with some sort of Nikola base site. 20:06:33 <gour> ralsina: hello, are you well/recovered/whatever...? 20:07:03 <phaebz> As I feared: `AttributeError: 'Plugin' object has no attribute 'site'` so I think this plugin is dependent on a concrete site setup? 20:14:59 <ChrisWarrick> phaebz: The standard ShortcodePlugin implementation sets `self.site` in the `set_site` method, and a site is an instance of the nikola.nikola.Nikola object. 20:21:18 <phaebz> ChrisWarrick: This class has its own set_site and I tried with a bare Nikola() and get an obvious `KeyError: 'data'` since the `handler` at some point wants to do `jsonfile = self.site._GLOBAL_CONTEXT['data']['schedule']` so I think indeed another site object is needed. 20:22:32 <ChrisWarrick> phaebz: It’s not recommended to create a Nikola site by hand. It would be much easier to manually take the important code out of this file and do whatever you need to do with that instead. 20:23:37 <phaebz> ChrisWarrick: Yep, thanks, will do. 20:52:17 <ralsina> gour: I'm ok 21:57:28 * gour is glad to hear it