def populate_schema_objects(self, schema, obj_type):
metadata = self.dbmetadata[obj_type]<EOL>schema = schema or self.dbname<EOL>try:<EOL><INDENT>objects = metadata[schema].keys()<EOL><DEDENT>except KeyError:<EOL><INDENT>objects = []<EOL><DEDENT>return objects<EOL>
Returns list of tables or functions for a (optional) schema