Great Migration: spline.plugins => splinext veekun-promotions/2010051501
authorEevee <git@veekun.com>
Sun, 16 May 2010 03:29:50 +0000 (20:29 -0700)
committerEevee <git@veekun.com>
Sun, 16 May 2010 03:29:50 +0000 (20:29 -0700)
15 files changed:
setup.py
spline/__init__.py [deleted file]
splinext/__init__.py [moved from spline/plugins/__init__.py with 100% similarity]
splinext/users/__init__.py [moved from spline/plugins/users/__init__.py with 84% similarity]
splinext/users/controllers/__init__.py [moved from spline/plugins/users/controllers/__init__.py with 100% similarity]
splinext/users/controllers/accounts.py [moved from spline/plugins/users/controllers/accounts.py with 100% similarity]
splinext/users/controllers/users.py [moved from spline/plugins/users/controllers/users.py with 100% similarity]
splinext/users/model/__init__.py [moved from spline/plugins/users/model/__init__.py with 100% similarity]
splinext/users/templates/css/users.mako [moved from spline/plugins/users/templates/css/users.mako with 100% similarity]
splinext/users/templates/users/lib.mako [moved from spline/plugins/users/templates/users/lib.mako with 100% similarity]
splinext/users/templates/users/list.mako [moved from spline/plugins/users/templates/users/list.mako with 100% similarity]
splinext/users/templates/users/login.mako [moved from spline/plugins/users/templates/users/login.mako with 100% similarity]
splinext/users/templates/users/profile.mako [moved from spline/plugins/users/templates/users/profile.mako with 100% similarity]
splinext/users/templates/users/profile_edit.mako [moved from spline/plugins/users/templates/users/profile_edit.mako with 100% similarity]
splinext/users/templates/widgets/user_state.mako [moved from spline/plugins/users/templates/widgets/user_state.mako with 100% similarity]

index 63e0bc2..b5d13ee 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,14 +3,14 @@ setup(
     name = 'spline-users',
     version = '0.1',
     packages = find_packages(),
     name = 'spline-users',
     version = '0.1',
     packages = find_packages(),
-    
+
     install_requires = ['spline'],
 
     include_package_data = True,
 
     zip_safe = False,
 
     install_requires = ['spline'],
 
     include_package_data = True,
 
     zip_safe = False,
 
-    entry_points = {'spline.plugins': 'users = spline.plugins.users:UsersPlugin'},
+    entry_points = {'spline.plugins': 'users = splinext.users:UsersPlugin'},
 
 
-    namespace_packages = ['spline', 'spline.plugins'],
+    namespace_packages = ['splinext'],
 )
 )
diff --git a/spline/__init__.py b/spline/__init__.py
deleted file mode 100644 (file)
index de40ea7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)
similarity index 84%
rename from spline/plugins/users/__init__.py
rename to splinext/users/__init__.py
index e606823..39318f0 100644 (file)
@@ -7,9 +7,9 @@ from spline.lib.plugin import PluginBase, PluginLink, Priority
 import spline.model as model
 import spline.model.meta as meta
 
 import spline.model as model
 import spline.model.meta as meta
 
-import spline.plugins.users.controllers.accounts
-import spline.plugins.users.controllers.users
-import spline.plugins.users.model
+import splinext.users.controllers.accounts
+import splinext.users.controllers.users
+import splinext.users.model
 
 def add_routes_hook(map, *args, **kwargs):
     """Hook to inject some of our behavior into the routes configuration."""
 
 def add_routes_hook(map, *args, **kwargs):
     """Hook to inject some of our behavior into the routes configuration."""
@@ -50,14 +50,14 @@ def check_userid_hook(action, **params):
 class UsersPlugin(PluginBase):
     def controllers(self):
         return dict(
 class UsersPlugin(PluginBase):
     def controllers(self):
         return dict(
-            accounts = spline.plugins.users.controllers.accounts.AccountsController,
-            users = spline.plugins.users.controllers.users.UsersController,
+            accounts = splinext.users.controllers.accounts.AccountsController,
+            users = splinext.users.controllers.users.UsersController,
         )
 
     def model(self):
         return [
         )
 
     def model(self):
         return [
-            spline.plugins.users.model.User,
-            spline.plugins.users.model.OpenID,
+            splinext.users.model.User,
+            splinext.users.model.OpenID,
         ]
 
     def template_dirs(self):
         ]
 
     def template_dirs(self):