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

All Samples(24)  |  Call(5)  |  Derive(7)  |  Import(12)
Base template for all ZopeSkel templates

src/t/e/templer.core-HEAD/src/templer/core/package_template.py   templer.core(Download)
import os
import copy
 
from templer.core.base import Template
from templer.core.base import BaseTemplate
class PackageTemplate(BaseTemplate):
    _outer_template_dir = 'templates/outer'
    _inner_template_dir = 'templates/inner'
    summary = "A Python package template for templer"
    help = """

src/t/e/templer.core-HEAD/src/templer/core/basic_namespace.py   templer.core(Download)
import copy
 
from templer.core.base import BaseTemplate
from templer.core.base import LICENSE_CATEGORIES
from templer.core.vars import DottedVar
class BasicNamespace(BaseTemplate):
    _template_dir = 'templates/basic_namespace'
    summary = "A basic Python project with a namespace package"
    ndots = 1
    help = """

src/t/e/templer.core-1.0b4/src/templer/core/basic_namespace.py   templer.core(Download)
import copy
 
from templer.core.base import BaseTemplate
from templer.core.base import LICENSE_CATEGORIES
from templer.core.vars import DottedVar
class BasicNamespace(BaseTemplate):
    _template_dir = 'templates/basic_namespace'
    summary = "A basic Python project with a namespace package"
    ndots = 1
    help = """

src/t/e/templer.core-HEAD/src/templer/core/ui.py   templer.core(Download)
import pkg_resources
 
from templer.core.base import BaseTemplate
 
# These are the "common" templates; they will be listed in a separate

src/t/e/templer.core-1.0b4/src/templer/core/ui.py   templer.core(Download)
import pkg_resources
 
from templer.core.base import BaseTemplate
 
# These are the "common" templates; they will be listed in a separate

src/t/e/templer.django-project-app-1.2/src/templer/django_project_app/__init__.py   templer.django-project-app(Download)
from templer.core.vars import StringVar
from templer.core.vars import BooleanVar
from templer.core.base import BaseTemplate
from templer.core.structures import Structure
 
class DjangoProjectApp(BaseTemplate):
    _template_dir = 'templates/django_project_app'
    summary = 'A basic Django project application skeleton within a project'
    help = HELP_TEXT
    category = 'Django'

src/t/e/templer.plonebuildout-HEAD/src/templer/plonebuildout/abstract_buildout.py   templer.plonebuildout(Download)
import copy
 
from templer.core.base import BaseTemplate
from templer.core.vars import EASY
from templer.core.vars import EXPERT
class AbstractBuildout(BaseTemplate):
    """Abstract class for all templates that produce buildouts."""
 
    category = "Buildout"
 

src/t/e/templer.core-HEAD/src/templer/core/tests/test_package_template.py   templer.core(Download)
import shutil
 
from templer.core.base import BaseTemplate
from templer.core.create import CreateDistroCommand
from templer.core.vars import DottedVar
                      title="String Title", default="string", page='Carl',
                      modes=(EXPERT)), ]
        self.template = BaseTemplate('my_name')
        command = CreateDistroCommand()
        command.parse_args(['-t', 'package'])

src/t/e/templer.core-HEAD/src/templer/core/tests/test_licenses.py   templer.core(Download)
import datetime
 
from templer.core.base import BaseTemplate
from templer.core.base import LICENSE_CATEGORIES
from templer.core.create import CreateDistroCommand
    def setUp(self):
        """ set up some basics for the coming tests
        """
        self.template = BaseTemplate('my_name')
        self.license_vars = {

src/t/e/templer.core-HEAD/src/templer/core/tests/test_base.py   templer.core(Download)
# -*- coding: utf-8 -*-
 
import unittest2 as unittest
 
from templer.core.base import BaseTemplate, get_var
            DottedVar('dot_var', 'This is a dotted variable',
                      title="Dotted Title", default="dotted.variable")]
        self.template = BaseTemplate('my_name')
        command = CreateDistroCommand()
        command.parse_args(['-t', 'nested_namespace'])
        class MyTemplate(BaseTemplate):
            vars = BaseTemplate.vars + self.vars
 
        template = MyTemplate('some_name')
        pages = template.pages

  1 | 2  Next