107 |
107 |
108 def __readForms(self): |
108 def __readForms(self): |
109 """ |
109 """ |
110 Private method to read the forms information. |
110 Private method to read the forms information. |
111 """ |
111 """ |
|
112 from .LoginForm import LoginForm |
|
113 |
112 if not self.isStartElement() and self.name() != "Forms": |
114 if not self.isStartElement() and self.name() != "Forms": |
113 return |
115 return |
114 |
116 |
115 while not self.atEnd(): |
117 while not self.atEnd(): |
116 self.readNext() |
118 self.readNext() |
117 if self.isStartElement(): |
119 if self.isStartElement(): |
118 if self.name() == "Form": |
120 if self.name() == "Form": |
119 from .LoginForm import LoginForm |
|
120 |
|
121 attributes = self.attributes() |
121 attributes = self.attributes() |
122 key = attributes.value("key") |
122 key = attributes.value("key") |
123 form = LoginForm() |
123 form = LoginForm() |
124 form.url = QUrl(attributes.value("url")) |
124 form.url = QUrl(attributes.value("url")) |
125 form.name = attributes.value("name") |
125 form.name = attributes.value("name") |