Esempio n. 1
0
##
## Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Indico;if not, see <http://www.gnu.org/licenses/>.

from MaKaC.common import DBMgr
from MaKaC.common.indexes import IndexesHolder
from indico.core.index import Catalog

if __name__ == '__main__':

    dbi = DBMgr.getInstance()

    dbi.startRequest()

    for idx_name in ['categ_conf_sd']:
        idx = Catalog.getIdx(idx_name)
        for problem in idx._check(dbi=dbi):
            print "[%s] %s" % (idx_name, problem)

    for idx_name in ['category', 'calendar', 'categoryDate']:
        idx = IndexesHolder().getIndex(idx_name)
        for problem in idx._check(dbi=dbi):
            print "[%s] %s" % (idx_name, problem)

    dbi.endRequest()
Esempio n. 2
0
from MaKaC.common import DBMgr
from MaKaC.common.indexes import IndexesHolder
from indico.core.index import Catalog


if __name__ == '__main__':

    dbi = DBMgr.getInstance()

    dbi.startRequest()

    for idx_name in ['categ_conf_sd']:
        idx = Catalog.getIdx(idx_name)
        for problem in idx._check(dbi=dbi):
            print "[%s] %s" % (idx_name, problem)

    for idx_name in ['category', 'calendar', 'categoryDate']:
        idx = IndexesHolder().getIndex(idx_name)
        for problem in idx._check(dbi=dbi):
            print "[%s] %s" % (idx_name, problem)

    dbi.endRequest()