article-introduction-generator 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- article_introduction_generator/about.py +1 -1
- article_introduction_generator/program.py +14 -4
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/METADATA +1 -1
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/RECORD +8 -8
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/WHEEL +0 -0
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/entry_points.txt +0 -0
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {article_introduction_generator-0.1.1.dist-info → article_introduction_generator-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -792,7 +792,7 @@ class JsonIntroductionEditor(QMainWindow):
|
|
|
792
792
|
def load_json(self):
|
|
793
793
|
self._save_current_reference()
|
|
794
794
|
|
|
795
|
-
path, _ = QFileDialog.getOpenFileName(self, "Load JSON", "", "JSON Files (*.json)")
|
|
795
|
+
path, _ = QFileDialog.getOpenFileName(self, "Load JSON", "", "JSON Files (*.intro.json)")
|
|
796
796
|
if not path:
|
|
797
797
|
return
|
|
798
798
|
|
|
@@ -871,13 +871,23 @@ class JsonIntroductionEditor(QMainWindow):
|
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
return data
|
|
874
|
-
|
|
874
|
+
|
|
875
|
+
def ensure_intro_json(self, path: str) -> str:
|
|
876
|
+
if path.endswith(".intro.json"):
|
|
877
|
+
return path
|
|
878
|
+
elif path.endswith(".json"):
|
|
879
|
+
return path[:-5] + ".intro.json" # remove ".json"
|
|
880
|
+
else:
|
|
881
|
+
return path + ".intro.json"
|
|
882
|
+
|
|
875
883
|
def save_as_json(self):
|
|
876
884
|
|
|
877
|
-
path, _ = QFileDialog.getSaveFileName(self, "Save JSON", "", "JSON Files (*.json)")
|
|
885
|
+
path, _ = QFileDialog.getSaveFileName(self, "Save JSON", "", "JSON Files (*.intro.json)")
|
|
878
886
|
if not path:
|
|
879
887
|
return
|
|
880
|
-
|
|
888
|
+
|
|
889
|
+
path = self.ensure_intro_json(path)
|
|
890
|
+
|
|
881
891
|
data = self._obtaining_data()
|
|
882
892
|
|
|
883
893
|
with open(path, "w", encoding="utf-8") as f:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: article_introduction_generator
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Program to generate an introduction from a JSON File
|
|
5
5
|
Author-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
|
6
6
|
Maintainer-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
article_introduction_generator/__init__.py,sha256=ruULPQI7A5xxFhCYlc2-Yak7eGnabqCYTahYYvxbPtc,19
|
|
2
|
-
article_introduction_generator/about.py,sha256=
|
|
2
|
+
article_introduction_generator/about.py,sha256=RzlOHcmNumN4CCKiiOwBOTrPhU8Vj7p223hap2rgmU0,611
|
|
3
3
|
article_introduction_generator/desktop.py,sha256=bpg1TeAzIKDvp5qUOs-1EogeYigir-gd7zPFVisTIZk,3528
|
|
4
|
-
article_introduction_generator/program.py,sha256=
|
|
4
|
+
article_introduction_generator/program.py,sha256=cjxZ3n3Ot3xk8lzi2kJj-UDUYOoOnJLi8aePEuqjbZw,34183
|
|
5
5
|
article_introduction_generator/program_old.py,sha256=RqORCmqLYvTmIN0mMsXS3A3kJS-llmHXCh-vOxXkQqk,20212
|
|
6
6
|
article_introduction_generator/icons/logo.png,sha256=SE1ckm6RpcoheYDNrhxWPIszQCEwgGwe_xBfzZrVR4c,117312
|
|
7
7
|
article_introduction_generator/modules/__init__.py,sha256=ruULPQI7A5xxFhCYlc2-Yak7eGnabqCYTahYYvxbPtc,19
|
|
8
8
|
article_introduction_generator/modules/configure.py,sha256=K48SPidC_LRDXE2Q5QLGOG2-zPiMHjFgu4gv-3WWnns,1923
|
|
9
9
|
article_introduction_generator/modules/consult.py,sha256=La3Xgj9EVzIluylGggd3pzhkjLjsC-mnSdzC-Q8cOk0,2945
|
|
10
10
|
article_introduction_generator/modules/wabout.py,sha256=a8WOE9FJ9AdmbFioK17lqbR0cWavBSKhTzjrhsMJn10,4455
|
|
11
|
-
article_introduction_generator-0.1.
|
|
12
|
-
article_introduction_generator-0.1.
|
|
13
|
-
article_introduction_generator-0.1.
|
|
14
|
-
article_introduction_generator-0.1.
|
|
15
|
-
article_introduction_generator-0.1.
|
|
16
|
-
article_introduction_generator-0.1.
|
|
11
|
+
article_introduction_generator-0.1.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
article_introduction_generator-0.1.2.dist-info/METADATA,sha256=MtrUCbGPWSXbfuULRMu6dLDbNsq1Abq3D3NBkTE-TEU,2131
|
|
13
|
+
article_introduction_generator-0.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
article_introduction_generator-0.1.2.dist-info/entry_points.txt,sha256=aEZZr87sAlDrTi_6Xw26oKj2cd8uoujgov_TW_XYIqk,95
|
|
15
|
+
article_introduction_generator-0.1.2.dist-info/top_level.txt,sha256=MFgK4ElkA2Af3CwTC-IfN3XivimjUkmaobCF6Itt1o0,31
|
|
16
|
+
article_introduction_generator-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|