Did I find the right examples for you? yes no

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)

src/i/o/ionyweb-0.3/ionyweb/administration/views/plugin.py   ionyweb(Download)
from ionyweb.website.rendering import RenderingContext
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import (MESSAGES,
                                         check_object_html_id,
                                         check_placeholder_html_id,
                new_plugin = form.save()
                # Creation of the relation
                display_on_new_pages = (not is_page_placeholder_html_id(placeholder_html_id))
                relation = PluginRelation.objects.create(content_object=new_plugin,
                                                         placeholder_slug= placeholder_html_id,
                        #      - Add all pages
                        #      - Activate auto creation on new pages
                        if not (is_page_placeholder_html_id(placeholder_html_id) or 
                                placeholder_html_id == settings.HTML_ID_PLACEHOLDER_CLIPBOARD):
                            obj.pages.add(*request.website.pages.all())

src/i/o/ionyweb-HEAD/ionyweb/administration/views/plugin.py   ionyweb(Download)
from ionyweb.website.rendering import RenderingContext
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import (MESSAGES,
                                         check_object_html_id,
                                         check_placeholder_html_id,
                new_plugin = form.save()
                # Creation of the relation
                display_on_new_pages = (not is_page_placeholder_html_id(placeholder_html_id))
                relation = PluginRelation.objects.create(content_object=new_plugin,
                                                         placeholder_slug= placeholder_html_id,
                        #      - Add all pages
                        #      - Activate auto creation on new pages
                        if not (is_page_placeholder_html_id(placeholder_html_id) or 
                                placeholder_html_id == settings.HTML_ID_PLACEHOLDER_CLIPBOARD):
                            obj.pages.add(*request.website.pages.all())

src/i/o/ionyweb-0.3/ionyweb/website/templatetags/ionyweb_tags.py   ionyweb(Download)
from django.conf import settings
from django.template.loader import render_to_string
from ionyweb.administration.utils import is_page_placeholder_html_id
 
register = template.Library()
    if not (layout_slug[0] == layout_slug[-1] and layout_slug[0] in ('"', "'")):
        raise template.TemplateSyntaxError("%r tag's argument should be in quotes" % tag_name)
    if is_page_placeholder_html_id(layout_slug[1:-1]):
        raise template.TemplateSyntaxError("%r tag's argument shouldn't start with the value : '%s'" % (
                tag_name, settings.SLUG_CONTENT))

src/i/o/ionyweb-HEAD/ionyweb/website/templatetags/ionyweb_tags.py   ionyweb(Download)
from django.conf import settings
from django.template.loader import render_to_string
from ionyweb.administration.utils import is_page_placeholder_html_id
 
register = template.Library()
    if not (layout_slug[0] == layout_slug[-1] and layout_slug[0] in ('"', "'")):
        raise template.TemplateSyntaxError("%r tag's argument should be in quotes" % tag_name)
    if is_page_placeholder_html_id(layout_slug[1:-1]):
        raise template.TemplateSyntaxError("%r tag's argument shouldn't start with the value : '%s'" % (
                tag_name, settings.SLUG_CONTENT))

src/i/o/ionyweb-0.3/ionyweb/website/rendering/__init__.py   ionyweb(Download)
from ionyweb.page.models import Layout, AbstractPageApp
from ionyweb.plugin.models import PluginRelation
from ionyweb.administration.utils import is_page_placeholder_html_id
from ionyweb.administration.actions.utils import get_actions_for_object_model
 
            # We create the layout object
            layout_object = Layout(slug=layout_section_slug)
            if is_page_placeholder_html_id(layout_section_slug):
                # Specific case of the layout content section :
                # we bind the layout for this page

src/i/o/ionyweb-HEAD/ionyweb/website/rendering/__init__.py   ionyweb(Download)
from ionyweb.page.models import Layout, AbstractPageApp
from ionyweb.plugin.models import PluginRelation
from ionyweb.administration.utils import is_page_placeholder_html_id
from ionyweb.administration.actions.utils import get_actions_for_object_model
 
            # We create the layout object
            layout_object = Layout(slug=layout_section_slug)
            if is_page_placeholder_html_id(layout_section_slug):
                # Specific case of the layout content section :
                # we bind the layout for this page

src/i/o/ionyweb-HEAD/ionyweb/administration/tests/utils.py   ionyweb(Download)
# -*- coding: utf-8 -*-
from django.utils import unittest
from django.conf import settings
from djangorestframework.response import ErrorResponse
from ionyweb.administration.utils import (check_object_html_id as cohi,

src/i/o/ionyweb-0.3/ionyweb/administration/tests/utils.py   ionyweb(Download)
# -*- coding: utf-8 -*-
from django.utils import unittest
from django.conf import settings
from djangorestframework.response import ErrorResponse
from ionyweb.administration.utils import (check_object_html_id as cohi,