|
49 | 49 |
|
50 | 50 | mPlugins = dict of dicts {id : {
|
51 | 51 | "id" unicode # module name
|
52 |
| - "name" unicode, # |
53 |
| - "description" unicode, # |
| 52 | + "name" unicode, # human readable plugin name |
| 53 | + "description" unicode, # short description of the plugin purpose only |
| 54 | + "about" unicode, # longer description: how does it work, where does it install, how to run it? |
54 | 55 | "category" unicode, # will be removed?
|
55 | 56 | "tags" unicode, # comma separated, spaces allowed
|
56 | 57 | "changelog" unicode, # may be multiline
|
57 |
| - "author_name" unicode, # |
58 |
| - "author_email" unicode, # |
59 |
| - "homepage" unicode, # url to a tracker site |
| 58 | + "author_name" unicode, # author name |
| 59 | + "author_email" unicode, # author email |
| 60 | + "homepage" unicode, # url to the plugin homepage |
60 | 61 | "tracker" unicode, # url to a tracker site
|
61 |
| - "code_repository" unicode, # url to a repository with code |
62 |
| - "version_installed" unicode, # |
63 |
| - "library" unicode, # full path to the installed library/Python module |
| 62 | + "code_repository" unicode, # url to the source code repository |
| 63 | + "version_installed" unicode, # installed instance version |
| 64 | + "library" unicode, # absolute path to the installed library / Python module |
64 | 65 | "icon" unicode, # path to the first:(INSTALLED | AVAILABLE) icon
|
65 |
| - "pythonic" const bool=True |
| 66 | + "pythonic" const bool=True # True if Python plugin |
66 | 67 | "readonly" boolean, # True if core plugin
|
67 | 68 | "installed" boolean, # True if installed
|
68 | 69 | "available" boolean, # True if available in repositories
|
69 | 70 | "status" unicode, # ( not installed | new ) | ( installed | upgradeable | orphan | newer )
|
70 | 71 | "error" unicode, # NULL | broken | incompatible | dependent
|
71 |
| - "error_details" unicode, # more details |
72 |
| - "experimental" boolean, # chosen version: experimental or stable? |
73 |
| - "version_available" unicode, # chosen version: version |
74 |
| - "zip_repository" unicode, # chosen version: the remote repository id |
75 |
| - "download_url" unicode, # chosen version: url for downloading |
76 |
| - "filename" unicode, # chosen version: the zip file to be downloaded |
77 |
| - "downloads" unicode, # chosen version: number of dowloads |
78 |
| - "average_vote" unicode, # chosen version: average vote |
79 |
| - "rating_votes" unicode, # chosen version: number of votes |
80 |
| - "stable:version_available" unicode, # stable version found in repositories |
81 |
| - "stable:download_source" unicode, |
82 |
| - "stable:download_url" unicode, |
83 |
| - "stable:filename" unicode, |
84 |
| - "stable:downloads" unicode, |
85 |
| - "stable:average_vote" unicode, |
86 |
| - "stable:rating_votes" unicode, |
87 |
| - "experimental:version_available" unicode, # experimental version found in repositories |
88 |
| - "experimental:download_source" unicode, |
89 |
| - "experimental:download_url" unicode, |
90 |
| - "experimental:filename" unicode, |
91 |
| - "experimental:downloads" unicode, |
92 |
| - "experimental:average_vote" unicode, |
93 |
| - "experimental:rating_votes" unicode |
| 72 | + "error_details" unicode, # error description |
| 73 | + "experimental" boolean, # true if experimental, false if stable |
| 74 | + "version_available" unicode, # available version |
| 75 | + "zip_repository" unicode, # the remote repository id |
| 76 | + "download_url" unicode, # url for downloading the plugin |
| 77 | + "filename" unicode, # the zip file name to be unzipped after downloaded |
| 78 | + "downloads" unicode, # number of dowloads |
| 79 | + "average_vote" unicode, # average vote |
| 80 | + "rating_votes" unicode, # number of votes |
94 | 81 | }}
|
95 | 82 | """
|
96 | 83 |
|
97 | 84 |
|
98 | 85 |
|
99 |
| -translatableAttributes = ["name", "description", "tags"] |
| 86 | +translatableAttributes = ["name", "description", "about", "tags"] |
100 | 87 |
|
101 | 88 | reposGroup = "/Qgis/plugin-repos"
|
102 | 89 | settingsGroup = "/Qgis/plugin-installer"
|
@@ -434,6 +421,7 @@ def xmlDownloaded(self):
|
434 | 421 | "name" : pluginNodes.item(i).toElement().attribute("name"),
|
435 | 422 | "version_available" : pluginNodes.item(i).toElement().attribute("version"),
|
436 | 423 | "description" : pluginNodes.item(i).firstChildElement("description").text().strip(),
|
| 424 | + "about" : pluginNodes.item(i).firstChildElement("about").text().strip(), |
437 | 425 | "author_name" : pluginNodes.item(i).firstChildElement("author_name").text().strip(),
|
438 | 426 | "homepage" : pluginNodes.item(i).firstChildElement("homepage").text().strip(),
|
439 | 427 | "download_url" : pluginNodes.item(i).firstChildElement("download_url").text().strip(),
|
@@ -647,6 +635,7 @@ def pluginMetadata(fct):
|
647 | 635 | "id" : key,
|
648 | 636 | "name" : pluginMetadata("name") or key,
|
649 | 637 | "description" : pluginMetadata("description"),
|
| 638 | + "about" : pluginMetadata("about"), |
650 | 639 | "icon" : icon,
|
651 | 640 | "category" : pluginMetadata("category"),
|
652 | 641 | "tags" : pluginMetadata("tags"),
|
@@ -739,7 +728,7 @@ def rebuild(self):
|
739 | 728 | if not self.mPlugins[key][attrib] and plugin[attrib]:
|
740 | 729 | self.mPlugins[key][attrib] = plugin[attrib]
|
741 | 730 | # other remote metadata is preffered:
|
742 |
| - for attrib in ["name", "description", "category", "tags", "changelog", "author_name", "author_email", "homepage", |
| 731 | + for attrib in ["name", "description", "about", "category", "tags", "changelog", "author_name", "author_email", "homepage", |
743 | 732 | "tracker", "code_repository", "experimental", "version_available", "zip_repository",
|
744 | 733 | "download_url", "filename", "downloads", "average_vote", "rating_votes"]:
|
745 | 734 | if not attrib in translatableAttributes:
|
|
0 commit comments