Andrei Fokau

Results 46 comments of Andrei Fokau

Ok, found it. ``` py from dagny import Resource, action from dagny.utils import resource_name, camel_to_underscore @action.RENDERER.html def render_html(action, resource, content_type=None, status=None, current_app=None): from coffin.shortcuts import render resource_label = camel_to_underscore(resource_name(resource)) template_path_prefix...

You may want to reduce code indent after pulling this commit

You will have more issues with complex expressions, so please try [astor](https://github.com/berkerpeksag/astor).

Hi, please use https://github.com/berkerpeksag/astor

Thanks, @gemoe100 ! Although, I haven't decide yet whether to improve the original code or not. I use it for inlines only myself. If you need something better, please have...

You may also want to look at https://github.com/barbuza/HamlPy/commit/ed13d8cc374fba96982daef19a6bdc6fc7402fba and consequent commits.

Interesting, I would normally keep all enums away from heavy modules, so one can import them without moving montains. We'll look if we can support this. Thanks for reporting the...

Hi @jessamynsmith, thanks for your contribution! We are looking into merging #26 so that EnumField uses the native enum class. Could you give it a spin to see if it...

Hm, it's [not possible to subclass enum in Python 3](https://docs.python.org/3/library/enum.html#restricted-subclassing-of-enumerations), so maybe we should not allow it in Python 2 to avoid confusion if someone decides to upgrade 2->3 at...