E4XML/PluginRepositoryHandler.py

changeset 45
9a18f4dbb493
parent 13
1af94a91f439
equal deleted inserted replaced
44:fe5cd20cb0eb 45:9a18f4dbb493
86 86
87 def endName(self): 87 def endName(self):
88 """ 88 """
89 Handler method for the "Name" end tag. 89 Handler method for the "Name" end tag.
90 """ 90 """
91 self.info["name"] = self.unescape(self.utf8_to_code(self.buffer)) 91 self.info["name"] = self.unescape(self.buffer)
92 92
93 def endShort(self): 93 def endShort(self):
94 """ 94 """
95 Handler method for the "Short" end tag. 95 Handler method for the "Short" end tag.
96 """ 96 """
97 self.info["short"] = self.unescape(self.utf8_to_code(self.buffer)) 97 self.info["short"] = self.unescape(self.buffer)
98 98
99 def endDescription(self): 99 def endDescription(self):
100 """ 100 """
101 Handler method for the "Description" end tag. 101 Handler method for the "Description" end tag.
102 """ 102 """
103 txt = self.unescape(self.utf8_to_code(self.buffer)) 103 txt = self.unescape(self.buffer)
104 self.info["description"] = [line.strip() for line in txt.splitlines()] 104 self.info["description"] = [line.strip() for line in txt.splitlines()]
105 105
106 def endUrl(self): 106 def endUrl(self):
107 """ 107 """
108 Handler method for the "Url" end tag. 108 Handler method for the "Url" end tag.
109 """ 109 """
110 self.info["url"] = self.unescape(self.utf8_to_code(self.buffer)) 110 self.info["url"] = self.unescape(self.buffer)
111 111
112 def endAuthor(self): 112 def endAuthor(self):
113 """ 113 """
114 Handler method for the "Author" end tag. 114 Handler method for the "Author" end tag.
115 """ 115 """
116 self.info["author"] = self.unescape(self.utf8_to_code(self.buffer)) 116 self.info["author"] = self.unescape(self.buffer)
117 117
118 def endVersion(self): 118 def endVersion(self):
119 """ 119 """
120 Handler method for the "Version" end tag. 120 Handler method for the "Version" end tag.
121 """ 121 """
122 self.info["version"] = self.unescape(self.utf8_to_code(self.buffer)) 122 self.info["version"] = self.unescape(self.buffer)
123 123
124 def endFilename(self): 124 def endFilename(self):
125 """ 125 """
126 Handler method for the "Filename" end tag. 126 Handler method for the "Filename" end tag.
127 """ 127 """
128 self.info["filename"] = self.unescape(self.utf8_to_code(self.buffer)) 128 self.info["filename"] = self.unescape(self.buffer)
129 129
130 def endRepositoryUrl(self): 130 def endRepositoryUrl(self):
131 """ 131 """
132 Handler method for the "RepositoryUrl" end tag. 132 Handler method for the "RepositoryUrl" end tag.
133 """ 133 """
134 url = self.unescape(self.utf8_to_code(self.buffer)).strip() 134 url = self.unescape(self.buffer).strip()
135 Preferences.setUI("PluginRepositoryUrl5", url) 135 Preferences.setUI("PluginRepositoryUrl5", url)
136 136
137 def getVersion(self): 137 def getVersion(self):
138 """ 138 """
139 Public method to retrieve the version of the tasks file. 139 Public method to retrieve the version of the tasks file.

eric ide

mercurial