Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fix gui/category_chooser: file change bug | 9879e65c9aad9b1feb05b6121a0e33c129a8beb5 | Sebastian Fricke | 2020-04-22 10:09:36 |
update .gitignore | 6c7628af605a72ced1e146c27da8639225ab9c6c | Sebastian Fricke | 2020-04-22 10:08:47 |
Fix error.py: Fix colorful messages on windows | 31f0b106c7aee1962bba3efb5758f647170eceff | Sebastian Fricke | 2020-04-22 10:07:30 |
Enhanced error output to extra module | dda37a22d21db1af6330fd62395682b91f46f5ec | Sebastian Fricke | 2020-01-27 10:56:00 |
Introduction infoPrint, removed unnecessary parameter | 98b6779f95fcf6d3350f64e7d2a8151932415458 | Sebastian Fricke | 2020-01-16 14:27:15 |
Add Cdiscount price & coding style review | 7c5451b067760100904aed947b2ba484ab9c9e45 | Sebastian Fricke | 2020-01-16 14:25:15 |
coding style, naming conventions & uninitialized | 218378ca191510dc2092108a87e63ff83b4c6b31 | Sebastian Fricke | 2020-01-16 13:58:24 |
coding style & cleanup image upload module | 04ac13fb764baecd1a419cbffcd9696a3ff5b680 | Sebastian Fricke | 2020-01-16 13:56:07 |
coding style improvements and colorful error msg | 401db811c0edd62b14c7a0a29e2c1f6d2791774c | Sebastian Fricke | 2020-01-16 13:54:25 |
code cleanup and coding style category.py | b1e41b45fe405d3826a9b6e452fb9e2f9f6697bf | Sebastian Fricke | 2020-01-16 10:43:44 |
Added the category config to the gitignore file | b8b522d9ade4b59b5d0a0bd4f9b7c79e8db334c6 | Sebastian Fricke | 2020-01-15 14:56:06 |
Removed log function for category_config(not needed) | c8ca8a3b6b968f1835697073e7d5fe1ea70b15ba | Sebastian Fricke | 2020-01-15 14:54:15 |
Added category_config functionality | 7bd8256398b4af5c1feb3033d74cd9f29b047edc | Sebastian Fricke | 2020-01-15 14:53:20 |
improved error handling & adjusted names to naming convention | cfcd91090a2598c6c51576bcdd53e03ab6c2f59b | Sebastian Fricke | 2020-01-15 14:47:42 |
Refactor CategoryChooser | 562e6657c6fef89d0584731e54325cec013268a7 | Sebastian Fricke | 2020-01-15 14:42:11 |
Add category_config location to the script config | 8698e4a99d63b06fde5c39787fc7d6f7400b9f47 | Sebastian Fricke | 2020-01-15 14:29:47 |
Refactor findConfig | 321ae9d7edd69e8be0755cf5ba82289944d06ca3 | Sebastian Fricke | 2020-01-15 14:26:09 |
Add logging function: no category config warning | e8323843a3b6c24ef274d6a12c10d76aa8b8f591 | Sebastian Fricke | 2020-01-14 14:38:39 |
Add module + test for the category-id config | fadaf4515aab1009f4df4a1af5a2e8f82077bc4c | Sebastian Fricke | 2020-01-14 14:35:44 |
improved coding style on log functions | caf97eec6c6026aa051bc98f02a90e649a6e4754 | Sebastian Fricke | 2020-01-14 10:23:17 |
File | Lines added | Lines deleted |
---|---|---|
packages/gui/category_chooser.py | 5 | 3 |
File packages/gui/category_chooser.py changed (mode: 100644) (index 841bbdb..0df4ade) | |||
... | ... | class DescBox(tkinter.Frame): | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | class CategoryChooser(tkinter.Tk): | class CategoryChooser(tkinter.Tk): |
296 | def __init__(self, master, cat, upath='', flatfile='', | ||
296 | def __init__(self, master, categories, upath='', flatfile='', | ||
297 | 297 | atrpath='', atrdate=''): | atrpath='', atrdate=''): |
298 | 298 | tkinter.Tk.__init__(self, master) | tkinter.Tk.__init__(self, master) |
299 | 299 | self.master = master | self.master = master |
... | ... | class CategoryChooser(tkinter.Tk): | |
301 | 301 | self.flatfile = flatfile | self.flatfile = flatfile |
302 | 302 | self.atrpath = atrpath | self.atrpath = atrpath |
303 | 303 | self.atrdate = atrdate | self.atrdate = atrdate |
304 | self.cat = cat | ||
304 | self.cat = categories | ||
305 | 305 | self.newpath = {'upload-path': '', 'attribute-path': ''} | self.newpath = {'upload-path': '', 'attribute-path': ''} |
306 | 306 | self.data = {'name': '', 'categories': '', 'marking': ''} | self.data = {'name': '', 'categories': '', 'marking': ''} |
307 | 307 | self.protocol("WM_WINDOW_DELETE", self.closeApp) | self.protocol("WM_WINDOW_DELETE", self.closeApp) |
... | ... | class CategoryChooser(tkinter.Tk): | |
405 | 405 | self.newpath['attribute-path'] =\ | self.newpath['attribute-path'] =\ |
406 | 406 | tkinter.filedialog.askopenfilename(title=title) | tkinter.filedialog.askopenfilename(title=title) |
407 | 407 | self.atrdate = datetime.datetime.now().strftime("%d.%m.%Y-%H:%M") | self.atrdate = datetime.datetime.now().strftime("%d.%m.%Y-%H:%M") |
408 | self.checkColors(self.flatfile, self.newpath['attribute-path']) | ||
408 | new_attr={'path':self.newpath['attribute-path'], 'encoding':''} | ||
409 | new_attr = item_upload.checkEncoding(new_attr) | ||
410 | self.checkColors(self.flatfile, new_attr) | ||
409 | 411 | ||
410 | 412 | def checkColors(self, flatfile, attributefile): | def checkColors(self, flatfile, attributefile): |
411 | 413 | attributefile = item_upload.checkEncoding(attributefile) | attributefile = item_upload.checkEncoding(attributefile) |