Did I find the right examples for you? yes no

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

src/i/o/ionyweb-0.3/ionyweb/website/__init__.py   ionyweb(Download)
 
    pt = Plugin_Text.objects.create(text='Text 1')
    pr = PluginRelation.objects.create(content_object=pt,
                                       placeholder_slug='content-placeholder-2',
                                       plugin_order=0)
    pr.pages.add(page_home)
 
    pt = Plugin_Text.objects.create(text='Text 2')
    pr = PluginRelation.objects.create(content_object=pt,
 
    pt = Plugin_Text.objects.create(text='Text 3')
    pr = PluginRelation.objects.create(content_object=pt,
                                       placeholder_slug='content-placeholder-4',
                                       plugin_order=0)
        for plugin in xrange(1,5):
            pt = Plugin_Text.objects.create(text='Text %s-%s' % (page, plugin))
            pr = PluginRelation.objects.create(content_object=pt,
                                               placeholder_slug='content-placeholder-%s' % plugin,
                                               plugin_order=0)
            for plugin in xrange(1,5):
                pt = Plugin_Text.objects.create(text='Text %s-%s-%s' % (page, sub_page, plugin))
                pr = PluginRelation.objects.create(content_object=pt,
                                                   placeholder_slug='content-placeholder-%s' % plugin,
                                                   plugin_order=0)

src/i/o/ionyweb-HEAD/ionyweb/website/__init__.py   ionyweb(Download)
 
    pt = Plugin_Text.objects.create(text='Text 1')
    pr = PluginRelation.objects.create(content_object=pt,
                                       placeholder_slug='content-placeholder-2',
                                       plugin_order=0)
    pr.pages.add(page_home)
 
    pt = Plugin_Text.objects.create(text='Text 2')
    pr = PluginRelation.objects.create(content_object=pt,
 
    pt = Plugin_Text.objects.create(text='Text 3')
    pr = PluginRelation.objects.create(content_object=pt,
                                       placeholder_slug='content-placeholder-4',
                                       plugin_order=0)
        for plugin in xrange(1,5):
            pt = Plugin_Text.objects.create(text='Text %s-%s' % (page, plugin))
            pr = PluginRelation.objects.create(content_object=pt,
                                               placeholder_slug='content-placeholder-%s' % plugin,
                                               plugin_order=0)
            for plugin in xrange(1,5):
                pt = Plugin_Text.objects.create(text='Text %s-%s-%s' % (page, sub_page, plugin))
                pr = PluginRelation.objects.create(content_object=pt,
                                                   placeholder_slug='content-placeholder-%s' % plugin,
                                                   plugin_order=0)

src/i/o/ionyweb-0.3/ionyweb/administration/views/plugin.py   ionyweb(Download)
                # 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,
                                                         display_on_new_pages=display_on_new_pages)

src/i/o/ionyweb-HEAD/ionyweb/administration/views/plugin.py   ionyweb(Download)
                # 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,
                                                         display_on_new_pages=display_on_new_pages)