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

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/t/h/thedom-HEAD/thedom/Factory.py   thedom(Download)
import types
 
from .Base import Invalid, TextNode
from .MultiplePythonSupport import *
 
 
        if type(template) in (str, unicode):
            return TextNode(template)
 
        ID = template.id

src/t/h/thedom-HEAD/thedom/JsonParser.py   thedom(Download)
'''
 
from .Base import Node, TextNode
from .Layout import Flow
from .MultiplePythonSupport import *
        elif type(value) in (list, tuple):
            for item in value:
                newElement.add(__Tag__(TYPE_MAP[type(item)], newElement)).add(TextNode(item))
        elif value is None:
            newElement.tagSelfCloses = newElement.attributes['xsi:nil'] = True
        else:
            newElement.add(TextNode(value))

src/t/h/thedom-HEAD/thedom/Parser.py   thedom(Download)
 
from . import Base
from .Base import Node, TextNode
from .MultiplePythonSupport import *
 
                    content = content.strip()
                    if content:
                        newTag.add(TextNode(content + "\n"))
                    continue
                else:

src/t/h/thedom-HEAD/thedom/Social.py   thedom(Download)
 
from . import ClientSide, Factory, Layout
from .Base import Node, TextNode
from .Buttons import Link
from .Display import Image
    def _render(self):
        if self.text:
            if not self.childElements:
                self += TextNode()