This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import cgi, cgitb | |
# Uncomment this to view errors | |
# cgitb.enable() | |
import urlparse | |
import urllib | |
import sys | |
import oauth2 as oauth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
"""" | |
Copyright 2008 Ritesh Nadhani. All Rights Reserved. | |
For license information please check the LICENSE page of the package. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from datetime import datetime | |
from flask import url_for | |
from flask.ext.xmlrpc import XMLRPCHandler, Fault | |
from labs import app, db | |
from labs.models import User, Post, Tag, Category | |
# MetaWeblogAPI XML-RPC | |
handler = XMLRPCHandler('api') | |
handler.connect(app, '/api') |