Commits

Sean Gillies  committed f0c984a

Paste config file

  • Participants
  • Parent commits 552ef5f

Comments (0)

Files changed (3)

File development.ini

+#
+# mush - Pylons development environment configuration
+#
+# The %(here)s variable will be replaced with the parent directory of this file
+#
+[DEFAULT]
+debug = true
+# Uncomment and replace with the address which should receive any error reports
+#email_to = you@yourdomain.com
+smtp_server = localhost
+error_email_from = paste@localhost
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5000
+
+[app:main]
+use = egg:mush
+full_stack = true
+cache_dir = %(here)s/data
+beaker.session.key = mush
+beaker.session.secret = somesecret
+
+# If you'd like to fine-tune the individual locations of the cache data dirs
+# for the Cache data, or the Session saves, un-comment the desired settings
+# here:
+#beaker.cache.data_dir = %(here)s/data/cache
+#beaker.session.data_dir = %(here)s/data/sessions
+
+# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
+# Debug mode will enable the interactive debugging tool, allowing ANYONE to
+# execute malicious code after an exception is raised.
+#set debug = false
+
+
+# Logging configuration
+[loggers]
+keys = root, mush
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = INFO
+handlers = console
+
+[logger_mush]
+level = DEBUG
+handlers =
+qualname = mush
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
+datefmt = %H:%M:%S

File mush/urls.py

 import selector
-import view
+import views
 
 urls = selector.Selector()
 urls.add('/self-intersection/form/',
-    GET=view.self_buffer_intersection_html)
+    GET=views.self_buffer_intersection_html)
 urls.add('/self-intersection[/]',
-    GET=view.self_buffer_intersection_feed)
+    GET=views.self_buffer_intersection_feed)
 urls.add('/pair-intersection/form/',
-    GET=view.pair_buffer_intersection_html)
+    GET=views.pair_buffer_intersection_html)
 urls.add('/pair-intersection[/]',
-    GET=view.pair_buffer_intersection_feed)
+    GET=views.pair_buffer_intersection_feed)
 
 
     package_data={'mush': ['i18n/*/LC_MESSAGES/*.mo']},
     entry_points="""
     [paste.app_factory]
-    main = mush.config.middleware:make_app
-
-    [paste.app_install]
-    main = pylons.util:PylonsInstaller
-    """,
+    main = mush.app:make_app
+    """
+    #[paste.app_install]
+    #main = pylons.util:PylonsInstaller
+    #""",
 )