def dragTable(self): """ Returns the drag table that is assigned to this record item. :return <subclass of orb.Table> || None """ return Orb.instance().model(self.dragData("application/x-table"))
def dragTable(self): """ Returns the drag table that is assigned to this record item. :return <subclass of orb.Table> || None """ return Orb.instance().model(self.dragData('application/x-table'))
def tableType( self ): """ Returns the table type for this instance. :return <subclass of orb.Table> || None """ if not self._tableType: if self._tableTypeName: self._tableType = Orb.instance().model(str(self._tableTypeName)) return self._tableType
def tableType( self ): """ Returns the table type for this instance. :return <subclass of orb.Table> || None """ if not self._tableType: if self._tableTypeName: self._tableType = Orb.instance().model(nstr(self._tableTypeName)) return self._tableType
def __init__(self, parent=None): super(XOrbSchemaBox, self).__init__(parent) # define custom properties self._schemas = [] if (Orb): self.setSchemas(Orb.instance().schemas()) # create connections self.currentIndexChanged.connect(self.emitCurrentChanged)
def __init__( self, parent = None ): super(XOrbSchemaBox, self).__init__( parent ) # define custom properties self._schemas = [] if ( Orb ): self.setSchemas(Orb.instance().schemas()) # create connections self.currentIndexChanged.connect( self.emitCurrentChanged )
def database(self): """ Returns the database instance that is linked to this join. :return <orb.Database> || None """ if self._database: return self._database # use the first database option based on the tables for option in self.options(): if isinstance(option, orb.Table): return option.database() from orb import Orb return Orb.instance().database()