Loading .gitignore +2 −0 Original line number Diff line number Diff line Loading @@ -4,3 +4,5 @@ .*project .DS_Store .settings/ dist/ django_botscout.egg-info/ No newline at end of file botscout/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class BotScoutForm(object): 'mail': data.get(email_field, None)} if using_ip: test_data['ip'] = self.request.META.get('REMOTE_ADDR', None) test_data = dict((x, y) for x, y in test_data.iteritems() if y is not None) test_data = dict((x, y.strip()) for x, y in test_data.iteritems() if y is not None) cached_data = bot_cache.get_many(['botscout:%s:%s' % (x, hashlib.sha256(y).hexdigest()) for x, y in test_data.iteritems()]) if any(cached_data.values()): Loading setup.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-botscout', version='0.0.1', author='Joey Wilhelm', author_email='tarkatronic@gmail.com', license='License :: OSI Approved', long_description=README, url='http://labs.lyrical.net/lyrical/django-botscout', packages=find_packages(), include_package_data=True, zip_safe=False, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django' ], ) No newline at end of file Loading
.gitignore +2 −0 Original line number Diff line number Diff line Loading @@ -4,3 +4,5 @@ .*project .DS_Store .settings/ dist/ django_botscout.egg-info/ No newline at end of file
botscout/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class BotScoutForm(object): 'mail': data.get(email_field, None)} if using_ip: test_data['ip'] = self.request.META.get('REMOTE_ADDR', None) test_data = dict((x, y) for x, y in test_data.iteritems() if y is not None) test_data = dict((x, y.strip()) for x, y in test_data.iteritems() if y is not None) cached_data = bot_cache.get_many(['botscout:%s:%s' % (x, hashlib.sha256(y).hexdigest()) for x, y in test_data.iteritems()]) if any(cached_data.values()): Loading
setup.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-botscout', version='0.0.1', author='Joey Wilhelm', author_email='tarkatronic@gmail.com', license='License :: OSI Approved', long_description=README, url='http://labs.lyrical.net/lyrical/django-botscout', packages=find_packages(), include_package_data=True, zip_safe=False, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django' ], ) No newline at end of file