Commit 603694995b91d295ca1cc41a2625bdc2fcdb94f5
- Diff rendering mode:
- inline
- side by side
installer_script.nsi
(2 / 2)
|   | |||
| 2 | 2 | ||
| 3 | 3 | ; HM NIS Edit Wizard helper defines | |
| 4 | 4 | !define PRODUCT_NAME "Contribtastic" | |
| 5 | !define PRODUCT_VERSION "2.0-alpha" | ||
| 6 | !define PRODUCT_PUBLISHER "StackWorks LLC" | ||
| 5 | !define PRODUCT_VERSION "2.0-alpha6" | ||
| 6 | !define PRODUCT_PUBLISHER "StackFoundry LLC" | ||
| 7 | 7 | !define PRODUCT_WEB_SITE "http://eve-central.com" | |
| 8 | 8 | !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\uploader.exe" | |
| 9 | 9 | !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" |
src/evec_upload/config.py
(1 / 7)
|   | |||
| 81 | 81 | ||
| 82 | 82 | class Config(object): | |
| 83 | 83 | ||
| 84 | CONFIG_VERSION = '2.0-alpha1' | ||
| 84 | CONFIG_VERSION = '2.0-alpha6' | ||
| 85 | 85 | ||
| 86 | 86 | ||
| 87 | 87 | def __init__(self): | |
| … | … | ||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | 146 | def save_config(self): | |
| 147 | |||
| 148 | |||
| 149 | 147 | file = open( self.filename, "w") | |
| 150 | |||
| 151 | 148 | pickle.dump(self.config_obj, file) | |
| 152 | |||
| 153 | 149 | file.close() | |
| 154 | |||
| 155 | |||
| 156 | 150 | ||
| 157 | 151 | def load_config(self): | |
| 158 | 152 |
src/evec_upload/main.py
(1 / 0)
|   | |||
| 17 | 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 18 | 18 | ||
| 19 | 19 | from evec_upload.upload import * | |
| 20 | from evec_upload.uploader import get_uploader | ||
| 20 | 21 | from evec_upload.taskbar import * | |
| 21 | 22 | import evec_upload.login | |
| 22 | 23 | import evec_upload.options |
src/evec_upload/upload.py
(0 / 2)
|   | |||
| 122 | 122 | statinfo = os.stat(item) | |
| 123 | 123 | ||
| 124 | 124 | if seen.get(item,-1) == statinfo.st_mtime: | |
| 125 | # print "IGNORE_SEEN:",item | ||
| 126 | 125 | continue | |
| 127 | 126 | seen[item] = statinfo.st_mtime | |
| 128 | 127 | ||
| 129 | 128 | if firstrun and statinfo.st_mtime <= start_ts: | |
| 130 | # print "IGNORE_TS:",item | ||
| 131 | 129 | continue | |
| 132 | 130 | ||
| 133 | 131 | if statinfo.st_mtime > highest_timestamp: |
src/evec_upload/uploader.py
(3 / 4)
|   | |||
| 32 | 32 | import evecache | |
| 33 | 33 | ||
| 34 | 34 | from evec_upload.config import Config | |
| 35 | config = Config() | ||
| 36 | 35 | ||
| 36 | |||
| 37 | 37 | ProgramVersion = 2000 | |
| 38 | 38 | ProgramVersionNice = "2.0" | |
| 39 | 39 | CheckVersion = 1031 | |
| … | … | ||
| 42 | 42 | #(DoneUploadEvent, EVT_DONE_UPLOAD) = wx.lib.newevent.NewEvent() | |
| 43 | 43 | ||
| 44 | 44 | def get_uploader(cfg, updcb): | |
| 45 | config = Config() | ||
| 45 | 46 | upl = UploaderEC(identity=0, donecb=updcb) | |
| 46 | 47 | upl.start() | |
| 47 | 48 | ||
| … | … | ||
| 91 | 91 | ||
| 92 | 92 | class UploaderThread(Thread): | |
| 93 | 93 | def __init__(self, queue=None, donecb=None, identity=None): | |
| 94 | config = Config() | ||
| 94 | 95 | Thread.__init__(self) | |
| 95 | 96 | self.setDaemon(True) | |
| 96 | 97 | ||
| … | … | ||
| 177 | 177 | 'timestamp': payload.timestamp, 'cache': True, | |
| 178 | 178 | 'region' : payload.regionid, 'typeid' : payload.typeid}) | |
| 179 | 179 | ||
| 180 | # h = urllib.urlopen("http://eve-central.com/datainput.py/inputdata", submitdata) | ||
| 181 | # print h.read() # Gobble up result | ||
| 182 | # h.close() | ||
| 183 | 180 | import httplib | |
| 184 | 181 | conn = httplib.HTTPConnection(self.host) | |
| 185 | 182 | conn.request( "POST", |

