article-introduction-generator 0.1.0__tar.gz → 0.1.2__tar.gz
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-0.1.0 → article_introduction_generator-0.1.2}/PKG-INFO +1 -1
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/about.py +1 -1
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/program.py +14 -6
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/PKG-INFO +1 -1
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/pyproject.toml +1 -1
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/LICENSE +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/README.md +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/__init__.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/desktop.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/icons/logo.png +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/modules/__init__.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/modules/configure.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/modules/consult.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/modules/wabout.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator/program_old.py +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/SOURCES.txt +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/dependency_links.txt +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/entry_points.txt +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/requires.txt +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/article_introduction_generator.egg-info/top_level.txt +0 -0
- {article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/setup.cfg +0 -0
|
@@ -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>
|
|
@@ -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:
|
|
@@ -957,7 +967,6 @@ class JsonIntroductionEditor(QMainWindow):
|
|
|
957
967
|
def main():
|
|
958
968
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
|
959
969
|
|
|
960
|
-
'''
|
|
961
970
|
create_desktop_directory()
|
|
962
971
|
create_desktop_menu()
|
|
963
972
|
create_desktop_file(os.path.join("~",".local","share","applications"),
|
|
@@ -978,7 +987,6 @@ def main():
|
|
|
978
987
|
overwrite=True,
|
|
979
988
|
program_name=about.__program_name__)
|
|
980
989
|
return
|
|
981
|
-
'''
|
|
982
990
|
|
|
983
991
|
app = QApplication(sys.argv)
|
|
984
992
|
app.setApplicationName(about.__package__)
|
|
@@ -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>
|
{article_introduction_generator-0.1.0 → article_introduction_generator-0.1.2}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "article_introduction_generator"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Program to generate an introduction from a JSON File"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Fernando Pujaico Rivera", email = "fernando.pujaico.rivera@gmail.com"}]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|