source: googlemapmacro/0.11/tools/googlemap_deletedb.py

Last change on this file was 17139, checked in by Ryan J Ollos, 5 years ago

TracGoogleMapMacro 0.6: Conform to PEP8

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id URL Author Date Rev
File size: 375 bytes
Line 
1# -*- coding: utf-8 -*-
2#! /usr/bin/env python
3#
4# This python script removes the Google Map Macro cache table
5# from the Trac DataBase. Please set your Trac directory below!
6#
7from trac.env import Environment
8
9tracdir = "<YOUR TRAC DIRECTORY>"
10env = Environment(tracdir)
11db = env.get_db_cnx()
12cursor = db.cursor()
13
14cursor.execute("DROP TABLE 'googlemapmacro';")
15db.commit()
Note: See TracBrowser for help on using the repository browser.