# Path: app.py



import os
import sys
import string
from flask import request, Response
from app import app
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
# -*- coding: utf-8 -*-
"""
    apis.wordpress_xml_rpc
    ~~~~~~~~~~~~~~~~~~~~~~

    Wordpress-compatible XML-RPC API
    http://flask.pocoo.org/snippets/96/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))






POST_ROOT = 'http://127.0.0.1/post/'

# MetaWeblogAPI XML-RPC
handler = XMLRPCHandler('api')

# Path: app.py



# Path: apis/wordpress_xml_rpc.py
import os
import sys
import string
from flask import request, Response
from app import app
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

# -*- coding: utf-8 -*-
"""
    apis.wordpress_xml_rpc
    ~~~~~~~~~~~~~~~~~~~~~~

    Wordpress-compatible XML-RPC API
    http://flask.pocoo.org/snippets/96/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))






POST_ROOT = 'http://127.0.0.1/post/'

# MetaWeblogAPI XML-RPC
handler = XMLRPCHandler('api')

handler.connect(app, '/api')