bloodhound-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anoop Nayak <anoopkna...@gmail.com>
Subject Re: [ASF-ICFOSS MENTORING COMDEV-92] Regarding Live Syntax Highlighting
Date Wed, 18 Sep 2013 09:38:34 GMT
Hi Ryan and all devs,

The scripts are getting included now in the template. I managed to hook it
up all working without disturbing the original template. Please do check it
out. The syntax highlighting is not complete yet but a work in progress.
Will update it soon.

Thanks & Regards,

Anoop Nayak


On Wed, Sep 18, 2013 at 1:20 PM, Anoop Nayak <anoopknayak@gmail.com> wrote:

> Thanks. I just missed that out entirely :(.
>
>
> On Wed, Sep 18, 2013 at 1:15 PM, Ryan Ollos <ryan.ollos@wandisco.com>wrote:
>
>> On Wed, Sep 18, 2013 at 12:40 AM, Anoop Nayak <anoopknayak@gmail.com>
>> wrote:
>>
>> > Hi Ryan,
>> >
>> > I have been trying to make the plugin for a couple of hours before but
>> seem
>> > to have come across this error:
>> >
>> > TypeError: pre_process_request() takes exactly 2 arguments (3 given)
>> >
>> > But I have used only 2 arguments in the code i.e as follows
>> > def pre_process_request(req, handler):
>> >         return req, handler
>> >
>> > Could you please help me with this?
>> >
>> > Thanks & Regards,
>> >
>> > Anoop
>> >
>>
>> It's a class method, so you need `self` as the first argument:
>> def pre_process_request(self, req, handler):
>>
>
>
>
> --
> Anoop
>



-- 
Anoop

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message