This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImportFieldForm(LazyModelForm): | |
label = forms.ChoiceField(choices=(), required=False) | |
header = forms.ChoiceField(choices=(), required=False, error_messages={'valid': 'Please choose a star rating'}) | |
class Meta: | |
model = ImportField | |
def __init__(self, *args, **kwargs): | |
self.labels = kwargs.pop('labels') | |
self.headers = kwargs.pop('headers') | |
self.helper = FormHelper() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium.common.exceptions import NoSuchElementException, TimeoutException | |
class DomHelper(object): | |
driver = None | |
waiter = None | |
def open_page(self, url): | |
self.driver.get(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Author: Scott Borduin, Lioarlan, LLC | |
* License: GPL (http://www.gnu.org/licenses/gpl.html) -or- MIT (http://www.opensource.org/licenses/mit-license.php) | |
* | |
* Release: 0.15 | |
* | |
* Acknowledgement: Based partly on public contributions from members of the Sencha.com bulletin board. | |
* | |
*/ |