INNER CODE UNIT · Python
authAdduser
volkandindar/agartha · Agartha.py:190
def authAdduser(self, ev=None):
if not self._tbAuthURL.getText().strip():
self._lblAuthNotification.text = "Please provide minimum one URL!"
self._lblAuthNotification.setForeground (Color.red)
return
if self._tbAuthURL.getText().strip() == self._txtURLDefault:
self._lblAuthNotification.text = "You can not proceed with default URL, you can right click on any HTTP calls and send it to here."
self._lblAuthNotification.setForeground (Color.red)
return
for _url in self._tbAuthURL.getText().split('\n'):
if not self.isURLValid(str(_url.strip())):
self._tbAuthURL.setForeground (Color.red)
self._lblAuthNotification.text = "URLs should start with 'http/s' and not have any spaces. Please check: '" + _url + "'"
self._lblAuthNotification.setForeground (Color.red)
return