Skip to content

Commit 1c2f2b0

Browse files
committed
Added submodule main and removed left-col
1 parent ef5f4ca commit 1c2f2b0

File tree

10 files changed

+33
-130
lines changed

10 files changed

+33
-130
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "main"]
2+
path = main
3+
url = ./main

app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ handlers:
88
static_dir: static
99

1010
- url: /.*
11-
script: blog.py
11+
script: main/blog.py

blog.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

buzz.py renamed to blogzz/buzz.py

File renamed without changes.

blogzz/handlers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import functools
2-
import markdown
32
import re
4-
import tornado.web
53
import unicodedata
64
import datetime
75
import logging
86

7+
import tornado.web
8+
99
from google.appengine.api import users
1010
from google.appengine.ext import db
1111

12-
import buzz
12+
import blogzz.buzz as buzz
13+
import blogzz.markdown as markdown
1314
import blogzz.models as models
1415
import blogzz.importer as importer
1516

@@ -19,7 +20,6 @@ def administrator(method):
1920
"""Decorate with this method to restrict to site admins."""
2021
@functools.wraps(method)
2122
def wrapper(self, *args, **kwargs):
22-
logging.debug("Entro al wrapper")
2323
if not self.current_user:
2424
if self.request.method == "GET":
2525
self.redirect(self.get_login_url())

blogzz/importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import logging,unicodedata,re,datetime
2-
import markdown
32

43
from google.appengine.ext import db
54

65
import blogzz.models as models
6+
import blogzz.markdown as markdown
77

88
#logging.basicConfig(level=logging.DEBUG, format='%(asctime)s:%(msecs)03d %(levelname)-8s %(name)-8s %(message)s', datefmt='%H:%M:%S')
99

File renamed without changes.

main

Submodule main added at 2359bb6

static/css/blog.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ img { max-width:630px;}
3030
#header h1 { margin-top: 20px; }
3131
#header h1 a { color: #f78d1d; text-shadow: 2px 3px 7px #000; }
3232

33-
#left-col {float: left; width: 165px; margin-top: 25px; }
3433
#categories { height: 320px; }
3534
#categories h4{ margin-top: 15px; text-align: center; text-decoration:underline;}
3635
#catbox { margin-top:10px; width:160px; height:280px; background: #dbd9d9;}

templates/base.html

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,35 @@
2626
</div>
2727
<h1><a href="/">{{ escape(handler.settings["blog_title"]) }}</a></h1>
2828
</div>
29+
30+
<div id="main">
31+
32+
<h2><a href="/" class="orange button navlinks">Home</a></h2>
33+
<h2><a href="#" class="orange button navlinks">Settings</a></h2>
34+
35+
<a href="/feed"><img id="rss" src="/static/imgs/rss.png" /></a>
36+
37+
<div id="boxcontent">{% block body %}{% end %}</div>
38+
</div>
39+
40+
<div class="division">
41+
<img src="/static/imgs/div.png" />
42+
</div>
2943

30-
<div id="left-col">
44+
<div id="right-col">
3145
{% if current_user and current_user.administrator %}
3246
<a href="/compose" class="orange button">{{ _("New Blogzz") }}</a>
3347
{% end %}
34-
35-
<div id="categories">
36-
<h4>Categories</h4>
37-
<div id="catbox">
38-
<ul>
39-
<li><a href="#">categoria 1</a></li>
40-
<li><a href="#">categoria 2</a></li>
41-
<li><a href="#">categoria 3</a></li>
42-
43-
<li><a href="#">categoria 4</a></li>
44-
<li><a href="#">categoria 5</a></li>
45-
<li><a href="#">categoria 6</a></li>
46-
<li><a href="#">categoria 7</a></li>
47-
<li><a href="#">categoria 8</a></li>
48-
<li><a href="#">categoria 9</a></li>
4948

50-
<li><a href="#">categoria 10</a></li>
51-
</ul>
49+
<div id="twitter">
50+
<h4>Tweets</h4>
51+
<div id="tweets">
52+
<p>Ejemplo de un tweet</p>
53+
<p>Segundo tweet</p>
54+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
5255
</div>
5356
</div>
54-
57+
5558
<div id="tags">
5659
<h4>Tags</h4>
5760
<div id="tagbox">
@@ -69,39 +72,8 @@ <h4>Tags</h4>
6972
<li><a href="#">tag 10</a></li>
7073
</ul>
7174
</div>
72-
</div>
73-
</div>
74-
75-
76-
<div class="division">
77-
<img src="/static/imgs/div.png" />
78-
</div>
79-
80-
<div id="main">
81-
82-
<h2><a href="/" class="orange button navlinks">Home</a></h2>
83-
<h2><a href="#" class="orange button navlinks">Settings</a></h2>
84-
85-
<a href="/feed"><img id="rss" src="/static/imgs/rss.png" /></a>
86-
87-
<div id="boxcontent">{% block body %}{% end %}</div>
88-
</div>
89-
90-
<div class="division">
91-
<img src="/static/imgs/div.png" />
92-
</div>
93-
94-
<div id="right-col">
95-
96-
<div id="twitter">
97-
<h4>Tweets</h4>
98-
<div id="tweets">
99-
<p>Ejemplo de un tweet</p>
100-
<p>Segundo tweet</p>
101-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
102-
</div>
75+
</div>
10376

104-
</div>
10577
</div>
10678

10779
<div id="footer">

0 commit comments

Comments
 (0)