--- /dev/null
+*.swp
+*.pyc
+
+*.egg-info/
+/*.db
+/data
+/migration.py
--- /dev/null
+This is a database migration repository.
+
+More information at
+http://code.google.com/p/sqlalchemy-migrate/
--- /dev/null
+#!/usr/bin/env python
+from migrate.versioning.shell import main
+
+main(repository='migration')
--- /dev/null
+[db_settings]
+# Used to identify which repository this database is versioned under.
+# You can use the name of your project.
+repository_id=spline-forun
+
+# The name of the database table used to track the schema version.
+# This name shouldn't already be used by your project.
+# If this is changed once a database is under version control, you'll need to
+# change the table name in each database too.
+version_table=migrate_version
+
+# When committing a change script, Migrate will attempt to generate the
+# sql for all supported databases; normally, if one of them fails - probably
+# because you don't have that database installed - it is ignored and the
+# commit continues, perhaps ending successfully.
+# Databases in this list MUST compile successfully during a commit, or the
+# entire commit will fail. List the databases your application will actually
+# be using to ensure your updates to that database work properly.
+# This must be a list; example: ['postgres','sqlite']
+required_dbs=[]
--- /dev/null
+from setuptools import setup, find_packages
+setup(
+ name = 'spline-forum',
+ version = '0.1',
+ packages = find_packages(),
+
+ install_requires = [
+ 'spline',
+ 'spline-users',
+ ],
+
+ include_package_data = True,
+
+ zip_safe = False,
+
+ entry_points = {'spline.plugins': 'forum = spline.plugins.forum:ForumPlugin'},
+
+ namespace_packages = ['spline', 'spline.plugins'],
+)
--- /dev/null
+__import__('pkg_resources').declare_namespace(__name__)
--- /dev/null
+__import__('pkg_resources').declare_namespace(__name__)
--- /dev/null
+from pkg_resources import resource_filename
+
+from pylons import c, session
+
+from spline.lib.plugin import PluginBase
+from spline.lib.plugin import PluginBase, PluginLink, Priority
+import spline.model as model
+import spline.model.meta as meta
+
+import spline.plugins.forum.controllers.forum
+import spline.plugins.forum.model
+
+def add_routes_hook(map, *args, **kwargs):
+ """Hook to inject some of our behavior into the routes configuration."""
+ map.connect('/forum', controller='forum', action='index')
+
+
+class ForumPlugin(PluginBase):
+ def controllers(self):
+ return dict(
+ forum = spline.plugins.forum.controllers.forum.ForumController,
+ )
+
+ def template_dirs(self):
+ return [
+ (resource_filename(__name__, 'templates'), Priority.NORMAL)
+ ]
+
+ def hooks(self):
+ return [
+ ('routes_mapping', Priority.NORMAL, add_routes_hook),
+ ]
--- /dev/null
+import logging
+
+from pylons import config, request, response, session, tmpl_context as c, url
+from pylons.controllers.util import abort, redirect_to
+from routes import request_config
+from sqlalchemy.orm.exc import NoResultFound
+
+from spline import model
+from spline.model import meta
+from spline.lib import helpers as h
+from spline.lib.base import BaseController, render
+
+log = logging.getLogger(__name__)
+
+class ForumController(BaseController):
+
+ def index(self):
+ # Return a rendered template
+ # return render('/template.mako')
+ # or, Return a response
+ return 'stub'
--- /dev/null
+from sqlalchemy import Column, ForeignKey
+from sqlalchemy.orm import relation
+from sqlalchemy.types import Integer, Unicode
+
+from spline.model.meta import TableBase
+
+pass