Example #1
0
 def storage_type(self, value):
     r = gbh_helper.enum_set_check(value=value,
                                   enum_type=gfp_self_enum.StorageType)
     if r is None:
         return
     else:
         self._storage_type = r
Example #2
0
 def proxy_type(self, value):
     r = gbh_helper.enum_set_check(value=value,
                                   enum_type=gfp_self_enum.ProxyType)
     if r is None:
         return
     else:
         self._proxy_type = r
Example #3
0
 def country(self, value):
     r = gbh_helper.enum_set_check(value=value,
                                   enum_type=gfp_self_enum.Country,
                                   replace=False)
     if r is None:
         return
     else:
         self._country = r
Example #4
0
 def raw_site(self, value):
     r = gbh_helper.enum_set_check(value=value,
                                   enum_type=gfp_self_enum.SupportedWeb)
     if r is None:
         return
     else:
         self._raw_site = r
         self._site = self._generate_site(
             enumset_site=self._raw_site,
             enumset_protocol=self._protocol,
             int_site_max_page_no=self._site_max_page_no)
Example #5
0
 def browser_type(self, value):
     r = helper.enum_set_check(value, self_enum.BrowserType)
     if r is None:
         return
     else:
         self._browser_type = r
Example #6
0
 def os_type(self, value):
     r = helper.enum_set_check(value, self_enum.OsType)
     if r is None:
         return
     else:
         self._os_type = r
Example #7
0
 def chrome_type(self, value):
     r = helper.enum_set_check(value, self_enum.ChromeType)
     if r is None:
         return
     else:
         self._chrome_type = r