Esempio n. 1
0
 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"))
Esempio n. 2
0
 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'))
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
    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)
Esempio n. 6
0
 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 )
Esempio n. 7
0
File: join.py Progetto: SPRIME01/orb
    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()