Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

        def monkeypatch_method(cls):
    """
    A decorator to add a single method to an existing class::

        @monkeypatch_method()
        def (self, [...]):
            pass
    """

    def decorator(func):
        setattr(cls, func.__name__, func)
        return func
    return decorator
        


src/f/e/FeinCMS-1.9.3/feincms/module/extensions/translations.py   FeinCMS(Download)
from feincms import extensions, settings
from feincms.translations import is_primary_language
from feincms._internal import monkeypatch_method, monkeypatch_property
 
 

src/f/e/feincms-HEAD/feincms/module/extensions/translations.py   feincms(Download)
from feincms import extensions, settings
from feincms.translations import is_primary_language
from feincms._internal import monkeypatch_method, monkeypatch_property