# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def YesNo(b):
#   if b:
#     return xlt("Yes")
#   else:
#     return xlt("No")


from _objects import ServerObject, DatabaseObject
from wh import xlt, YesNo
# The Admin4 Project
# (c) 2013-2014 Andreas Pflug
#
# Licensed under the Apache License, 
# see LICENSE.TXT for conditions of usage



class Database(ServerObject):
  typename=xlt("Database")
  shortname=xlt("Database")

  @staticmethod
  def GetInstances(parentNode):
    instances=[]
    params={'sysrestr': " WHERE d.oid > %s" % parentNode.GetServer().GetLastSysOid() }

# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def YesNo(b):
#   if b:
#     return xlt("Yes")
#   else:
#     return xlt("No")


# Path: modPg/Database.py
from _objects import ServerObject, DatabaseObject
from wh import xlt, YesNo

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



class Database(ServerObject):
  typename=xlt("Database")
  shortname=xlt("Database")

  @staticmethod
  def GetInstances(parentNode):
    instances=[]
    params={'sysrestr': " WHERE d.oid > %s" % parentNode.GetServer().GetLastSysOid() }

    set=parentNode.GetCursor().ExecuteSet("""