Skip to content

Commit

Permalink
use node instead of routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed O'Brien committed Jan 31, 2011
1 parent 982f145 commit df090f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lumin/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pyramid.security import Allow
from pyramid.security import Everyone

from lumin.routes import Node
from lumin.node import NodeById


@colander.deferred
Expand Down Expand Up @@ -118,7 +118,7 @@ class SimpleUserSchema(colander.MappingSchema):



class User(Node):
class User(NodeById):
__acl__ = [
(Allow, Everyone, 'view'), ## Really?
(Allow, Everyone, ('add')),
Expand Down
2 changes: 1 addition & 1 deletion lumin/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
***Please update your code to import from there.***
******************************************************
"""
warnings.warn(CHANGE_YOUR_IMPORT)
warnings.warn(CHANGE_YOUR_IMPORT, stacklevel=2)

from lumin.node import NodeById
Node = NodeById
Expand Down

0 comments on commit df090f4

Please sign in to comment.