Ejemplo n.º 1
0
 def updateFeature(self):
     """
     Update the properties of a review queue item 
     """
     
     self.feature = self.currentReviewFeature()
     if not self.feature:
         return 
     if self.feature._changeType == 'Retire':
         UiUtility.raiseErrorMesg(self._iface, 'Retire Items cannot be updated')
         return
     if UiUtility.formCompleteness('update', self.uQueueEditor, self._iface ):        
         UiUtility.formToObj(self)
         respId = int(time.time())
         self.uidm.repairAddress(self.feature, respId)
         self._controller.RespHandler.handleResp(respId, FEEDS['AR'])
         self.feature = None
         self.uQueueEditor.featureId = 0
    def updateFeature(self):
        """
        Update the properties of a review queue item 
        """

        self.feature = self.currentReviewFeature()
        if not self.feature:
            return
        if self.feature._changeType == 'Retire':
            UiUtility.raiseErrorMesg(self._iface,
                                     'Retire Items cannot be updated')
            return
        if UiUtility.formCompleteness('update', self.uQueueEditor,
                                      self._iface):
            UiUtility.formToObj(self)
            respId = int(time.time())
            self.uidm.repairAddress(self.feature, respId)
            self._controller.RespHandler.handleResp(respId, FEEDS['AR'])
            self.feature = None
            self.uQueueEditor.featureId = 0
Ejemplo n.º 3
0
    def submitAddress(self):
        """ 
        Submit the user inputed information to DataManager
        """
        if not UiUtility.formCompleteness(self.parent, self, self._iface):
            return

        respId = int(time.time())

        if self.parent == 'add':
            self.setPosition()
            UiUtility.formToObj(self)
            self._controller.uidm.addAddress(self.feature, respId)

        elif self.parent == 'update':
            UiUtility.formToObj(self)
            self.feature = self.af[FeedType.CHANGEFEED].cast(self.feature)
            self._controller.uidm.updateAddress(self.feature, respId)

        # check the response
        self._controller.RespHandler.handleResp(respId, FEEDS['AC'])
        # revert back to review tab
        self._controller._queues.tabWidget.setCurrentIndex(1)
        self.hideMarker()
Ejemplo n.º 4
0
    def submitAddress(self):
        """ 
        Submit the user inputed information to DataManager
        """
        if not UiUtility.formCompleteness(self.parent, self, self._iface ):
            return
        
        respId = int(time.time())

        if self.parent == 'add': 
            self.setPosition()   
            UiUtility.formToObj(self)
            self._controller.uidm.addAddress(self.feature, respId)
        
        elif self.parent == 'update': 
            UiUtility.formToObj(self)
            self.feature = self.af[FeedType.CHANGEFEED].cast(self.feature)            
            self._controller.uidm.updateAddress(self.feature, respId)
        
        # check the response 
        self._controller.RespHandler.handleResp(respId, FEEDS['AC'])
        # revert back to review tab 
        self._controller._queues.tabWidget.setCurrentIndex(1)
        self.hideMarker()