Skip to content

Commit 93882a8

Browse files
committed
Updated Tornado, buzz.py and new CSS
1 parent 15685dc commit 93882a8

File tree

10 files changed

+908
-242
lines changed

10 files changed

+908
-242
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
atom.xml
22
*.pyc
33
*.*~
4+
*.komodoproject
5+
*.json
46
oauth

blog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import blogzz.handlers as handlers
2727

2828
settings = {
29-
"blog_title": u"Movimiento y prop\u00F3sito",
29+
"blog_title": u"Blogzz",
3030
"template_path": os.path.join(os.path.dirname(__file__), "templates"),
3131
"ui_modules": {"Entry": handlers.EntryModule},
3232
"xsrf_cookies": True,

blogzz/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def get_buzz_client(self):
7171
class HomeHandler(BaseHandler):
7272
def get(self):
7373
global last_buzz
74-
if self.settings["use_buzz"] and (not last_buzz or (datetime.datetime.now() - last_buzz).seconds > 120):
74+
if self.settings["use_buzz"] and (not last_buzz or (datetime.datetime.now() - last_buzz).seconds > 1800):
7575
# let's query buzz
76+
# Need to change so that it logins user
7677
buzz_client = self.get_buzz_client()
7778
user_id = '@me'
7879
buzz_posts = buzz_client.posts(user_id=user_id).data

blogzz/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def import_buzzes(posts,user):
4040
attach = models.Attachment(
4141
entry = entry,
4242
type= attachment.type,
43-
preview= attachment.preview['href'],
44-
enclosure= attachment.enclosure['href']
43+
preview= attachment.preview,
44+
enclosure= attachment.enclosure.href
4545
)
4646
attach.put()

0 commit comments

Comments
 (0)