Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
example kotti_velruse added
  • Loading branch information
frgomes committed Oct 28, 2013
commit e2c4b993b15343e7e7290143c1aa988dcf41012b
Binary file removed examples/kotti_velruse/Kotti.db
Binary file not shown.
26 changes: 26 additions & 0 deletions examples/kotti_velruse/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Install Kotti
-------------

$ python setup.py develop


Start the server
----------------

$ run-server.sh


Navigate
--------

$ firefox http://localhost:6543/login


Notes
-----

This example program utilizes openid-selector, which is cloned from github when first start the server.




7 changes: 3 additions & 4 deletions examples/kotti_velruse/development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ kotti.site_title = My Kotti site
kotti.secret = qwerty

kotti.configurators = kotti_tinymce.kotti_configure
kotti_velruse.kotti_configure

kotti.includes = kotti_velruse

Expand Down Expand Up @@ -119,9 +118,9 @@ provider.google_oauth2.consumer_secret=CHANGE-ME
provider.google_oauth2.scope=CHANGE-ME

# Yahoo
provider.yahoo.realm=%(realm)s
provider.yahoo.consumer_key=CHANGE-ME
provider.yahoo.consumer_secret=CHANGE-ME
#provider.yahoo.realm=%(realm)s
#provider.yahoo.consumer_key=CHANGE-ME
#provider.yahoo.consumer_secret=CHANGE-ME

# Live
provider.live.client_id=CHANGE-ME
Expand Down
25 changes: 2 additions & 23 deletions examples/kotti_velruse/kotti_velruse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
from pyramid.config import Configurator

import velruse.app
import views


log = __import__('logging').getLogger(__name__)


def includeme(config):
velruse.app.includeme(config)
config.scan()


def kotti_configure(settings):
log.info('providers = {}'.format( velruse.app.find_providers(settings) ))
settings['pyramid.includes'] += ' kotti_velruse.views'


#def main(global_conf, **settings):
# """ This function returns a Pyramid WSGI application.
# """
# config = Configurator(settings=settings)
#
# config.add_static_view('static', 'static', cache_max_age=3600)
# config.add_route('home', '/')
# config.add_route('login', '/login')
# config.add_route('logged_in', '/logged_in')
#
# # wires velruse
# velruse.app.includeme(config)
#
# config.scan()
# return config.make_wsgi_app()
views.includeme(config)
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 0 additions & 8 deletions examples/kotti_velruse/kotti_velruse/static/ATTIC/ie6.css

This file was deleted.

Binary file not shown.
Loading