Did I find the right examples for you? yes no

All Samples(32)  |  Call(24)  |  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,
        if placeholder_id and plugin_type:
            # Check if placeholder ID is valid
            check_placeholder_html_id(placeholder_id)
            try:
                # Get class of the plugin type
        if placeholder_html_id and plugin_type:
            # Check if placeholder ID is valid
            placeholder_slug_items = check_placeholder_html_id(placeholder_html_id)
            layout_section_slug = placeholder_slug_items[0]
            # Get form of the plugin type
            plugin = form.save()
            placeholder_slug_items = check_placeholder_html_id(
                plugin_relation.placeholder_slug)
            layout_section_slug = placeholder_slug_items[0]
            rendering_context = RenderingContext(request)
 
            # Check placeholder HTML ID
            check_placeholder_html_id(placeholder_html_id,
                                      extras_id=[settings.HTML_ID_PLACEHOLDER_CLIPBOARD,])
 

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,
        if placeholder_id and plugin_type:
            # Check if placeholder ID is valid
            check_placeholder_html_id(placeholder_id)
            try:
                # Get class of the plugin type
        if placeholder_html_id and plugin_type:
            # Check if placeholder ID is valid
            placeholder_slug_items = check_placeholder_html_id(placeholder_html_id)
            layout_section_slug = placeholder_slug_items[0]
            # Get form of the plugin type
            plugin = form.save()
            placeholder_slug_items = check_placeholder_html_id(
                plugin_relation.placeholder_slug)
            layout_section_slug = placeholder_slug_items[0]
            rendering_context = RenderingContext(request)
 
            # Check placeholder HTML ID
            check_placeholder_html_id(placeholder_html_id,
                                      extras_id=[settings.HTML_ID_PLACEHOLDER_CLIPBOARD,])
 

src/i/o/ionyweb-0.3/ionyweb/administration/actions/views.py   ionyweb(Download)
from ionyweb.plugin.models import AbstractPlugin
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import MESSAGES, check_object_html_id, check_placeholder_html_id
 
 
            placeholder_slug = app_obj.pages.get(pages=self.request.page).placeholder_slug
 
        placeholder_slug_items = check_placeholder_html_id(placeholder_slug)
        layout_section_slug = placeholder_slug_items[0]
        placeholder_id = placeholder_slug_items[2]

src/i/o/ionyweb-HEAD/ionyweb/administration/actions/views.py   ionyweb(Download)
from ionyweb.plugin.models import AbstractPlugin
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import MESSAGES, check_object_html_id, check_placeholder_html_id
 
 
            placeholder_slug = app_obj.pages.get(pages=self.request.page).placeholder_slug
 
        placeholder_slug_items = check_placeholder_html_id(placeholder_slug)
        layout_section_slug = placeholder_slug_items[0]
        placeholder_id = placeholder_slug_items[2]

src/i/o/ionyweb-0.3/ionyweb/administration/views/apps.py   ionyweb(Download)
 
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import MESSAGES, check_placeholder_html_id
from ionyweb.page.models import Page
from ionyweb.website.rendering import RenderingContext
                # Get layout slug
                placeholder_slug_items = check_placeholder_html_id(
                    page.placeholder_slug)
                layout_section_slug = placeholder_slug_items[0]
                # Rendering layout section

src/i/o/ionyweb-HEAD/ionyweb/administration/views/apps.py   ionyweb(Download)
 
from ionyweb.administration.views import IsAdminView
from ionyweb.administration.utils import MESSAGES, check_placeholder_html_id
from ionyweb.page.models import Page
from ionyweb.website.rendering import RenderingContext
                # Get layout slug
                placeholder_slug_items = check_placeholder_html_id(
                    page.placeholder_slug)
                layout_section_slug = placeholder_slug_items[0]
                # Rendering layout section

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,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id, extras_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,
                                          '3'])
        # Accept Default Placeholder
        items_returned = cphi(settings.HTML_ID_PLACEHOLDER_DEFAULT,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id, extras_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,

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,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id, extras_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,
                                          '3'])
        # Accept Default Placeholder
        items_returned = cphi(settings.HTML_ID_PLACEHOLDER_DEFAULT,
                              settings.HTML_ID_PLACEHOLDER,
                              3)
        items_returned = cphi(valid_html_id, extras_id)
        self.assertEqual(items_returned, [settings.SLUG_CONTENT, 
                                          settings.SLUG_PLACEHOLDER,