def getView(self, view_name):
        """The same as __getattr__ except from here, you're allowed to
        specify the view as a string (rather than an object)
        """
        if view_name.lower() in self.tables_and_views():
            DataSource = type(view_name, (Relation, type), {'conn': self.conn})
            return DataSource
        else:
            raise ValueError, 'View %s not found' % view_name
The same as __getattr__ except from here, you're allowed to
        specify the view as a string (rather than an object)
        
recipes/Python/473834_simple_Object_Relational/recipe-473834.py