|
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 | # |
|---|
| 7 | from trac.env import Environment |
|---|
| 8 | |
|---|
| 9 | tracdir = "<YOUR TRAC DIRECTORY>" |
|---|
| 10 | env = Environment(tracdir) |
|---|
| 11 | db = env.get_db_cnx() |
|---|
| 12 | cursor = db.cursor() |
|---|
| 13 | |
|---|
| 14 | cursor.execute("DROP TABLE 'googlemapmacro';") |
|---|
| 15 | db.commit() |
|---|
Note: See
TracBrowser
for help on using the repository browser.