comparison orpg/mapper/miniatures_handler.py @ 95:af6bf998f425 alpha

Traipse Alpha 'OpenRPG' {090919-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: 00: Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon) Traipse URL is not included in the repos tab and is set as default. 01: Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. 02: Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. 03: Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. 19-00: Better backwards compatibility in orpgCore. Using majority of 'Grumpy' network folder to correct server lag. 01: Build Number updated. 02: Fixes CherryPit misspelling. Makes Traipse Suite 'Attention' item portable, and executes it on 'Critical' debug notices. Adds incomplete Shift + Enter to Text Entry, currently creates a 'Critical' warning.
author sirebral
date Sat, 19 Sep 2009 12:19:17 -0500
parents 763a04270cf6
children 217fb049bd00 dcf4fbe09b70
comparison
equal deleted inserted replaced
91:ce5c76d49df0 95:af6bf998f425
165 x = dc.DeviceToLogicalX(0) 165 x = dc.DeviceToLogicalX(0)
166 y = dc.DeviceToLogicalY(0) 166 y = dc.DeviceToLogicalY(0)
167 thread.start_new_thread(self.canvas.layers['miniatures'].upload, 167 thread.start_new_thread(self.canvas.layers['miniatures'].upload,
168 (postdata, dlg.GetPath()), {'pos':cmpPoint(x,y)}) 168 (postdata, dlg.GetPath()), {'pos':cmpPoint(x,y)})
169 else: 169 else:
170 self.CherryPy(dlg.GetDirectory(), filename) 170 self.CherryPit(dlg.GetDirectory(), filename)
171 171
172 def CherryPit(self, path, filename): 172 def CherryPit(self, path, filename):
173 try: min_url = component.get("cherrypy") + filename 173 try: min_url = component.get("cherrypy") + filename
174 except: return #chat.InfoPost('CherryPy is not started!') 174 except: return #chat.InfoPost('CherryPy is not started!')
175 min_url = path.replace(orpg.dirpath.dir_struct["user"]+'webfiles', 175 min_url = path.replace(orpg.dirpath.dir_struct["user"]+'webfiles',