machinetransdestroy
index
/home/eberdeed/machinetrans-1.13/machinetrans/dataentry/machinetransdestroy.py

MachineTransDestroy:  Removes the PostgreSQL database and user machinetrans.
Created by Edward Charles Eberle <eberdeed@eberdeed.net>
October 25, 2016 San Diego California United States of America

 
Modules
       
os
postgresql.driver
pwd
sys

 
Classes
       
builtins.object
MachineTransDestroy

 
class MachineTransDestroy(builtins.object)
    Removes the PostgreSQL database and role machinetrans.
 
  Methods defined here:
__init__(self)
Do nothing well.
deletemachine(self)
Drop the database using the SQL commands provided in the
"droptrans.sql" file.  If the process fails inform the user.
removedb(self)
Check to see if the user is root. If not 
prompt with an error message.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
curruid = 0
db = None