Browse Source

Incorporate feedback from the Initial commit review

Change-Id: I1dae74e216f5d08da2eda73245577be3dc31ec34
changes/34/134234/4
Davanum Srinivas 8 years ago committed by Davanum Srinivas (dims)
parent
commit
640d342f9d
  1. 4
      magnum/api/controllers/v1.py
  2. 21
      magnum/api/templates/index.html
  3. 2
      magnum/api/templates/layout.html
  4. BIN
      magnum/public/images/logo.png

4
magnum/api/controllers/v1.py

@ -181,7 +181,7 @@ class ContainerController(rest.RestController):
@wsme_pecan.wsexpose(Container, wtypes.text)
def get_one(self, container_id):
# TODO(dims): Returns all the containers
# TODO(dims): Returns specified container
pecan.response.status = 200
return
@ -193,6 +193,6 @@ class ContainerController(rest.RestController):
@wsme_pecan.wsexpose(None, status_code=204)
def delete(self):
# TODO(dims): DELETE the containers
# TODO(dims): DELETE this container
pecan.response.status = 204
return

21
magnum/api/templates/index.html

@ -7,28 +7,11 @@
## now define the body of the template
<header>
<h1><img src="/images/logo.png" /></h1>
<h1></h1>
</header>
<div id="content">
<p>This is a sample Pecan project.</p>
<p>
Instructions for getting started can be found online at <a
href="http://pecanpy.org" target="window">pecanpy.org</a>
</p>
<p>
...or you can search the documentation here:
</p>
<form method="POST" action="/">
<fieldset>
<input name="q" />
<input type="submit" value="Search" />
</fieldset>
<small>Enter search terms or a module, class or function name.</small>
</form>
<p>This is the OpenStack Containers project named Magnum</p>
</div>

2
magnum/api/templates/layout.html

@ -10,7 +10,7 @@
</html>
<%def name="title()">
Default Title
Magnum
</%def>
<%def name="style()">

BIN
magnum/public/images/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Loading…
Cancel
Save