Skip to content

Commit

Permalink
Restructure project for proper packaging
Browse files Browse the repository at this point in the history
Also, rename sajax class to Registrar, as it will keep track of all views
or routes which have been registered with it. This also prevents the silly
sajax.Sajax that we would have otherwise faced.
  • Loading branch information
burnhamrobertp committed Dec 8, 2014
1 parent b1d0938 commit 44cfcf5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sajax

Sajax is a python/jQuery extension for building ajax web applications.
Sajax is a Flask/jQuery extension for building ajax web applications.

There are a ton of tools/libraries/frameworks out there that make AJAX really easy though, right? Turns out,
there aren't really any that ease the transition between python and javascript specifically. Even jQuery's
Expand Down
3 changes: 1 addition & 2 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from sajax import Sajax
from response import Response
from sajax import Registrar, Response
2 changes: 2 additions & 0 deletions sajax/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from sajax import Registrar
from response import Response
File renamed without changes.
2 changes: 1 addition & 1 deletion sajax.py → sajax/sajax.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pprint


class Sajax:
class Registrar:
"""Register Python routes or methods with Sajax.js
Given a set of python routes or FlaskViews, register these routes so that they can be
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sajax
-------------
Python / jQuery AJAX library, structured similarly to old xajax library
Flask / jQuery AJAX library, structured similarly to old xajax library
"""
from setuptools import setup

Expand All @@ -13,9 +13,9 @@
license='BSD',
author='Robert Burnham',
author_email='[email protected]',
description="Python / jQuery AJAX library",
description="Python / Flask / jQuery AJAX library",
long_description=__doc__,
py_modules=['sajax'],
packages=['sajax'],
zip_safe=False,
include_package_data=True,
platforms='any',
Expand Down

0 comments on commit 44cfcf5

Please sign in to comment.