Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
b2434c02
Commit
b2434c02
authored
Apr 02, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed relative imports to absolute for Python 2.4 support.
parent
135540b4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
24 deletions
+24
-24
pystache/init.py
+2
-2
pystache/loader.py
+1
-1
pystache/renderer.py
+5
-5
pystache/spec_loader.py
+1
-1
tests/test_examples.py
+2
-2
tests/test_loader.py
+1
-1
tests/test_locator.py
+1
-1
tests/test_renderer.py
+3
-3
tests/test_simple.py
+2
-2
tests/test_template_spec.py
+6
-6
No files found.
pystache/init.py
View file @
b2434c02
...
...
@@ -5,8 +5,8 @@ This module contains the initialization logic called by __init__.py.
"""
from
.renderer
import
Renderer
from
.template_spec
import
TemplateSpec
from
pystache
.renderer
import
Renderer
from
pystache
.template_spec
import
TemplateSpec
__all__
=
[
'render'
,
'Renderer'
,
'TemplateSpec'
]
...
...
pystache/loader.py
View file @
b2434c02
...
...
@@ -11,7 +11,7 @@ import os
import
sys
from
.
import
defaults
from
.locator
import
Locator
from
pystache
.locator
import
Locator
def
_to_unicode
(
s
,
encoding
=
None
):
...
...
pystache/renderer.py
View file @
b2434c02
...
...
@@ -6,11 +6,11 @@ This module provides a Renderer class to render templates.
"""
from
.
import
defaults
from
.context
import
Context
from
.loader
import
Loader
from
.renderengine
import
RenderEngine
from
.spec_loader
import
SpecLoader
from
.template_spec
import
TemplateSpec
from
pystache
.context
import
Context
from
pystache
.loader
import
Loader
from
pystache
.renderengine
import
RenderEngine
from
pystache
.spec_loader
import
SpecLoader
from
pystache
.template_spec
import
TemplateSpec
class
Renderer
(
object
):
...
...
pystache/spec_loader.py
View file @
b2434c02
...
...
@@ -7,7 +7,7 @@ This module supports customized (aka special or specified) template loading.
import
os.path
from
.loader
import
Loader
from
pystache
.loader
import
Loader
# TODO: add test cases for this class.
...
...
tests/test_examples.py
View file @
b2434c02
...
...
@@ -12,8 +12,8 @@ from examples.unicode_output import UnicodeOutput
from
examples.unicode_input
import
UnicodeInput
from
examples.nested_context
import
NestedContext
from
pystache
import
Renderer
from
.common
import
EXAMPLES_DIR
from
.common
import
AssertStringMixin
from
tests
.common
import
EXAMPLES_DIR
from
tests
.common
import
AssertStringMixin
class
TestView
(
unittest
.
TestCase
,
AssertStringMixin
):
...
...
tests/test_loader.py
View file @
b2434c02
...
...
@@ -9,7 +9,7 @@ import os
import
sys
import
unittest
from
.common
import
AssertStringMixin
from
tests
.common
import
AssertStringMixin
from
pystache
import
defaults
from
pystache.loader
import
Loader
...
...
tests/test_locator.py
View file @
b2434c02
...
...
@@ -14,7 +14,7 @@ import unittest
from
pystache.loader
import
Loader
as
Reader
from
pystache.locator
import
Locator
from
.common
import
DATA_DIR
from
tests
.common
import
DATA_DIR
from
data.views
import
SayHello
...
...
tests/test_renderer.py
View file @
b2434c02
...
...
@@ -15,9 +15,9 @@ from pystache import Renderer
from
pystache
import
TemplateSpec
from
pystache.loader
import
Loader
from
.common
import
get_data_path
from
.common
import
AssertStringMixin
from
.data.views
import
SayHello
from
tests
.common
import
get_data_path
from
tests
.common
import
AssertStringMixin
from
tests
.data.views
import
SayHello
class
RendererInitTestCase
(
unittest
.
TestCase
):
...
...
tests/test_simple.py
View file @
b2434c02
...
...
@@ -8,8 +8,8 @@ from examples.lambdas import Lambdas
from
examples.template_partial
import
TemplatePartial
from
examples.simple
import
Simple
from
.common
import
EXAMPLES_DIR
from
.common
import
AssertStringMixin
from
tests
.common
import
EXAMPLES_DIR
from
tests
.common
import
AssertStringMixin
class
TestSimple
(
unittest
.
TestCase
,
AssertStringMixin
):
...
...
tests/test_template_spec.py
View file @
b2434c02
...
...
@@ -19,12 +19,12 @@ from pystache import TemplateSpec
from
pystache.locator
import
Locator
from
pystache.loader
import
Loader
from
pystache.spec_loader
import
SpecLoader
from
.common
import
DATA_DIR
from
.common
import
EXAMPLES_DIR
from
.common
import
AssertIsMixin
from
.common
import
AssertStringMixin
from
.data.views
import
SampleView
from
.data.views
import
NonAscii
from
tests
.common
import
DATA_DIR
from
tests
.common
import
EXAMPLES_DIR
from
tests
.common
import
AssertIsMixin
from
tests
.common
import
AssertStringMixin
from
tests
.data.views
import
SampleView
from
tests
.data.views
import
NonAscii
class
Thing
(
object
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment