Beispiel #1
0
 def doneConfirming(self, saveTag):
     if saveTag:
         if self.pano.indb or self.downloadPano():
             newtag = Tag(self.mouse.box())
             result = SVCloud.new_tag(self.pano.dbid, newtag.theta1, newtag.phi1, newtag.theta2, newtag.phi2)
             if result:
                 # Note: we have to add to the front, to imitate a linked list
                 self.pano.tags.insert(0, newtag)
                 print "Tag saved."
             else:
                 print "Error: tag was not saved."
         else:
             print "Cannot save tag until the pano is in the database."
     self.mouse.clear()
     self.state.setNormal()