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
a28a5fe3
Commit
a28a5fe3
authored
Jan 24, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed View.__str__().
parent
18b6c253
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
pystache/view.py
+0
-3
tests/test_view.py
+0
-7
No files found.
pystache/view.py
View file @
a28a5fe3
...
...
@@ -116,9 +116,6 @@ class View(object):
def
get
(
self
,
key
,
default
=
None
):
return
self
.
context
.
get
(
key
,
default
)
def
__str__
(
self
):
return
self
.
render
()
class
Locator
(
object
):
...
...
tests/test_view.py
View file @
a28a5fe3
...
...
@@ -77,13 +77,6 @@ class ViewTestCase(unittest.TestCase):
view
.
thing
=
'Chris'
self
.
assertEquals
(
view
.
render
(),
"Hi Chris!"
)
def
test_view_instances_as_attributes
(
self
):
other
=
Simple
(
context
=
{
'name'
:
'chris'
})
other
.
template
=
'{{name}}'
view
=
Simple
()
view
.
thing
=
other
self
.
assertEquals
(
view
.
render
(),
"Hi chris!"
)
def
test_complex
(
self
):
self
.
assertEquals
(
ComplexView
()
.
render
(),
"""<h1>Colors</h1><ul><li><strong>red</strong></li><li><a href="#Green">green</a></li><li><a href="#Blue">blue</a></li></ul>"""
)
...
...
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