def loadProject ( self ):
    """ Load a Project Information from the database """

    sql = "SELECT token, openid, host, project, datatype, dataset, dataurl, readonly, exceptions, resolution, public, kvengine, kvserver, propagate from %s where token = \'%s\'" % (ocpcaprivate.projects, self.token)

    try:
      cursor = self.conn.cursor()
      cursor.execute( sql )
    except MySQLdb.Error, e:
      print e

    row = cursor.fetchone()

    if ( row==None ):
      raise Exception ( "Project {} not found".format( self.token ) )

    return row
dataset/ETHPy150Open neurodata/ndstore/util/deprecated/projAdmin.py/OCPAdmin.loadProject/original