[Mpuls-commits] r4029 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 26 18:23:55 CEST 2010


Author: torsten
Date: 2010-10-26 18:23:54 +0200 (Tue, 26 Oct 2010)
New Revision: 4029

Modified:
   base/trunk/mpulsweb/lib/helpers.py
Log:
* mpulsweb/lib/helpers.py (get_db_selectionlist): Added new function wich returns a dictionary with available databases. Used to select the database to logon in loginscreen.


Modified: base/trunk/mpulsweb/lib/helpers.py
===================================================================
--- base/trunk/mpulsweb/lib/helpers.py	2010-10-26 16:21:02 UTC (rev 4028)
+++ base/trunk/mpulsweb/lib/helpers.py	2010-10-26 16:23:54 UTC (rev 4029)
@@ -160,6 +160,11 @@
 # Helper functions used in the UI to show some information like status messages
 # or icons
 
+def get_db_selectionlist():
+    """Returns a dictionarie used for listing available db on the loginscreen."""
+    dblist = g.mpuls_dblist.get_list()
+    return dblist
+
 def status_message(s):
     return "%s: %s" % (format_datetime(datetime.datetime.now()), s)
 



More information about the Mpuls-commits mailing list