I believe represent cal already be methods. Can you please provide an
example of what you need to do and the behavior you expect?

massimo

On Feb 21, 7:07 pm, Carlos <[email protected]> wrote:
> Hi Massimo,
>
> Can we please add support for bound (instance) methods for represent?.
>
> I propose to add the following line (immediately after assigning "n" in
> "represent" function at sqlhtml.py):
>
>    if getattr(f, 'im_self', None): n -= 1
>
> At aprox. line # 41.
>
> Alternatively you can check n==1 (for one arg calls) with an else clause
> for two arg calls ... and removing the current else (RuntimeError).
>
> Thanks!,
>
>    Carlos

Reply via email to