Skip to content
Browse files

fix example

  • Loading branch information...
1 parent 5317922 commit 89c555d10c19cbaa0dfd5c99e0a620e0edd856c5 @cd34 committed
View
6 examples/apex_example/CONFIG.yaml
@@ -1,6 +0,0 @@
-Store:
- Type: SQL
- DB: sqlite:///%(here)s/apex_example.db
-
-OpenID Store:
- Type: openid.store.memstore:MemoryStore
View
8 examples/apex_example/apex_example/models.py
@@ -1,11 +1,8 @@
-import transaction
-
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import Unicode
-from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import backref
@@ -15,9 +12,6 @@
from zope.sqlalchemy import ZopeTransactionExtension
-from velruse.store.sqlstore import KeyStorage
-from velruse.store.sqlstore import SQLBase
-
from apex.models import AuthUser
""" To Extend the User Model, make sure you import AuthUser in your
model.py
@@ -55,5 +49,3 @@ def initialize_sql(engine):
DBSession.configure(bind=engine)
Base.metadata.bind = engine
Base.metadata.create_all(engine)
- SQLBase.metadata.bind = engine
- SQLBase.metadata.create_all(engine)
View
18 examples/apex_example/development.ini
@@ -13,18 +13,18 @@ mako.directories = apex_example:templates
apex.session_secret = apex_example_session_secret
apex.auth_secret = apex_example_auth_secret
apex.came_from_route = home
-apex.velruse_config = %(here)s/CONFIG.yaml
[app:velruse]
use = egg:velruse
-config_file = %(here)s/CONFIG.yaml
-beaker.session.data_dir = %(here)s/data/sdata
-beaker.session.lock_dir = %(here)s/data/slock
-beaker.session.key = velruse
-beaker.session.secret = somesecret
-beaker.session.type = cookie
-beaker.session.validate_key = STRONG_KEY_HERE
-beaker.session.cookie_domain = .domain.com
+endpoint = http://domain.com/auth/apex_callback
+openid.store = openid.store.memstore:MemoryStore
+openid.realm = http://domain.com/
+
+providers =
+ providers.twitter
+
+providers.twitter.consumer_key =
+providers.twitter.consumer_secret =
[filter:exc]
use=egg:WebError#evalerror
View
1 examples/apex_example/setup.py
@@ -12,6 +12,7 @@
'repoze.tm2>=1.0b1', # default_commit_veto
'zope.sqlalchemy',
'WebError',
+ 'apex',
]
if sys.version_info[:3] < (2,5,0):

0 comments on commit 89c555d

Please sign in to comment.
Something went wrong with that request. Please try again.