src/eric7/PluginManager/PluginRepositoryDialog.py

branch
eric7
changeset 10683
779cda568acb
parent 10517
aecd5a8c958c
child 10690
fab36645aa7d
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
1136 @type bool 1136 @type bool
1137 """ 1137 """
1138 pluginsRegister = [] # list of plug-ins contained in the repository 1138 pluginsRegister = [] # list of plug-ins contained in the repository
1139 1139
1140 def registerPlugin( 1140 def registerPlugin(
1141 name, # noqa: U100 1141 _name,
1142 short, # noqa: U100 1142 _short,
1143 description, # noqa: U100 1143 _description,
1144 url, 1144 url,
1145 author, # noqa: U100 1145 _author,
1146 version, # noqa: U100 1146 _version,
1147 filename, # noqa: U100 1147 _filename,
1148 status, # noqa: U100 1148 _status,
1149 category, # noqa: U100 1149 _category,
1150 ): 1150 ):
1151 """ 1151 """
1152 Method to register a plug-in's data. 1152 Method to register a plug-in's data.
1153 1153
1154 @param name data for the name field 1154 @param _name data for the name field (unused)
1155 @type str 1155 @type str
1156 @param short data for the short field 1156 @param _short data for the short field (unused)
1157 @type str 1157 @type str
1158 @param description data for the description field 1158 @param _description data for the description field (unused)
1159 @type list of str 1159 @type list of str
1160 @param url data for the url field 1160 @param url data for the url field
1161 @type str 1161 @type str
1162 @param author data for the author field 1162 @param _author data for the author field (unused)
1163 @type str 1163 @type str
1164 @param version data for the version field 1164 @param _version data for the version field (unused)
1165 @type str 1165 @type str
1166 @param filename data for the filename field 1166 @param _filename data for the filename field (unused)
1167 @type str 1167 @type str
1168 @param status status of the plugin (one of stable, unstable, unknown) 1168 @param _status status of the plugin (one of stable, unstable, unknown) (unused)
1169 @type str 1169 @type str
1170 @param category category designation of the plugin 1170 @param _category category designation of the plugin (unused)
1171 @type str 1171 @type str
1172 """ 1172 """
1173 pluginName = os.path.splitext(url.rsplit("/", 1)[1])[0] 1173 pluginName = os.path.splitext(url.rsplit("/", 1)[1])[0]
1174 if pluginName not in pluginsRegister: 1174 if pluginName not in pluginsRegister:
1175 pluginsRegister.append(pluginName) 1175 pluginsRegister.append(pluginName)

eric ide

mercurial