Did I find the right examples for you? yes no

All Samples(46)  |  Call(23)  |  Derive(0)  |  Import(23)

            @wraps(func)
    def wrapper(*args, **kwargs):
        for arg in list(args) + list(six.itervalues(kwargs)):
            if isinstance(arg, Promise):
                break
        else:
            return func(*args, **kwargs)
        return lazy(func, *resultclasses)(*args, **kwargs)
        


src/t/e/tendenci-5.1.333/tendenci/apps/forms_builder/forms/search_indexes.py   tendenci(Download)
from django.utils.html import strip_tags, strip_entities
 
from haystack import indexes
from haystack import site
from tendenci.apps.forms_builder.forms.models import Form
    def prepare_intro(self, obj):
        intro = obj.intro
        intro = strip_tags(intro)
        intro = strip_entities(intro)
        return intro
 
    def prepare_response(self, obj):
        response = obj.response
        response = strip_tags(response)
        response = strip_entities(response)

src/t/e/tendenci-5.1.333/tendenci/addons/photos/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
 
    def prepare_description(self, obj):
        description = obj.description
        description = strip_tags(description)
        description = strip_entities(description)
        return description
    def prepare_caption(self, obj):
        caption = obj.caption
        caption = strip_tags(caption)
        caption = strip_entities(caption)
        return caption

src/t/e/tendenci-5.1.333/tendenci/apps/boxes/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
 
    def prepare_content(self, obj):
        content = obj.content
        content = strip_tags(content)
        content = strip_entities(content)
        return content

src/t/e/tendenci-5.1.333/tendenci/addons/resumes/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
 
    def prepare_description(self, obj):
        description = obj.description
        description = strip_tags(description)
        description = strip_entities(description)
        return description

src/t/e/tendenci-5.1.333/tendenci/addons/locations/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
 
    def prepare_description(self, obj):
        description = obj.description
        description = strip_tags(description)
        description = strip_entities(description)
        return description

src/t/e/tendenci-5.1.333/tendenci/addons/help_files/search_indexes.py   tendenci(Download)
from datetime import datetime
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
    def prepare_answer(self, obj):
        answer = obj.answer
        answer = strip_tags(answer)
        answer = strip_entities(answer)
        return answer

src/t/e/tendenci-5.1.333/tendenci/core/base/templatetags/base_filters.py   tendenci(Download)
def stripentities(value):
    """Strips all [X]HTML tags."""
    from django.utils.html import strip_entities
    return strip_entities(value)
stripentities.is_safe = True

src/t/e/tendenci-5.1.333/tendenci/addons/events/module_meta.py   tendenci(Download)
from tendenci.core.site_settings.utils import get_setting
from django.utils.text import truncate_words
from django.utils.html import strip_tags, strip_entities
 
from tendenci.core.categories.models import Category
 
        description = strip_tags(description)
        description = strip_entities(description)
        description = truncate_words(description, 40, '')
        return description

src/t/e/tendenci-5.1.333/tendenci/core/files/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from django.utils.html import strip_tags, strip_entities
 
    def prepare_description(self, obj):
        description = obj.description
        description = strip_tags(description)
        description = strip_entities(description)
        return description

src/t/e/tendenci-5.1.333/tendenci/apps/stories/search_indexes.py   tendenci(Download)
from haystack import indexes
from haystack import site
 
from datetime import datetime
from django.utils.html import strip_tags, strip_entities
    def prepare_content(self, obj):
        content = obj.content
        content = strip_tags(content)
        content = strip_entities(content)
        return content

  1 | 2 | 3  Next