# 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
      ext=self.info.get('extensions')
      if ext != None:
        if ext:
          ext=", ".join(ext)
        self.AddProperty(xlt("Installed Extensions"), ext)
        avext=self.info.get('available_extensions')
        if avext:
          avext=", ".join(avext)
        self.AddProperty(xlt("Available Extensions"), avext)
      self.AddProperty(xlt("Description"), self.info['description'])
    return self.properties
  
class Programming(DatabaseObject):
  typename="Programming"
  shortname="Programming"
  @staticmethod
  def GetInstances(parentNode):
    instances=[Programming(parentNode, "")]
    return instances

  def GetProperties(self):
    return []
  
nodeinfo= [ { "class": Database, "parents": ["Server"], "sort": 30, "pages": "SqlPage" },
#            { 'class': Programming, 'parents': Database, 'sort': 50 }
            ]    


class DbDisconnect:
  name=xlt("Disconnect")

# 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

      ext=self.info.get('extensions')
      if ext != None:
        if ext:
          ext=", ".join(ext)
        self.AddProperty(xlt("Installed Extensions"), ext)
        avext=self.info.get('available_extensions')
        if avext:
          avext=", ".join(avext)
        self.AddProperty(xlt("Available Extensions"), avext)
      self.AddProperty(xlt("Description"), self.info['description'])
    return self.properties
  
class Programming(DatabaseObject):
  typename="Programming"
  shortname="Programming"
  @staticmethod
  def GetInstances(parentNode):
    instances=[Programming(parentNode, "")]
    return instances

  def GetProperties(self):
    return []
  
nodeinfo= [ { "class": Database, "parents": ["Server"], "sort": 30, "pages": "SqlPage" },
#            { 'class': Programming, 'parents': Database, 'sort': 50 }
            ]    


class DbDisconnect:
  name=xlt("Disconnect")

  help=xlt("Disconnect database connection")