# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def modPath(name, mod):
#   """
#   str modPath(filename, module)
#   
#   prepend module's path to filename
#   """
#   if mod:
#     if not isinstance(mod, StringType):
#       mod=mod.__module__
#     ri=mod.rfind('.')
#     if ri > 0:
#       return os.path.join(loaddir, mod[0:ri].replace('.', '/'), name)
# 
#   return os.path.join(loaddir, name)


import psycopg2
import select
import logger
import adm
import re
import threading
from wh import xlt, modPath
from Crypto.PublicKey._slowmath import rsa_construct
# The Admin4 Project
# (c) 2013-2014 Andreas Pflug
#
# Licensed under the Apache License, 
# see LICENSE.TXT for conditions of usage


# http://initd.org/psycopg/docs/


sqlKeywords=[]
moreKeywords=['serial', 'bigserial']
colKeywords=[]

def getSqlKeywords():
  global colKeywords
  global sqlKeywords
  if not sqlKeywords:
    f=open(modPath("kwlist.h", __name__))
    lines=f.read()

# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def modPath(name, mod):
#   """
#   str modPath(filename, module)
#   
#   prepend module's path to filename
#   """
#   if mod:
#     if not isinstance(mod, StringType):
#       mod=mod.__module__
#     ri=mod.rfind('.')
#     if ri > 0:
#       return os.path.join(loaddir, mod[0:ri].replace('.', '/'), name)
# 
#   return os.path.join(loaddir, name)


# Path: modPg/_pgsql.py
import psycopg2
import select
import logger
import adm
import re
import threading
from wh import xlt, modPath
from Crypto.PublicKey._slowmath import rsa_construct

# The Admin4 Project
# (c) 2013-2014 Andreas Pflug
#
# Licensed under the Apache License, 
# see LICENSE.TXT for conditions of usage


# http://initd.org/psycopg/docs/


sqlKeywords=[]
moreKeywords=['serial', 'bigserial']
colKeywords=[]

def getSqlKeywords():
  global colKeywords
  global sqlKeywords
  if not sqlKeywords:
    f=open(modPath("kwlist.h", __name__))
    lines=f.read()

    f.close()