Example #1
0
 def value(self, app, key, subkey=None):
     '''
     Provides the values for the given app key/subkey.
     
     Some values are shared to every postgresql-db resource.
     '''
     if subkey == "uri":
         user = self.value(app, key, "user")
         password = self.value(app, key, "pass")
         database = self.value(app, key, "database")
         return self.__generate_connection_uri(user, password, database)
     else:
         return DatabaseStored.value(self, app, key, subkey)
Example #2
0
 def __init__(self):
     DatabaseStored.__init__(self, "postgresql-db")