Commits

"Jas...@ubib.eur.nl>"  committed 3bad0b7

pass options from settings.ini to the database

  • Participants
  • Parent commits b412492

Comments (0)

Files changed (1)

File moai/wsgi.py

     sets_needed = kwargs.get('needed_sets', '') or []
     if sets_needed:
         sets_needed = sets_needed.split()
-    database = get_database(database)
-    database.config = kwargs
+    database = get_database(database, kwargs)
     feedconfig = FeedConfig(name,
                             url,
                             admin_emails=admin_email,
                             sets_deleted=sets_deleted,
                             sets_disallowed=sets_disallowed,
                             sets_allowed=sets_allowed,
-                            sets_needed=sets_needed)
+                            sets_needed=sets_needed,
+                            extra_args=kwargs)
     server = Server(url, database, feedconfig)
     
     return MOAIWSGIApp(server)