projects
/
zzz-spline-gts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the local model module instead of spline.model.
[zzz-spline-gts.git]
/
splinext
/
gts
/
__init__.py
diff --git
a/splinext/gts/__init__.py
b/splinext/gts/__init__.py
index
bd10c07
..
370be29
100644
(file)
--- a/
splinext/gts/__init__.py
+++ b/
splinext/gts/__init__.py
@@
-4,11
+4,7
@@
from pylons import c, session
from spline.lib.plugin import PluginBase
from spline.lib.plugin import PluginBase, PluginLink, Priority
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 splinext.gts.controllers.gts
import splinext.gts.controllers.gts
-import splinext.gts.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."""
@@
-23,16
+19,6
@@
class GTSPlugin(PluginBase):
gts = splinext.gts.controllers.gts.GTSController,
)
gts = splinext.gts.controllers.gts.GTSController,
)
- def model(self):
- return [
- splinext.gts.model.GTSPokemon,
- ]
-
- def template_dirs(self):
- return [
- (resource_filename(__name__, 'templates'), Priority.NORMAL)
- ]
-
def hooks(self):
return [
('routes_mapping', Priority.NORMAL, add_routes_hook),
def hooks(self):
return [
('routes_mapping', Priority.NORMAL, add_routes_hook),