├── .gitignore ├── README └── python_people ├── __init__.py ├── bootstrap_tags ├── __init__.py ├── templates │ └── bootstrap_tags │ │ └── form_field.html └── templatetags │ ├── __init__.py │ └── bootstrap_tags.py ├── context_processors.py ├── deploy ├── requirements.txt ├── sites-enabled.txt └── slice.wsgi ├── docs └── icons_tests.svg ├── manage.py ├── pagseguro ├── __init__.py ├── models.py ├── settings.py ├── templates │ └── pagseguro │ │ ├── return.html │ │ └── status.html ├── tests.py ├── urls.py └── views.py ├── people ├── __init__.py ├── admin.py ├── forms.py ├── models.py ├── static │ └── img │ │ ├── python_logo_f.png │ │ ├── python_logo_m.png │ │ ├── python_logo_other.png │ │ ├── python_logo_shadow.png │ │ ├── python_logo_user_grupy.png │ │ └── python_logo_user_grupy_shadow.png ├── templates │ └── people │ │ ├── placemarks.kml │ │ ├── pythongroup_detail.html │ │ ├── pythongroup_form.html │ │ ├── pythongroup_list.html │ │ ├── register_form.html │ │ ├── survey_form.html │ │ ├── userprofile_detail.html │ │ ├── userprofile_form.html │ │ └── userprofile_list.html ├── tests.py ├── urls.py └── views.py ├── settings.py ├── static ├── bootstrap-2.2.2 │ ├── css │ │ ├── bootstrap-responsive.css │ │ ├── bootstrap-responsive.min.css │ │ ├── bootstrap.css │ │ └── bootstrap.min.css │ ├── img │ │ ├── glyphicons-halflings-white.png │ │ └── glyphicons-halflings.png │ └── js │ │ ├── bootstrap.js │ │ └── bootstrap.min.js ├── css │ ├── base-min.css │ ├── base.css │ ├── bootstrap.css │ └── bootstrap.min.css ├── img │ ├── glyphicons_382_google_plus.png │ ├── glyphicons_397_linked_in.png │ ├── glyphicons_410_facebook.png │ ├── glyphicons_411_twitter.png │ ├── python_logo.png │ ├── python_logo_circle.png │ ├── pythonpeople.jpeg │ ├── pythonpeople.jpg │ ├── pythonpeople_250X200.jpg │ ├── pythonpeople_500X350.jpg │ ├── pythonpeople_800X600.jpg │ ├── pythonpeople_button.png │ ├── pythonpeople_twitter.jpg │ ├── pythonpeople_twitter_picture.jpg │ ├── pythonpeople_twitter_picture_2.jpg.png │ ├── sign-in-with-twitter-d.png │ ├── sign-in-with-twitter-gray.png │ ├── sign-in-with-twitter-link.png │ ├── subtle_carbon.png │ ├── twitter-loggingwith.gif │ └── txture.png └── js │ ├── bootstrap │ ├── bootstrap-alerts.js │ └── bootstrap-modal.js │ ├── jquery-1.6.4.min.js │ ├── jquery-1.8.3.min.js │ ├── jquery-ui-1.8.16.custom.min.js │ ├── map_functions.js │ └── map_functions.min.js ├── templates ├── 404.html ├── 500.html ├── about.html ├── auth │ ├── user_detail.html │ └── user_list.html ├── base.html ├── form_field.html ├── home.html ├── login.html ├── placemarks.kml └── registration │ ├── password_change_form.html │ ├── password_reset_complete.html │ ├── password_reset_confirm.html │ ├── password_reset_done.html │ ├── password_reset_email.html │ └── password_reset_form.html └── urls.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | .project 3 | .pydevproject 4 | *~ 5 | settings_local.py 6 | 7 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/README -------------------------------------------------------------------------------- /python_people/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/__init__.py -------------------------------------------------------------------------------- /python_people/bootstrap_tags/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/bootstrap_tags/__init__.py -------------------------------------------------------------------------------- /python_people/bootstrap_tags/templates/bootstrap_tags/form_field.html: -------------------------------------------------------------------------------- 1 | {{ field.label_tag }} 2 |
3 | {% if field.field.required or required %}*{% endif %} 4 | {{ field }} {{ additional_text }} 5 | {% if field.help_text %}
{{ field.help_text }}
{% endif %} 6 | {% if field.errors %}
{{ field.errors|join:", " }}
{% endif %} 7 |
-------------------------------------------------------------------------------- /python_people/bootstrap_tags/templatetags/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/bootstrap_tags/templatetags/__init__.py -------------------------------------------------------------------------------- /python_people/bootstrap_tags/templatetags/bootstrap_tags.py: -------------------------------------------------------------------------------- 1 | from django import template 2 | import django 3 | 4 | register = template.Library() 5 | 6 | @register.simple_tag 7 | def bootstrap_form(obj, required=False): 8 | ''' 9 | the required param, is only used when obj = Field for optional required fields. 10 | ''' 11 | 12 | if isinstance(obj, django.forms.BaseForm): 13 | return form(obj) 14 | elif isinstance(obj, django.forms.forms.BoundField): 15 | return form_field(obj) 16 | else: 17 | raise Exception, 'Bootstrap template tag recieved a non form or field object' 18 | 19 | 20 | 21 | def form_field(field, required=False): 22 | t = template.loader.get_template('bootstrap_tags/form_field.html') 23 | return t.render(template.Context({'field': field, 'required': required})) 24 | 25 | 26 | def form(form): 27 | form_html = '' 28 | t = template.loader.get_template('bootstrap_tags/form_field.html') 29 | 30 | 31 | for fld in form.visible_fields(): 32 | row = t.render(template.Context({'field': fld,})) 33 | #form_html += u'
{field_html}
'.format(field_html=row) 34 | form_html += '
%s
' %(row) #meet python 2.5 35 | 36 | for fld in form.hidden_fields(): 37 | row = unicode(fld) 38 | form_html += u'
%s
' %(row) 39 | 40 | 41 | return form_html 42 | -------------------------------------------------------------------------------- /python_people/context_processors.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from django.contrib.auth.forms import AuthenticationForm 3 | 4 | def user_login_form (request): 5 | user_login_form = AuthenticationForm() 6 | 7 | return {'user_login_form':user_login_form } 8 | -------------------------------------------------------------------------------- /python_people/deploy/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.4 2 | Markdown==2.1.1 3 | PIL==1.1.7 4 | argparse==1.2.1 5 | distribute==0.6.24 6 | django-gravatar==0.1.0 7 | django-social-auth==0.7.10 8 | django-voting==0.1 9 | httplib2==0.7.4 10 | oauth2==1.5.211 11 | psycopg2==2.4.5 12 | python-openid==2.2.5 13 | -------------------------------------------------------------------------------- /python_people/deploy/sites-enabled.txt: -------------------------------------------------------------------------------- 1 | 2 | ServerName pythonpeople.znc.com.br 3 | ErrorLog /var/log/apache2/python_people-error.log 4 | CustomLog /var/log/apache2/python_people-access.log common 5 | 6 | WSGIDaemonProcess python-path=/usr/local/venvs/python_people/lib/python2.5/site-packages 7 | 8 | WSGIScriptAlias / /usr/local/django_sites/python_people/deploy/slice.wsgi 9 | 10 | 11 | Order deny,allow 12 | Allow from all 13 | 14 | 15 | 16 | Alias /media "/usr/local/django_sites/python_people/media" 17 | 18 | SetHandler None 19 | Order deny,allow 20 | Allow from all 21 | 22 | 23 | Alias /static "/usr/local/django_sites/python_people/staticbuild" 24 | 25 | SetHandler None 26 | Order deny,allow 27 | Allow from all 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /python_people/deploy/slice.wsgi: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | from os.path import abspath, join, dirname 4 | 5 | sys.path.insert(0, '/usr/local/venvs/python_people/lib/python2.5/site-packages') 6 | sys.path.insert(0, abspath(join(dirname(__file__), "../"))) 7 | 8 | sys.path.insert(0, abspath(join(dirname(__file__), "../../"))) 9 | 10 | os.environ['DJANGO_SETTINGS_MODULE'] = 'python_people.settings' 11 | 12 | import django.core.handlers.wsgi 13 | application = django.core.handlers.wsgi.WSGIHandler() -------------------------------------------------------------------------------- /python_people/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from django.core.management import execute_manager 3 | import imp 4 | try: 5 | imp.find_module('settings') # Assumed to be in the same directory. 6 | except ImportError: 7 | import sys 8 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) 9 | sys.exit(1) 10 | 11 | import settings 12 | 13 | if __name__ == "__main__": 14 | execute_manager(settings) 15 | -------------------------------------------------------------------------------- /python_people/pagseguro/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/pagseguro/__init__.py -------------------------------------------------------------------------------- /python_people/pagseguro/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /python_people/pagseguro/settings.py: -------------------------------------------------------------------------------- 1 | PAGSEGURO_API_URL = "https://ws.pagseguro.uol.com.br/v2/checkout" 2 | PAGSEGURO_API_RETURN_URL = "https://ws.pagseguro.uol.com.br/v2/checkout" 3 | PAGSEGURO_API_TOKEN="" 4 | 5 | try: 6 | from pag_seg_settings_local import * 7 | except ImportError: 8 | pass -------------------------------------------------------------------------------- /python_people/pagseguro/templates/pagseguro/return.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html"%} 2 | 3 | {% block content %} 4 | 5 | {{ retorno }} 6 | 7 | {% endblock content %} 8 | -------------------------------------------------------------------------------- /python_people/pagseguro/templates/pagseguro/status.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html"%} 2 | 3 | {% block content %} 4 | 5 | {{ status }} 6 | 7 | {% endblock content %} 8 | -------------------------------------------------------------------------------- /python_people/pagseguro/tests.py: -------------------------------------------------------------------------------- 1 | """ 2 | This file demonstrates writing tests using the unittest module. These will pass 3 | when you run "manage.py test". 4 | 5 | Replace this with more appropriate tests for your application. 6 | """ 7 | 8 | from django.test import TestCase 9 | 10 | 11 | class SimpleTest(TestCase): 12 | def test_basic_addition(self): 13 | """ 14 | Tests that 1 + 1 always equals 2. 15 | """ 16 | self.assertEqual(1 + 1, 2) 17 | -------------------------------------------------------------------------------- /python_people/pagseguro/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import patterns, include, url 2 | 3 | urlpatterns = patterns('', 4 | url(r'^checkout/$', 'pagseguro.views.checkout', name='pay-checkout'), 5 | #http://pythonpeople.znc.com.br/pagseguro/checkout/return 6 | url(r'^checkout/return/(?P([\w]-?)*)', 'pagseguro.views.checkout_return', name='pay-checkout_return'), 7 | #http://pythonpeople.znc.com.br/pagseguro/status/ 8 | url(r'^transaction/status/(?P([\w]-?)*)', 'pagseguro.views.transaction_status', name='pay-status'), 9 | 10 | ) 11 | -------------------------------------------------------------------------------- /python_people/pagseguro/views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from django.core.urlresolvers import reverse 3 | from django.shortcuts import render_to_response, get_object_or_404, redirect, render, HttpResponse, HttpResponseRedirect 4 | 5 | import urllib 6 | import urllib2 7 | from xml.dom.minidom import parseString 8 | 9 | #from pagseguro.settings import * 10 | from django.conf import settings 11 | 12 | def pagseguro_transaction_code_request(): 13 | ''' 14 | faz a chamada a API de pagamento 15 | url api pagamento = PAGSEGURO_API_URL = (default) = 16 | https://ws.pagseguro.uol.com.br/v2/checkout 17 | retorno: codigo de pagamento 18 | proximo: redirecionar o usuário para finalizar o pagamento 19 | https://pagseguro.uol.com.br/v2/checkout/payment.html?code= 20 | documentacao: 21 | https://pagseguro.uol.com.br/v2/guia-de-integracao/api-de-pagamentos.html#v2-item-api-de-pagamentos-direcionando-o-comprador 22 | 23 | exemplo retorno: 24 | 25 | 26 | 8CF4BE7DCECEF0F004A6DFA0A8243412 27 | 2010-12-02T10:11:28.000-02:00 28 | 29 | 30 | retorno erros: 31 | 32 | 33 | 34 | 11004 35 | Currency is required. 36 | 37 | 38 | 11005 39 | Currency invalid value: 100 40 | 41 | 42 | ''' 43 | 44 | PAYMENT_DATA = [("email", "xxxxxxxx@gmail.com"), 45 | ("token", settings.PAGSEGURO_API_TOKEN), 46 | ("currency", "BRL"), 47 | ("itemId1", "0001" ), 48 | ("itemDescription1", "Anuidade APYB"), 49 | ("itemAmount1", "5.00"), 50 | ("itemQuantity1", "1"), 51 | ("itemWeight1", "0"), 52 | ("reference", "1" ), 53 | # docs: https://pagseguro.uol.com.br/integracao/pagina-de-redirecionamento.jhtml 54 | ("redirectURL","http://pythonpeople.znc.com.br/pagseguro/checkout/return"), 55 | 56 | ] 57 | 58 | encoded_data=urllib.urlencode(PAYMENT_DATA) 59 | 60 | req=urllib2.Request(settings.PAGSEGURO_API_URL, encoded_data) 61 | req.add_header("Content-type", "application/x-www-form-urlencoded") 62 | #retorno=urllib2.urlopen(req).read() 63 | 64 | 65 | try: 66 | retorno=urllib2.urlopen(req) 67 | except urllib2.URLError, e: 68 | if hasattr(e, 'reason'): 69 | print 'We failed to reach a server.' 70 | print 'Reason: ', e.reason 71 | code = None 72 | return code 73 | elif hasattr(e, 'code'): 74 | print 'The server couldn\'t fulfill the request.' 75 | print 'Error code: ', e.code 76 | code = None 77 | return code 78 | else: 79 | pagseguro_api_xml_response=retorno.read() 80 | #https://pagseguro.uol.com.br/v2/guia-de-integracao/api-de-pagamentos.html#v2-item-api-de-pagamentos-resposta 81 | dom = parseString(pagseguro_api_xml_response) 82 | code_tag = dom.getElementsByTagName('code') 83 | code = code_tag[0].firstChild.data 84 | return code 85 | 86 | def checkout(request): 87 | code = pagseguro_transaction_code_request() 88 | 89 | #return redirect(reverse('python-group-detail', args=[0])) 90 | #return redirect('https://pagseguro.uol.com.br/v2/checkout/payment.html?code=4962B50F85853F3224030FB90DF194B1') 91 | #*********** #*********** #*********** #*********** #*********** 92 | #*********** com redirect nao funca, com httpresponseredirect funfa!!! ARGH!!!! 93 | return HttpResponseRedirect('https://pagseguro.uol.com.br/v2/checkout/payment.html?code=%s'%(code)) 94 | 95 | def checkout_return(request, trans_code=None): 96 | ''' 97 | retorno automatico apos a geracao do boleto 98 | http://www.pythonpeople.znc.com.br/pagamento/checkout/return?trans_code=xxxxxxxx-EA29-416B-A6C9-FC6588E7AC8C 99 | ''' 100 | 101 | print request 102 | 103 | return render(request, 'pagseguro/return.html', {'retorno':request}) 104 | 105 | def transaction_status(request, trans_code=None): 106 | ''' 107 | retorno automatico de dados do pagseguro 108 | 109 | ''' 110 | 111 | print request 112 | 113 | return render(request, 'pagseguro/status.html', {'status':request}) 114 | -------------------------------------------------------------------------------- /python_people/people/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/__init__.py -------------------------------------------------------------------------------- /python_people/people/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from people.models import PythonFrameWorks 3 | 4 | 5 | class PythonFrameWorksAdmin(admin.ModelAdmin): 6 | pass 7 | admin.site.register(PythonFrameWorks, PythonFrameWorksAdmin) 8 | -------------------------------------------------------------------------------- /python_people/people/forms.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from django.contrib.gis import forms 4 | 5 | from django.contrib.auth.models import User 6 | from django.contrib.auth.forms import UserCreationForm 7 | #from django.utils.translation import ugettext_lazy as _ 8 | from django.db.models import Q 9 | 10 | from people.models import UserProfile, PythonGroup, Survey 11 | 12 | 13 | class UserRegisterForm(UserCreationForm): 14 | username = forms.EmailField(label="e-mail", max_length=64, help_text="e-mail as username") 15 | forms.EmailField() 16 | 17 | class Meta: 18 | model = User 19 | fields = ('username', 'password1', 'password2') 20 | 21 | def save(self, commit=True): 22 | user = super(UserRegisterForm, self).save(commit=False) 23 | user.email = self.cleaned_data["username"] 24 | 25 | if commit: 26 | user.save() 27 | return user 28 | 29 | 30 | class UserProfileForm(forms.ModelForm): 31 | 32 | class Meta: 33 | model = UserProfile 34 | exclude = ('user') 35 | widgets = { 36 | 'point': forms.HiddenInput(), 37 | 'python_frameworks': forms.CheckboxSelectMultiple(), 38 | } 39 | 40 | 41 | class PythonGroupForm(forms.ModelForm): 42 | 43 | def __init__(self, *args, **kargs): 44 | self.user = kargs.pop('user', None) 45 | self.commit = kargs.pop('commit', True) 46 | super(PythonGroupForm, self).__init__(*args, **kargs) 47 | 48 | def save(self, *args, **kargs): 49 | if self.instance.pk: 50 | if not self.instance.is_group_owner(self.user): 51 | raise forms.ValidationError("the request user is not the group owner") 52 | 53 | self.instance.user = self.user 54 | return super(PythonGroupForm, self).save(*args, **kargs) 55 | 56 | class Meta: 57 | model = PythonGroup 58 | exclude = ('user') 59 | widgets = { 60 | 'point': forms.HiddenInput(), 61 | 'date_add': forms.HiddenInput(), 62 | 'date_upd': forms.HiddenInput(), 63 | } 64 | 65 | 66 | class ProfileSearchForm(forms.Form): 67 | search_text = forms.CharField(required=False) 68 | 69 | def get_queryset(self): 70 | object_list = UserProfile.objects.all() 71 | if self.is_valid(): 72 | if self.cleaned_data['search_text']: 73 | object_list = object_list.filter(name__icontains=self.cleaned_data['search_text']) 74 | 75 | return object_list 76 | 77 | 78 | class GroupSearchForm(forms.Form): 79 | search_text = forms.CharField(required=False) 80 | 81 | def get_queryset(self): 82 | object_list = PythonGroup.objects.all() 83 | if self.is_valid(): 84 | if self.cleaned_data['search_text']: 85 | search_text = self.cleaned_data['search_text'] 86 | filter = Q(name__icontains=search_text) | Q(description__icontains=search_text) | Q(locality__icontains=search_text) 87 | object_list = object_list.filter(filter) 88 | 89 | return object_list 90 | 91 | 92 | class SurveyForm(forms.ModelForm): 93 | 94 | def __init__(self, *args, **kargs): 95 | self.user = kargs.pop('user', None) 96 | self.commit = kargs.pop('commit', True) 97 | super(SurveyForm, self).__init__(*args, **kargs) 98 | 99 | def save(self, *args, **kargs): 100 | if self.instance.pk: 101 | if not self.instance.is_group_owner(self.user): 102 | raise forms.ValidationError("the request user is not the survey owner") 103 | 104 | self.instance.user = self.user 105 | return super(SurveyForm, self).save(*args, **kargs) 106 | 107 | class Meta: 108 | model = Survey 109 | exclude = ('user') 110 | widgets = { 111 | 'date_add': forms.HiddenInput(), 112 | } 113 | 114 | 115 | class SurveySearchForm(forms.Form): 116 | search_text = forms.CharField(required=False) 117 | 118 | def get_queryset(self): 119 | object_list = Survey.objects.all() 120 | 121 | return object_list 122 | -------------------------------------------------------------------------------- /python_people/people/models.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from django.core.urlresolvers import reverse 3 | from django.conf import settings 4 | from django.contrib.auth.models import User 5 | from django.contrib.gis.db import models 6 | 7 | 8 | SEXO_CHOICES = ( 9 | (1, 'Male'), 10 | (2, 'Female'), 11 | ) 12 | 13 | 14 | class PythonFrameWorks(models.Model): 15 | name = models.CharField(max_length=30) 16 | description = models.TextField(null=True, blank=True) 17 | site_project = models.URLField() 18 | 19 | def __unicode__(self): 20 | return self.name 21 | 22 | class Meta: 23 | ordering = ['name'] 24 | 25 | 26 | class UserProfile(models.Model): 27 | """ 28 | User Profile data 29 | """ 30 | user = models.ForeignKey(User, unique=True) 31 | 32 | name = models.CharField(max_length=60, blank=True, null=True) 33 | gender = models.SmallIntegerField(choices=SEXO_CHOICES, blank=True, null=True) 34 | 35 | point = models.PointField(srid=settings.SRID, blank=True, null=True) 36 | python_frameworks = models.ManyToManyField(PythonFrameWorks, blank=True, null=True, help_text="Select one or more choices") 37 | 38 | #google address format 39 | locality = models.CharField(max_length=60, blank=True, null=True) 40 | administrative_area_level_1 = models.CharField(max_length=60, blank=True, null=True) 41 | country = models.CharField(max_length=6, blank=True, null=True) 42 | 43 | public_email = models.NullBooleanField('Public e-mail address ?', help_text="If 'yes', everyone may see your e-mail adress on your profile page.") 44 | 45 | bio = models.TextField() 46 | 47 | #occupation = models.ManyToManyField(Occupation) 48 | #organization = models.CharField(max_length=60 , blank=True, null=True ) 49 | #organization_site = models.URLField() 50 | #blog = models.URLField(verify_exists=True, blank=True, null=True ) 51 | #site = models.URLField(verify_exists=True, blank=True, null=True ) 52 | #twitter = models.CharField(blank=True, null=True ) 53 | #bio = models.TextField( blank=True, null=True , blank=True, null=True ) 54 | objects = models.GeoManager() 55 | 56 | def __unicode__(self): 57 | return self.user.username 58 | 59 | def get_absolute_url(self): 60 | return reverse('user-profile', args=[self.id]) 61 | 62 | 63 | class PythonGroup(models.Model): 64 | 65 | name = models.CharField(max_length=60, blank=False, null=False) 66 | description = models.TextField(blank=True, null=True) 67 | site_url = models.URLField(verify_exists=True, blank=True, null=True) 68 | contact = models.EmailField(blank=False, null=False) 69 | mailing_list_url = models.URLField(verify_exists=True, blank=True, null=True) 70 | 71 | point = models.PointField(srid=settings.SRID, blank=False, null=False) 72 | #google address format 73 | locality = models.CharField(max_length=60, blank=True, null=True) 74 | administrative_area_level_1 = models.CharField(max_length=60, blank=True, null=True) 75 | country = models.CharField(max_length=6, blank=False, null=False) 76 | 77 | date_add = models.DateField(auto_now_add=True) 78 | date_upd = models.DateField(auto_now=True) 79 | user = models.ForeignKey(User) 80 | 81 | objects = models.GeoManager() 82 | 83 | def __unicode__(self): 84 | return self.name 85 | 86 | def is_group_owner(self, user): 87 | '''return true if user is the owner or if it has no owner.''' 88 | return (self.user == user) or not self.user 89 | 90 | 91 | class Survey(models.Model): 92 | choices_degree = ( 93 | (1, "newbie"), (2, "novice"), (3, "apprentice"), (4, "expert"), (5, "master") 94 | ) 95 | 96 | choices_user_type = ( 97 | (1, 'student'), (2, 'work as a developer'), (3, u'scientist / researcher'), (4, 'Other - (ex: geographer, lawyer ...)') 98 | ) 99 | 100 | choices_main_context = ( 101 | (1, "commercial"), (2, "academic / scientific research"), (3, "gov"), (4, "ngos"), (5, "help open source projects") 102 | ) 103 | 104 | choices_main_environment = ( 105 | (1, "web apps"), (2, "desktop apps"), (3, "scripts (server automation, small tools, plugins ...)")) 106 | 107 | choices_main_problem = ( 108 | (1, u"as a glue language (ex: exchange data between applications, services ...)"), 109 | (2, u"financial tools"), 110 | (3, u"gis tools"), 111 | (4, u"graphical tools"), 112 | (5, u"IT Infrastructure (ex.:server automation, small tools)"), 113 | (6, u"just have fun programming"), 114 | (7, u"network tools"), 115 | (8, u"plugin"), 116 | (9, u"research"), 117 | (10, u"testing software"), 118 | (11, u"web applications development - workflow process"), 119 | (12, u"web CMS"), 120 | (13, u"other"), 121 | ) 122 | 123 | user = models.ManyToManyField(User) 124 | date_add = models.DateTimeField(u"Answers Date", auto_now_add=True) 125 | 126 | when_start = models.DateField(u"when do you start using python", null=True, blank=True) 127 | work = models.NullBooleanField(u"do you uses python at your work ?", null=True, blank=True) 128 | first = models.NullBooleanField(u"is python your first language ? not you like most, but you use most.", null=True, blank=True) 129 | degree = models.IntegerField(u"how much python do you know ? ", choices=choices_degree) 130 | why = models.TextField(u"Why python", null=True, blank=True) 131 | 132 | user_type = models.IntegerField(choices=choices_user_type, null=True, blank=True) 133 | user_type_description = models.CharField(u"Description", max_length=50, null=True, blank=True) 134 | 135 | context = models.IntegerField(u"main environment", choices=choices_main_context, null=True, blank=True) 136 | environment = models.IntegerField(u"main environment", choices=choices_main_environment, null=True, blank=True) 137 | 138 | problem = models.IntegerField(u"main environment", choices=choices_main_problem, null=True, blank=True) 139 | problem_description = models.CharField(u"Description", max_length=50, null=True, blank=True) 140 | 141 | def __unicode__(self): 142 | return self.date 143 | 144 | def is_survey_owner(self, user): 145 | '''return true if user is the owner or if it has no owner. 146 | to implement per user object check 147 | ''' 148 | return (self.user == user) or not self.user 149 | -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_f.png -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_m.png -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_other.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_other.png -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_shadow.png -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_user_grupy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_user_grupy.png -------------------------------------------------------------------------------- /python_people/people/static/img/python_logo_user_grupy_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/people/static/img/python_logo_user_grupy_shadow.png -------------------------------------------------------------------------------- /python_people/people/templates/people/placemarks.kml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Python Developers 5 | Developers on Map 6 | {% for point in points %} 7 | 8 | {{ point.id }} 9 | {{ point.kml|safe }} 10 | 11 | 12 | {% endfor %} 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /python_people/people/templates/people/pythongroup_detail.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block js %} 3 | {{ form.media }} 4 | 5 | 6 | 7 | 25 | {% endblock %} 26 | {% block pagetitle %}{% firstof object.name "--" %} {% endblock %} 27 | {% block content %} 28 |
29 |
30 |
31 |
about
32 |
{% firstof object.description "--" %}
33 |
site
34 | {% if object.site_url %} 35 |
{{ object.site_url }}
36 | {% else %} 37 |
No site url founded
38 | {% endif%} 39 |
Contact
40 |
{{ object.contact }}
41 |
Group added by: {% firstof object.user.get_profile.name "--" %}
42 |
43 |
44 |
45 |
46 |
47 |
48 | 49 | {% endblock %} -------------------------------------------------------------------------------- /python_people/people/templates/people/pythongroup_form.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load bootstrap_tags %} 3 | {% block js %} 4 | {{ form.media }} 5 | 6 | 7 | 8 | 77 | {% endblock %} 78 | {% block menu %} 79 | 80 | {% endblock %} 81 | 82 | {% block content %} 83 |
84 |

Group Python Creation Form

85 |
86 | {% csrf_token %} 87 | {% if form.has_errors %} 88 | {% endif %} 89 |
90 |
91 |
{% bootstrap_form form.name %}
92 |
{% bootstrap_form form.contact %}
93 |
{% bootstrap_form form.site_url %}
94 |
{% bootstrap_form form.mailing_list_url %}
95 |
{% bootstrap_form form.description %}
96 |
97 |
98 |
99 | 100 | 101 |
102 | 103 |
104 | 105 | 106 |
107 |
{% bootstrap_form form.locality %}{{ form.point }}
108 |
{% bootstrap_form form.administrative_area_level_1 %}
109 |
{% bootstrap_form form.country %}
110 |
111 |
112 |
113 | 114 | 115 |
116 |
117 |
118 |
119 | 120 | {% endblock %} -------------------------------------------------------------------------------- /python_people/people/templates/people/pythongroup_list.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load bootstrap_tags %} 3 | {% block css %} 4 | {% endblock %} 5 | {% block js %} 6 | {% endblock %} 7 | {% block menu %} 8 | 9 | {% endblock %} 10 | {% block pagetitle %} Python User Groups{% endblock %}{% block pagesubtitle %}  Add a new Python User Group {% endblock %} 11 | 12 | {% block content %} 13 | 17 |
18 | 19 | {% for obj in object_list %} 20 |
21 |
22 | {{ obj.name|default_if_none:"- -" }} 23 | Location: {{ obj.administrative_area_level_1|default_if_none:" - -" }} / {{ obj.country|default_if_none:" - -" }} 24 | {% if user == obj.user %} edit group profile {% endif %} 25 | 26 | 27 | 28 | 29 |
30 |
31 | 32 | {% endfor %} 33 | 34 |
35 | 36 | 37 | {% endblock %} 38 | -------------------------------------------------------------------------------- /python_people/people/templates/people/register_form.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load bootstrap_tags %} 3 | {% block js %} 4 | {{ form.media }} 5 | 6 | 7 | {% endblock %} 8 | {% block menu %} 9 | 10 | {% endblock %} 11 | {% block content %} 12 |
13 |
14 |

Please fill the form to register.

15 |

Use your e-mail address as username

16 | 17 | 18 |
19 |
20 | 21 |
22 |
23 | {% csrf_token %} 24 | {% if form.errors %} 25 |
26 | × 27 |

Ooops! Please, verity the data entered.

28 |
29 | {% endif %} 30 | {% bootstrap_form form %} 31 | 32 | 33 |
34 | 35 | 36 |
37 |
38 |
39 | 40 |
41 |
42 | 43 | {% endblock %} -------------------------------------------------------------------------------- /python_people/people/templates/people/survey_form.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load bootstrap_toolkit %} 3 | {% block content %} 4 |
5 | {% csrf_token %} 6 | {{ form|as_bootstrap:"vertical" }} 7 | 8 |
9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /python_people/people/templates/people/userprofile_detail.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load markup %} 3 | {% block js %} 4 | 5 | {{ form.media }} 6 | 7 | 25 | {% endblock %} 26 | {% block menu %} 27 | 28 | {% endblock %} 29 | {% block pagetitle %}User: {% firstof object.name "--" %} {% endblock %}{% block pagesubtitle %} {% endblock %} 30 | {% block content %} 31 |
32 |
33 |
34 | {% if object.public_email %} 35 |
E-mail address
36 |
{% firstof object.user.email "--" %}
37 | {% endif %} 38 |
Gender
39 |
{% firstof object.get_gender_display "--" %}
40 |
Location
41 |
{% firstof object.administrative_area_level_1 "--" %} - {% firstof object.country "--" %}
42 |
Python Frameworks
43 |
{{ object.python_frameworks.all|join:"," }}
44 |
Bio
45 |
{{ object.bio|markdown}}
46 |
47 |
48 |
49 |
50 |
51 |
52 | 53 | {% endblock %} -------------------------------------------------------------------------------- /python_people/people/templates/people/userprofile_form.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load bootstrap_tags %} 3 | {% block js %} 4 | {{ form.media }} 5 | 6 | 7 | 8 | 80 | {% endblock %} 81 | {% block menu %} 82 | 83 | {% endblock %} 84 | {% block content %} 85 | 86 | {% if user.is_authenticated %} 87 |
88 |
89 |
90 | 91 |
92 |
93 | Profile Form 94 | {% csrf_token %} 95 | {% bootstrap_form form %} 96 |
97 |
98 |
99 |
100 |
101 | 102 |
103 |

104 | {% if python_groups %} 105 |

You may update these group profiles

106 |
107 |
    {% for obj in python_groups %} 108 |
  • {{obj.name}}
  • 109 | {% endfor %} 110 |
111 |
112 | {% endif %} 113 |
114 |

Local

115 | 116 | 117 | 118 |
119 |
120 | 121 |
122 |
123 | 124 |
125 | 126 | {% endif %} 127 | 128 | {% endblock %} 129 | -------------------------------------------------------------------------------- /python_people/people/templates/people/userprofile_list.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load gravatar %} 3 | {% load bootstrap_tags %} 4 | {% block pagetitle %} Python Users {% endblock %} 5 | {% block content %} 6 | 7 | 11 |
12 | {% for obj in object_list %} 13 |
14 | {% gravatar obj.user.username 50 %} 15 |
16 | {{ obj.name|default_if_none:"- -" }} 17 | Location: {{ obj.administrative_area_level_1|default_if_none:" - -" }} / {{ obj.country|default_if_none:" - -" }} 18 |
19 |
20 |
    21 | {% for pf in obj.python_frameworks.all %} 22 |
  • {{ pf.name }}
  • 23 | {% endfor %} 24 |
      25 |
26 | 27 |
28 | {% endfor %} 29 | 30 | 31 | {% if is_paginated %} 32 | 42 | {% endif %} 43 | 44 |
45 | {% endblock %} 46 | 47 | -------------------------------------------------------------------------------- /python_people/people/tests.py: -------------------------------------------------------------------------------- 1 | """ 2 | This file demonstrates writing tests using the unittest module. These will pass 3 | when you run "manage.py test". 4 | 5 | Replace this with more appropriate tests for your application. 6 | """ 7 | 8 | from django.test import TestCase 9 | 10 | 11 | class SimpleTest(TestCase): 12 | def test_basic_addition(self): 13 | """ 14 | Tests that 1 + 1 always equals 2. 15 | """ 16 | self.assertEqual(1 + 1, 2) 17 | -------------------------------------------------------------------------------- /python_people/people/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import patterns, url 2 | from django.views.generic import DetailView 3 | 4 | from people.models import PythonGroup, UserProfile 5 | from people.views import ( 6 | points, 7 | user_profile_crud, 8 | python_group_crud, 9 | python_users_bounded, 10 | profile_list, 11 | group_list, 12 | survey_list, 13 | survey_crud, 14 | ) 15 | 16 | urlpatterns = patterns('', 17 | url(r'^kml/$', points, name='points'), 18 | #url(r'^profile/(?P\d+)/$', user_profile_upd, name='userprofile-upd'), 19 | ##url(r'^profile/list/$', ListView.as_view(queryset=UserProfile.objects.order_by("name"), template_name='people/userprofile_list.html',paginate_by=15) , name="user-profile-list"), 20 | url(r'^profile/list/$', profile_list, name="user-profile-list"), 21 | url(r'^profile/(?P\d+)/$', DetailView.as_view(model=UserProfile), name="user-profile"), 22 | url(r'^profile/form/$', user_profile_crud, name="user-profile-form"), 23 | 24 | url(r'^python_group/list/$', group_list, name='python-group-list'), 25 | url(r'^python_group/new/$', python_group_crud, name='python-group-crud'), 26 | url(r'^python_group/detail/(?P\d+)/$', DetailView.as_view(model=PythonGroup), name="python-group-detail"), 27 | url(r'^python_group/update/(?P\d+)/$', python_group_crud, name='python-group-crud'), 28 | url(r'^python_group/delete/(?P\d+)/$', python_group_crud, name='python-group-crud'), 29 | 30 | url(r'^survey/list/$', survey_list, name='survey-list'), 31 | url(r'^survey/new/$', survey_crud, name='survey-new'), 32 | url(r'^survey/edit/(?P\d+)/$', survey_crud, name="survey-edit"), 33 | 34 | url(r'^list/bounded/(-?\d+\.\d+)/(-?\d+\.\d+)/(-?\d+\.\d+)/(-?\d+\.\d+)/$', python_users_bounded, name="python-user-list"), 35 | ) 36 | -------------------------------------------------------------------------------- /python_people/people/views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from django.core.urlresolvers import reverse 3 | from django.conf import settings 4 | 5 | from django.utils.decorators import method_decorator 6 | from django.utils import simplejson as json 7 | 8 | from django.contrib.auth.models import User 9 | from django.contrib.auth.decorators import login_required 10 | from django.contrib.gis.shortcuts import render_to_kml 11 | from django.contrib.gis.db.models import * 12 | from django.contrib.gis.geos import Polygon 13 | from django.contrib import messages 14 | 15 | from django.shortcuts import render, redirect, HttpResponse 16 | 17 | from django.views.generic import ListView, CreateView, UpdateView 18 | 19 | from people.forms import UserProfileForm, ProfileSearchForm, UserRegisterForm, PythonGroupForm, GroupSearchForm, SurveySearchForm, SurveyForm 20 | from people.models import UserProfile, PythonFrameWorks, PythonGroup, Survey 21 | 22 | 23 | def gender_count(): 24 | profiles = list(UserProfile.objects.values('gender').annotate(Count('gender'))) 25 | l = list() 26 | opts = {1: 'male', 2: 'female', 3: 'other'} 27 | for i in profiles: 28 | if (i['gender__count'] != None) and (i['gender'] != None): 29 | l.append([opts.get(i['gender']), i['gender__count']]) 30 | return (l) 31 | 32 | 33 | def frameworks_count(): 34 | q = list(PythonFrameWorks.objects.values().annotate(Count('userprofile'))) 35 | l = list() 36 | l = [[i['name'], i['userprofile__count']] for i in q] 37 | return (l) 38 | 39 | 40 | def people_by_country(): 41 | by_country = UserProfile.objects.values('country').annotate(qtd=Count('id')).order_by('-qtd')[:10] 42 | l = [[i['country'], i['qtd']] for i in by_country] 43 | return (l) 44 | 45 | 46 | def points(request): 47 | points = UserProfile.objects.kml() 48 | return render_to_kml("placemarks.kml", {'points': points}) 49 | 50 | 51 | def home(request): 52 | pus = UserProfile.objects.filter(~Q(point=None)) 53 | pygs = PythonGroup.objects.filter(~Q(point=None)) 54 | pygs = pygs.order_by('-date_add')[:10] 55 | users = User.objects.all().order_by('-date_joined')[:10] 56 | #str_json = ups.geojson().values('user_id','name', 'gender','point') 57 | dpyu = [{'user_id':pu.id, 'name':pu.name, 'gender':pu.gender, 'x':pu.point.x, 'y': pu.point.y} for pu in pus] 58 | dpygs = [{'pyg_id':pyg.id, 'name':pyg.name, 'description':pyg.description, 'x':pyg.point.x, 'y': pyg.point.y} for pyg in pygs] 59 | 60 | return render(request, 'home.html', { 61 | 'pjson': json.dumps(dpyu), 62 | 'pygsjson': json.dumps(dpygs), 63 | 'users': users, 64 | 'pygs': pygs[:10], 65 | 'gender_count': gender_count(), 66 | 'frameworks_count': json.dumps(frameworks_count()), 67 | 'by_country': json.dumps(list(people_by_country())), 68 | 'people_total': User.objects.count(), 69 | }) 70 | 71 | 72 | def login_twitter(request): 73 | ''' 74 | callback view from twitter 75 | ''' 76 | return redirect(reverse('user-profile-form')) 77 | 78 | 79 | class CreateWMsgView(CreateView): 80 | message = u'' 81 | message_level = messages.INFO 82 | 83 | def form_valid(self, form): 84 | messages.add_message(self.request, self.message_level, self.message) 85 | return super(CreateWMsgView, self).form_valid(form) 86 | 87 | 88 | def user_register(request, pk=None): 89 | view_kwargs = { 90 | 'model': User, 91 | 'form_class': UserRegisterForm, 92 | 'template_name': "people/register_form.html", 93 | 'message': u'Your account has been created ! Sig in to fullfill your profile.', 94 | 'message_level': messages.INFO, 95 | } 96 | 97 | if pk is None: 98 | view_kwargs['success_url'] = "/login/" 99 | return CreateWMsgView.as_view(**view_kwargs)(request) 100 | else: 101 | return UpdateView.as_view(**view_kwargs)(request, pk=pk) 102 | 103 | 104 | def user_profile_crud(request): 105 | python_groups = None 106 | if request.user.is_authenticated(): 107 | 108 | profile, created = UserProfile.objects.get_or_create(user=request.user) 109 | profile.name = profile.name or request.user.first_name 110 | 111 | form = UserProfileForm(request.POST or None, instance=profile) 112 | 113 | python_groups = profile.user.pythongroup_set.all() 114 | 115 | if request.POST: 116 | if form.is_valid(): 117 | form.save() 118 | else: 119 | form = None 120 | messages.add_message(request, messages.INFO, 'You may sign in to update your profile.') 121 | return render(request, 122 | "people/userprofile_form.html", 123 | {'form': form, 124 | 'python_groups': python_groups}, 125 | ) 126 | 127 | 128 | def python_group_crud(request, pk=None): 129 | 130 | try: 131 | group = PythonGroup.objects.get(pk=pk) 132 | if not group.is_group_owner(request.user): 133 | group = None 134 | messages.add_message(request, messages.INFO, 'You cannot update this python user group.') 135 | return redirect(reverse('python-group-list')) 136 | except: 137 | group = None 138 | 139 | form = PythonGroupForm(request.POST or None, instance=group, user=request.user) 140 | 141 | if request.POST: 142 | if form.is_valid(): 143 | form.save() 144 | messages.add_message(request, messages.INFO, 'The group data was sucessfully updated') 145 | return redirect(reverse('python-group-detail', args=[group.pk])) 146 | else: 147 | messages.add_message(request, messages.ERROR, 'There are erros in your request. Please check the messages below.') 148 | return render(request, 149 | "people/pythongroup_form.html", 150 | {'form': form}, 151 | ) 152 | 153 | 154 | def python_users_bounded(request, *args): 155 | 156 | pyus = UserProfile.objects.filter(point__contained=Polygon.from_bbox(args)).order_by('name') 157 | pyus.filter(~Q(point=None)) 158 | 159 | dpyu = [{'name': pyu.name, 'gender': pyu.gender, 'x': pyu.point.x, 'y': pyu.point.y, 'user_id':pyu.user_id} for pyu in pyus] 160 | return HttpResponse(json.dumps(dpyu), 'json') 161 | 162 | 163 | class SearchListView(ListView): 164 | form_class = None 165 | 166 | def get_context_data(self, **kwargs): 167 | context = super(SearchListView, self).get_context_data(**kwargs) 168 | context['frm_srch'] = self.get_form() 169 | qs_data = context['frm_srch'].data 170 | context['query_string'] = '' 171 | if qs_data: 172 | qs_data.pop('page', '1') 173 | context['query_string'] = qs_data.urlencode() 174 | 175 | return context 176 | 177 | def get_queryset(self): 178 | if self.form_class is None: 179 | return super(SearchListView, self).get_queryset() 180 | return self.get_form().get_queryset() 181 | 182 | def get_form(self): 183 | #if not hasattr(self, '_inst_form'): 184 | # setattr(self, '_inst_form', self.form_class(self.request.GET.copy() or None)) 185 | #return self._inst_form 186 | return self.form_class(self.request.GET.copy() or None) 187 | 188 | 189 | class ProfileListView(SearchListView): 190 | form_class = ProfileSearchForm 191 | paginate_by = 20 192 | 193 | profile_list = ProfileListView.as_view() 194 | 195 | 196 | class GroupListView(SearchListView): 197 | form_class = GroupSearchForm 198 | paginate_by = 20 199 | 200 | group_list = GroupListView.as_view() 201 | 202 | 203 | def survey_crud(request, pk=None): 204 | 205 | try: 206 | survey = Survey.objects.get(pk=pk) 207 | if not group.is_group_owner(request.user): 208 | group = None 209 | messages.add_message(request, messages.INFO, 'You cannot update this python user group.') 210 | return redirect(reverse('python-group-list')) 211 | except: 212 | survey = None 213 | 214 | form = SurveyForm(request.POST or None, instance=survey, user=request.user) 215 | 216 | if request.POST: 217 | if form.is_valid(): 218 | form.save() 219 | messages.add_message(request, messages.INFO, 'The survey was sucessfully updated') 220 | return redirect(reverse('python-survey-detail', args=[group.pk])) 221 | else: 222 | messages.add_message(request, messages.ERROR, 'There are erros in your request. Please check the messages below.') 223 | return render(request, 224 | "people/survey_form.html", 225 | {'form': form}, 226 | ) 227 | 228 | 229 | class SurveyListView(SearchListView): 230 | form_class = SurveySearchForm 231 | paginate_by = 20 232 | 233 | survey_list = SurveyListView.as_view() 234 | 235 | -------------------------------------------------------------------------------- /python_people/settings.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | import os 3 | ROOT_PATH = os.path.dirname(__file__) 4 | 5 | 6 | #DEBUG VAR mey be set to TRUE at settings_local.py 7 | DEBUG = False 8 | TEMPLATE_DEBUG = DEBUG 9 | 10 | ADMINS = ( 11 | ('admin', 'pythonpeople@znc.com.br'), 12 | ) 13 | 14 | MANAGERS = ADMINS 15 | 16 | ## DATABASE settings at settings_local.py 17 | #DATABASES = { 18 | # 'default': { 19 | # 'ENGINE': 'django.contrib.gis.db.backends.postgis', 20 | # 'NAME': 'pypeoplegeo', # Or path to database file if using sqlite3. 21 | # 'USER': '', # Not used with sqlite3. 22 | # 'PASSWORD': '', # Not used with sqlite3. 23 | # 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 24 | # 'PORT': '5433', # Set to empty string for default. Not used with sqlite3. 25 | # } 26 | #} 27 | 28 | 29 | # Local time zone for this installation. Choices can be found here: 30 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 31 | # although not all choices may be available on all operating systems. 32 | # On Unix systems, a value of None will cause Django to use the same 33 | # timezone as the operating system. 34 | # If running in a Windows environment this must be set to the same as your 35 | # system time zone. 36 | TIME_ZONE = 'America/Chicago' 37 | 38 | # Language code for this installation. All choices can be found here: 39 | # http://www.i18nguy.com/unicode/language-identifiers.html 40 | LANGUAGE_CODE = 'en-us' 41 | 42 | SITE_ID = 1 43 | 44 | # If you set this to False, Django will make some optimizations so as not 45 | # to load the internationalization machinery. 46 | USE_I18N = True 47 | 48 | # If you set this to False, Django will not format dates, numbers and 49 | # calendars according to the current locale 50 | USE_L10N = True 51 | 52 | # Absolute filesystem path to the directory that will hold user-uploaded files. 53 | # Example: "/home/media/media.lawrence.com/media/" 54 | MEDIA_ROOT = os.path.join(ROOT_PATH, 'media') 55 | 56 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a 57 | # trailing slash. 58 | # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" 59 | MEDIA_URL = '/media/' 60 | 61 | # Absolute path to the directory static files should be collected to. 62 | # Don't put anything in this directory yourself; store your static files 63 | # in apps' "static/" subdirectories and in STATICFILES_DIRS. 64 | # Example: "/home/media/media.lawrence.com/static/" 65 | STATIC_ROOT = os.path.join(ROOT_PATH, 'staticbuild') #used only for deploy/collect 66 | 67 | # URL prefix for static files. 68 | # Example: "http://media.lawrence.com/static/" 69 | STATIC_URL = '/static/' 70 | 71 | # URL prefix for admin static files -- CSS, JavaScript and images. 72 | # Make sure to use a trailing slash. 73 | # Examples: "http://foo.com/static/admin/", "/static/admin/". 74 | ADMIN_MEDIA_PREFIX = '/static/admin/' 75 | 76 | # Additional locations of static files 77 | STATICFILES_DIRS = ( 78 | # Put strings here, like "/home/html/static" or "C:/www/django/static". 79 | # Always use forward slashes, even on Windows. 80 | # Don't forget to use absolute paths, not relative paths. 81 | os.path.join(ROOT_PATH, 'static'), 82 | ) 83 | 84 | # List of finder classes that know how to find static files in 85 | # various locations. 86 | STATICFILES_FINDERS = ( 87 | 'django.contrib.staticfiles.finders.FileSystemFinder', 88 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 89 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', 90 | ) 91 | 92 | # Make this unique, and don't share it with anybody. 93 | SECRET_KEY = ')7@z3(#akioqd*hibfeloo5dj0r^ajbmvtf3+gyef*hob-%=$4' 94 | 95 | # List of callables that know how to import templates from various sources. 96 | TEMPLATE_LOADERS = ( 97 | 'django.template.loaders.filesystem.Loader', 98 | 'django.template.loaders.app_directories.Loader', 99 | # 'django.template.loaders.eggs.Loader', 100 | ) 101 | 102 | MIDDLEWARE_CLASSES = ( 103 | 'django.middleware.common.CommonMiddleware', 104 | 'django.contrib.sessions.middleware.SessionMiddleware', 105 | 'django.middleware.csrf.CsrfViewMiddleware', 106 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 107 | 'django.contrib.messages.middleware.MessageMiddleware', 108 | ) 109 | 110 | ROOT_URLCONF = 'python_people.urls' 111 | 112 | TEMPLATE_DIRS = ( 113 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". 114 | # Always use forward slashes, even on Windows. 115 | # Don't forget to use absolute paths, not relative paths. 116 | os.path.join(ROOT_PATH, 'templates'), 117 | ) 118 | 119 | #SENTRY 120 | SENTRY_DSN = 'http://f41fba5058194daab4bec8238d5d476b:11d96a06b78140b78b0e27f7fc86533c@putz.znc.com.br/4' 121 | 122 | INSTALLED_APPS = ( 123 | 'django.contrib.auth', 124 | 'django.contrib.contenttypes', 125 | 'django.contrib.sessions', 126 | 'django.contrib.sites', 127 | 'django.contrib.messages', 128 | 'django.contrib.staticfiles', 129 | 'django.contrib.markup', 130 | # Uncomment the next line to enable the admin: 131 | 'django.contrib.admin', 132 | # Uncomment the next line to enable admin documentation: 133 | 'django.contrib.admindocs', 134 | 'django.contrib.webdesign', 135 | 'django.contrib.comments', 136 | 'social_auth', 137 | 'bootstrap_tags', 138 | 'bootstrap_toolkit', 139 | 140 | 'voting', 141 | 'gravatar', 142 | #'djangovoice', 143 | 'people', 144 | 'pagseguro', 145 | 146 | 'raven.contrib.django', # SENTRY 147 | ) 148 | 149 | 150 | AUTH_PROFILE_MODULE = 'people.UserProfile' 151 | 152 | TEMPLATE_CONTEXT_PROCESSORS = ( 153 | 'django.contrib.auth.context_processors.auth', 154 | 'django.core.context_processors.debug', 155 | 'django.core.context_processors.i18n', 156 | 'django.core.context_processors.media', 157 | 'django.core.context_processors.static', 158 | 'django.core.context_processors.csrf', 159 | 'django.core.context_processors.request', 160 | 'django.contrib.messages.context_processors.messages', 161 | 'python_people.context_processors.user_login_form', 162 | ) 163 | 164 | LOGGING = { 165 | 'version': 1, 166 | 'disable_existing_loggers': False, 167 | 'handlers': { 168 | 'mail_admins': { 169 | 'level': 'ERROR', 170 | 'class': 'django.utils.log.AdminEmailHandler' 171 | } 172 | }, 173 | 'loggers': { 174 | 'django.request': { 175 | 'handlers': ['mail_admins'], 176 | 'level': 'ERROR', 177 | 'propagate': True, 178 | }, 179 | } 180 | } 181 | 182 | LOGIN_URL = '/login/' 183 | LOGOUT_URL = '/logout/' 184 | LOGIN_REDIRECT_URL = '/' 185 | 186 | LOGIN_ERROR_URL = '/login-error/' 187 | 188 | ## E-mail settings at settings_local.py 189 | #EMAIL_USE_TLS = True 190 | #EMAIL_HOST = '' 191 | #EMAIL_HOST_USER = '' 192 | #EMAIL_HOST_PASSWORD = '' 193 | #EMAIL_PORT = 587 194 | 195 | SRID = 4326 # projection type - see the readme file 196 | 197 | SESSION_EXPIRE_AT_BROWSER_CLOSE = True 198 | 199 | SOCIAL_AUTH_DEFAULT_USERNAME = 'python-developer' 200 | AUTHENTICATION_BACKENDS = ( 201 | 'social_auth.backends.twitter.TwitterBackend', 202 | #'social_auth.backends.facebook.FacebookBackend', 203 | #'social_auth.backends.google.GoogleOAuthBackend', 204 | #'social_auth.backends.google.GoogleOAuth2Backend', 205 | #'social_auth.backends.google.GoogleBackend', 206 | #'social_auth.backends.yahoo.YahooBackend', 207 | #'social_auth.backends.browserid.BrowserIDBackend', 208 | #'social_auth.backends.contrib.linkedin.LinkedinBackend', 209 | 'django.contrib.auth.backends.ModelBackend', 210 | ) 211 | 212 | ## Do not forget to set key at settings_local.py file 213 | #TWITTER_CONSUMER_KEY = '' 214 | #TWITTER_CONSUMER_SECRET = '' 215 | #FACEBOOK_APP_ID = '' 216 | #FACEBOOK_API_SECRET = '' 217 | #LINKEDIN_CONSUMER_KEY = '' 218 | #LINKEDIN_CONSUMER_SECRET = '' 219 | #GOOGLE_CONSUMER_KEY = '' 220 | #GOOGLE_CONSUMER_SECRET = '' 221 | #GOOGLE_OAUTH2_CLIENT_ID = '' 222 | #GOOGLE_OAUTH2_CLIENT_SECRET = '' 223 | 224 | try: 225 | from settings_local import * 226 | except ImportError: 227 | pass 228 | -------------------------------------------------------------------------------- /python_people/static/bootstrap-2.2.2/css/bootstrap-responsive.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Responsive v2.2.2 3 | * 4 | * Copyright 2012 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */ 10 | 11 | @-ms-viewport { 12 | width: device-width; 13 | } 14 | 15 | .clearfix { 16 | *zoom: 1; 17 | } 18 | 19 | .clearfix:before, 20 | .clearfix:after { 21 | display: table; 22 | line-height: 0; 23 | content: ""; 24 | } 25 | 26 | .clearfix:after { 27 | clear: both; 28 | } 29 | 30 | .hide-text { 31 | font: 0/0 a; 32 | color: transparent; 33 | text-shadow: none; 34 | background-color: transparent; 35 | border: 0; 36 | } 37 | 38 | .input-block-level { 39 | display: block; 40 | width: 100%; 41 | min-height: 30px; 42 | -webkit-box-sizing: border-box; 43 | -moz-box-sizing: border-box; 44 | box-sizing: border-box; 45 | } 46 | 47 | .hidden { 48 | display: none; 49 | visibility: hidden; 50 | } 51 | 52 | .visible-phone { 53 | display: none !important; 54 | } 55 | 56 | .visible-tablet { 57 | display: none !important; 58 | } 59 | 60 | .hidden-desktop { 61 | display: none !important; 62 | } 63 | 64 | .visible-desktop { 65 | display: inherit !important; 66 | } 67 | 68 | @media (min-width: 768px) and (max-width: 979px) { 69 | .hidden-desktop { 70 | display: inherit !important; 71 | } 72 | .visible-desktop { 73 | display: none !important ; 74 | } 75 | .visible-tablet { 76 | display: inherit !important; 77 | } 78 | .hidden-tablet { 79 | display: none !important; 80 | } 81 | } 82 | 83 | @media (max-width: 767px) { 84 | .hidden-desktop { 85 | display: inherit !important; 86 | } 87 | .visible-desktop { 88 | display: none !important; 89 | } 90 | .visible-phone { 91 | display: inherit !important; 92 | } 93 | .hidden-phone { 94 | display: none !important; 95 | } 96 | } 97 | 98 | @media (min-width: 1200px) { 99 | .row { 100 | margin-left: -30px; 101 | *zoom: 1; 102 | } 103 | .row:before, 104 | .row:after { 105 | display: table; 106 | line-height: 0; 107 | content: ""; 108 | } 109 | .row:after { 110 | clear: both; 111 | } 112 | [class*="span"] { 113 | float: left; 114 | min-height: 1px; 115 | margin-left: 30px; 116 | } 117 | .container, 118 | .navbar-static-top .container, 119 | .navbar-fixed-top .container, 120 | .navbar-fixed-bottom .container { 121 | width: 1170px; 122 | } 123 | .span12 { 124 | width: 1170px; 125 | } 126 | .span11 { 127 | width: 1070px; 128 | } 129 | .span10 { 130 | width: 970px; 131 | } 132 | .span9 { 133 | width: 870px; 134 | } 135 | .span8 { 136 | width: 770px; 137 | } 138 | .span7 { 139 | width: 670px; 140 | } 141 | .span6 { 142 | width: 570px; 143 | } 144 | .span5 { 145 | width: 470px; 146 | } 147 | .span4 { 148 | width: 370px; 149 | } 150 | .span3 { 151 | width: 270px; 152 | } 153 | .span2 { 154 | width: 170px; 155 | } 156 | .span1 { 157 | width: 70px; 158 | } 159 | .offset12 { 160 | margin-left: 1230px; 161 | } 162 | .offset11 { 163 | margin-left: 1130px; 164 | } 165 | .offset10 { 166 | margin-left: 1030px; 167 | } 168 | .offset9 { 169 | margin-left: 930px; 170 | } 171 | .offset8 { 172 | margin-left: 830px; 173 | } 174 | .offset7 { 175 | margin-left: 730px; 176 | } 177 | .offset6 { 178 | margin-left: 630px; 179 | } 180 | .offset5 { 181 | margin-left: 530px; 182 | } 183 | .offset4 { 184 | margin-left: 430px; 185 | } 186 | .offset3 { 187 | margin-left: 330px; 188 | } 189 | .offset2 { 190 | margin-left: 230px; 191 | } 192 | .offset1 { 193 | margin-left: 130px; 194 | } 195 | .row-fluid { 196 | width: 100%; 197 | *zoom: 1; 198 | } 199 | .row-fluid:before, 200 | .row-fluid:after { 201 | display: table; 202 | line-height: 0; 203 | content: ""; 204 | } 205 | .row-fluid:after { 206 | clear: both; 207 | } 208 | .row-fluid [class*="span"] { 209 | display: block; 210 | float: left; 211 | width: 100%; 212 | min-height: 30px; 213 | margin-left: 2.564102564102564%; 214 | *margin-left: 2.5109110747408616%; 215 | -webkit-box-sizing: border-box; 216 | -moz-box-sizing: border-box; 217 | box-sizing: border-box; 218 | } 219 | .row-fluid [class*="span"]:first-child { 220 | margin-left: 0; 221 | } 222 | .row-fluid .controls-row [class*="span"] + [class*="span"] { 223 | margin-left: 2.564102564102564%; 224 | } 225 | .row-fluid .span12 { 226 | width: 100%; 227 | *width: 99.94680851063829%; 228 | } 229 | .row-fluid .span11 { 230 | width: 91.45299145299145%; 231 | *width: 91.39979996362975%; 232 | } 233 | .row-fluid .span10 { 234 | width: 82.90598290598291%; 235 | *width: 82.8527914166212%; 236 | } 237 | .row-fluid .span9 { 238 | width: 74.35897435897436%; 239 | *width: 74.30578286961266%; 240 | } 241 | .row-fluid .span8 { 242 | width: 65.81196581196582%; 243 | *width: 65.75877432260411%; 244 | } 245 | .row-fluid .span7 { 246 | width: 57.26495726495726%; 247 | *width: 57.21176577559556%; 248 | } 249 | .row-fluid .span6 { 250 | width: 48.717948717948715%; 251 | *width: 48.664757228587014%; 252 | } 253 | .row-fluid .span5 { 254 | width: 40.17094017094017%; 255 | *width: 40.11774868157847%; 256 | } 257 | .row-fluid .span4 { 258 | width: 31.623931623931625%; 259 | *width: 31.570740134569924%; 260 | } 261 | .row-fluid .span3 { 262 | width: 23.076923076923077%; 263 | *width: 23.023731587561375%; 264 | } 265 | .row-fluid .span2 { 266 | width: 14.52991452991453%; 267 | *width: 14.476723040552828%; 268 | } 269 | .row-fluid .span1 { 270 | width: 5.982905982905983%; 271 | *width: 5.929714493544281%; 272 | } 273 | .row-fluid .offset12 { 274 | margin-left: 105.12820512820512%; 275 | *margin-left: 105.02182214948171%; 276 | } 277 | .row-fluid .offset12:first-child { 278 | margin-left: 102.56410256410257%; 279 | *margin-left: 102.45771958537915%; 280 | } 281 | .row-fluid .offset11 { 282 | margin-left: 96.58119658119658%; 283 | *margin-left: 96.47481360247316%; 284 | } 285 | .row-fluid .offset11:first-child { 286 | margin-left: 94.01709401709402%; 287 | *margin-left: 93.91071103837061%; 288 | } 289 | .row-fluid .offset10 { 290 | margin-left: 88.03418803418803%; 291 | *margin-left: 87.92780505546462%; 292 | } 293 | .row-fluid .offset10:first-child { 294 | margin-left: 85.47008547008548%; 295 | *margin-left: 85.36370249136206%; 296 | } 297 | .row-fluid .offset9 { 298 | margin-left: 79.48717948717949%; 299 | *margin-left: 79.38079650845607%; 300 | } 301 | .row-fluid .offset9:first-child { 302 | margin-left: 76.92307692307693%; 303 | *margin-left: 76.81669394435352%; 304 | } 305 | .row-fluid .offset8 { 306 | margin-left: 70.94017094017094%; 307 | *margin-left: 70.83378796144753%; 308 | } 309 | .row-fluid .offset8:first-child { 310 | margin-left: 68.37606837606839%; 311 | *margin-left: 68.26968539734497%; 312 | } 313 | .row-fluid .offset7 { 314 | margin-left: 62.393162393162385%; 315 | *margin-left: 62.28677941443899%; 316 | } 317 | .row-fluid .offset7:first-child { 318 | margin-left: 59.82905982905982%; 319 | *margin-left: 59.72267685033642%; 320 | } 321 | .row-fluid .offset6 { 322 | margin-left: 53.84615384615384%; 323 | *margin-left: 53.739770867430444%; 324 | } 325 | .row-fluid .offset6:first-child { 326 | margin-left: 51.28205128205128%; 327 | *margin-left: 51.175668303327875%; 328 | } 329 | .row-fluid .offset5 { 330 | margin-left: 45.299145299145295%; 331 | *margin-left: 45.1927623204219%; 332 | } 333 | .row-fluid .offset5:first-child { 334 | margin-left: 42.73504273504273%; 335 | *margin-left: 42.62865975631933%; 336 | } 337 | .row-fluid .offset4 { 338 | margin-left: 36.75213675213675%; 339 | *margin-left: 36.645753773413354%; 340 | } 341 | .row-fluid .offset4:first-child { 342 | margin-left: 34.18803418803419%; 343 | *margin-left: 34.081651209310785%; 344 | } 345 | .row-fluid .offset3 { 346 | margin-left: 28.205128205128204%; 347 | *margin-left: 28.0987452264048%; 348 | } 349 | .row-fluid .offset3:first-child { 350 | margin-left: 25.641025641025642%; 351 | *margin-left: 25.53464266230224%; 352 | } 353 | .row-fluid .offset2 { 354 | margin-left: 19.65811965811966%; 355 | *margin-left: 19.551736679396257%; 356 | } 357 | .row-fluid .offset2:first-child { 358 | margin-left: 17.094017094017094%; 359 | *margin-left: 16.98763411529369%; 360 | } 361 | .row-fluid .offset1 { 362 | margin-left: 11.11111111111111%; 363 | *margin-left: 11.004728132387708%; 364 | } 365 | .row-fluid .offset1:first-child { 366 | margin-left: 8.547008547008547%; 367 | *margin-left: 8.440625568285142%; 368 | } 369 | input, 370 | textarea, 371 | .uneditable-input { 372 | margin-left: 0; 373 | } 374 | .controls-row [class*="span"] + [class*="span"] { 375 | margin-left: 30px; 376 | } 377 | input.span12, 378 | textarea.span12, 379 | .uneditable-input.span12 { 380 | width: 1156px; 381 | } 382 | input.span11, 383 | textarea.span11, 384 | .uneditable-input.span11 { 385 | width: 1056px; 386 | } 387 | input.span10, 388 | textarea.span10, 389 | .uneditable-input.span10 { 390 | width: 956px; 391 | } 392 | input.span9, 393 | textarea.span9, 394 | .uneditable-input.span9 { 395 | width: 856px; 396 | } 397 | input.span8, 398 | textarea.span8, 399 | .uneditable-input.span8 { 400 | width: 756px; 401 | } 402 | input.span7, 403 | textarea.span7, 404 | .uneditable-input.span7 { 405 | width: 656px; 406 | } 407 | input.span6, 408 | textarea.span6, 409 | .uneditable-input.span6 { 410 | width: 556px; 411 | } 412 | input.span5, 413 | textarea.span5, 414 | .uneditable-input.span5 { 415 | width: 456px; 416 | } 417 | input.span4, 418 | textarea.span4, 419 | .uneditable-input.span4 { 420 | width: 356px; 421 | } 422 | input.span3, 423 | textarea.span3, 424 | .uneditable-input.span3 { 425 | width: 256px; 426 | } 427 | input.span2, 428 | textarea.span2, 429 | .uneditable-input.span2 { 430 | width: 156px; 431 | } 432 | input.span1, 433 | textarea.span1, 434 | .uneditable-input.span1 { 435 | width: 56px; 436 | } 437 | .thumbnails { 438 | margin-left: -30px; 439 | } 440 | .thumbnails > li { 441 | margin-left: 30px; 442 | } 443 | .row-fluid .thumbnails { 444 | margin-left: 0; 445 | } 446 | } 447 | 448 | @media (min-width: 768px) and (max-width: 979px) { 449 | .row { 450 | margin-left: -20px; 451 | *zoom: 1; 452 | } 453 | .row:before, 454 | .row:after { 455 | display: table; 456 | line-height: 0; 457 | content: ""; 458 | } 459 | .row:after { 460 | clear: both; 461 | } 462 | [class*="span"] { 463 | float: left; 464 | min-height: 1px; 465 | margin-left: 20px; 466 | } 467 | .container, 468 | .navbar-static-top .container, 469 | .navbar-fixed-top .container, 470 | .navbar-fixed-bottom .container { 471 | width: 724px; 472 | } 473 | .span12 { 474 | width: 724px; 475 | } 476 | .span11 { 477 | width: 662px; 478 | } 479 | .span10 { 480 | width: 600px; 481 | } 482 | .span9 { 483 | width: 538px; 484 | } 485 | .span8 { 486 | width: 476px; 487 | } 488 | .span7 { 489 | width: 414px; 490 | } 491 | .span6 { 492 | width: 352px; 493 | } 494 | .span5 { 495 | width: 290px; 496 | } 497 | .span4 { 498 | width: 228px; 499 | } 500 | .span3 { 501 | width: 166px; 502 | } 503 | .span2 { 504 | width: 104px; 505 | } 506 | .span1 { 507 | width: 42px; 508 | } 509 | .offset12 { 510 | margin-left: 764px; 511 | } 512 | .offset11 { 513 | margin-left: 702px; 514 | } 515 | .offset10 { 516 | margin-left: 640px; 517 | } 518 | .offset9 { 519 | margin-left: 578px; 520 | } 521 | .offset8 { 522 | margin-left: 516px; 523 | } 524 | .offset7 { 525 | margin-left: 454px; 526 | } 527 | .offset6 { 528 | margin-left: 392px; 529 | } 530 | .offset5 { 531 | margin-left: 330px; 532 | } 533 | .offset4 { 534 | margin-left: 268px; 535 | } 536 | .offset3 { 537 | margin-left: 206px; 538 | } 539 | .offset2 { 540 | margin-left: 144px; 541 | } 542 | .offset1 { 543 | margin-left: 82px; 544 | } 545 | .row-fluid { 546 | width: 100%; 547 | *zoom: 1; 548 | } 549 | .row-fluid:before, 550 | .row-fluid:after { 551 | display: table; 552 | line-height: 0; 553 | content: ""; 554 | } 555 | .row-fluid:after { 556 | clear: both; 557 | } 558 | .row-fluid [class*="span"] { 559 | display: block; 560 | float: left; 561 | width: 100%; 562 | min-height: 30px; 563 | margin-left: 2.7624309392265194%; 564 | *margin-left: 2.709239449864817%; 565 | -webkit-box-sizing: border-box; 566 | -moz-box-sizing: border-box; 567 | box-sizing: border-box; 568 | } 569 | .row-fluid [class*="span"]:first-child { 570 | margin-left: 0; 571 | } 572 | .row-fluid .controls-row [class*="span"] + [class*="span"] { 573 | margin-left: 2.7624309392265194%; 574 | } 575 | .row-fluid .span12 { 576 | width: 100%; 577 | *width: 99.94680851063829%; 578 | } 579 | .row-fluid .span11 { 580 | width: 91.43646408839778%; 581 | *width: 91.38327259903608%; 582 | } 583 | .row-fluid .span10 { 584 | width: 82.87292817679558%; 585 | *width: 82.81973668743387%; 586 | } 587 | .row-fluid .span9 { 588 | width: 74.30939226519337%; 589 | *width: 74.25620077583166%; 590 | } 591 | .row-fluid .span8 { 592 | width: 65.74585635359117%; 593 | *width: 65.69266486422946%; 594 | } 595 | .row-fluid .span7 { 596 | width: 57.18232044198895%; 597 | *width: 57.12912895262725%; 598 | } 599 | .row-fluid .span6 { 600 | width: 48.61878453038674%; 601 | *width: 48.56559304102504%; 602 | } 603 | .row-fluid .span5 { 604 | width: 40.05524861878453%; 605 | *width: 40.00205712942283%; 606 | } 607 | .row-fluid .span4 { 608 | width: 31.491712707182323%; 609 | *width: 31.43852121782062%; 610 | } 611 | .row-fluid .span3 { 612 | width: 22.92817679558011%; 613 | *width: 22.87498530621841%; 614 | } 615 | .row-fluid .span2 { 616 | width: 14.3646408839779%; 617 | *width: 14.311449394616199%; 618 | } 619 | .row-fluid .span1 { 620 | width: 5.801104972375691%; 621 | *width: 5.747913483013988%; 622 | } 623 | .row-fluid .offset12 { 624 | margin-left: 105.52486187845304%; 625 | *margin-left: 105.41847889972962%; 626 | } 627 | .row-fluid .offset12:first-child { 628 | margin-left: 102.76243093922652%; 629 | *margin-left: 102.6560479605031%; 630 | } 631 | .row-fluid .offset11 { 632 | margin-left: 96.96132596685082%; 633 | *margin-left: 96.8549429881274%; 634 | } 635 | .row-fluid .offset11:first-child { 636 | margin-left: 94.1988950276243%; 637 | *margin-left: 94.09251204890089%; 638 | } 639 | .row-fluid .offset10 { 640 | margin-left: 88.39779005524862%; 641 | *margin-left: 88.2914070765252%; 642 | } 643 | .row-fluid .offset10:first-child { 644 | margin-left: 85.6353591160221%; 645 | *margin-left: 85.52897613729868%; 646 | } 647 | .row-fluid .offset9 { 648 | margin-left: 79.8342541436464%; 649 | *margin-left: 79.72787116492299%; 650 | } 651 | .row-fluid .offset9:first-child { 652 | margin-left: 77.07182320441989%; 653 | *margin-left: 76.96544022569647%; 654 | } 655 | .row-fluid .offset8 { 656 | margin-left: 71.2707182320442%; 657 | *margin-left: 71.16433525332079%; 658 | } 659 | .row-fluid .offset8:first-child { 660 | margin-left: 68.50828729281768%; 661 | *margin-left: 68.40190431409427%; 662 | } 663 | .row-fluid .offset7 { 664 | margin-left: 62.70718232044199%; 665 | *margin-left: 62.600799341718584%; 666 | } 667 | .row-fluid .offset7:first-child { 668 | margin-left: 59.94475138121547%; 669 | *margin-left: 59.838368402492065%; 670 | } 671 | .row-fluid .offset6 { 672 | margin-left: 54.14364640883978%; 673 | *margin-left: 54.037263430116376%; 674 | } 675 | .row-fluid .offset6:first-child { 676 | margin-left: 51.38121546961326%; 677 | *margin-left: 51.27483249088986%; 678 | } 679 | .row-fluid .offset5 { 680 | margin-left: 45.58011049723757%; 681 | *margin-left: 45.47372751851417%; 682 | } 683 | .row-fluid .offset5:first-child { 684 | margin-left: 42.81767955801105%; 685 | *margin-left: 42.71129657928765%; 686 | } 687 | .row-fluid .offset4 { 688 | margin-left: 37.01657458563536%; 689 | *margin-left: 36.91019160691196%; 690 | } 691 | .row-fluid .offset4:first-child { 692 | margin-left: 34.25414364640884%; 693 | *margin-left: 34.14776066768544%; 694 | } 695 | .row-fluid .offset3 { 696 | margin-left: 28.45303867403315%; 697 | *margin-left: 28.346655695309746%; 698 | } 699 | .row-fluid .offset3:first-child { 700 | margin-left: 25.69060773480663%; 701 | *margin-left: 25.584224756083227%; 702 | } 703 | .row-fluid .offset2 { 704 | margin-left: 19.88950276243094%; 705 | *margin-left: 19.783119783707537%; 706 | } 707 | .row-fluid .offset2:first-child { 708 | margin-left: 17.12707182320442%; 709 | *margin-left: 17.02068884448102%; 710 | } 711 | .row-fluid .offset1 { 712 | margin-left: 11.32596685082873%; 713 | *margin-left: 11.219583872105325%; 714 | } 715 | .row-fluid .offset1:first-child { 716 | margin-left: 8.56353591160221%; 717 | *margin-left: 8.457152932878806%; 718 | } 719 | input, 720 | textarea, 721 | .uneditable-input { 722 | margin-left: 0; 723 | } 724 | .controls-row [class*="span"] + [class*="span"] { 725 | margin-left: 20px; 726 | } 727 | input.span12, 728 | textarea.span12, 729 | .uneditable-input.span12 { 730 | width: 710px; 731 | } 732 | input.span11, 733 | textarea.span11, 734 | .uneditable-input.span11 { 735 | width: 648px; 736 | } 737 | input.span10, 738 | textarea.span10, 739 | .uneditable-input.span10 { 740 | width: 586px; 741 | } 742 | input.span9, 743 | textarea.span9, 744 | .uneditable-input.span9 { 745 | width: 524px; 746 | } 747 | input.span8, 748 | textarea.span8, 749 | .uneditable-input.span8 { 750 | width: 462px; 751 | } 752 | input.span7, 753 | textarea.span7, 754 | .uneditable-input.span7 { 755 | width: 400px; 756 | } 757 | input.span6, 758 | textarea.span6, 759 | .uneditable-input.span6 { 760 | width: 338px; 761 | } 762 | input.span5, 763 | textarea.span5, 764 | .uneditable-input.span5 { 765 | width: 276px; 766 | } 767 | input.span4, 768 | textarea.span4, 769 | .uneditable-input.span4 { 770 | width: 214px; 771 | } 772 | input.span3, 773 | textarea.span3, 774 | .uneditable-input.span3 { 775 | width: 152px; 776 | } 777 | input.span2, 778 | textarea.span2, 779 | .uneditable-input.span2 { 780 | width: 90px; 781 | } 782 | input.span1, 783 | textarea.span1, 784 | .uneditable-input.span1 { 785 | width: 28px; 786 | } 787 | } 788 | 789 | @media (max-width: 767px) { 790 | body { 791 | padding-right: 20px; 792 | padding-left: 20px; 793 | } 794 | .navbar-fixed-top, 795 | .navbar-fixed-bottom, 796 | .navbar-static-top { 797 | margin-right: -20px; 798 | margin-left: -20px; 799 | } 800 | .container-fluid { 801 | padding: 0; 802 | } 803 | .dl-horizontal dt { 804 | float: none; 805 | width: auto; 806 | clear: none; 807 | text-align: left; 808 | } 809 | .dl-horizontal dd { 810 | margin-left: 0; 811 | } 812 | .container { 813 | width: auto; 814 | } 815 | .row-fluid { 816 | width: 100%; 817 | } 818 | .row, 819 | .thumbnails { 820 | margin-left: 0; 821 | } 822 | .thumbnails > li { 823 | float: none; 824 | margin-left: 0; 825 | } 826 | [class*="span"], 827 | .uneditable-input[class*="span"], 828 | .row-fluid [class*="span"] { 829 | display: block; 830 | float: none; 831 | width: 100%; 832 | margin-left: 0; 833 | -webkit-box-sizing: border-box; 834 | -moz-box-sizing: border-box; 835 | box-sizing: border-box; 836 | } 837 | .span12, 838 | .row-fluid .span12 { 839 | width: 100%; 840 | -webkit-box-sizing: border-box; 841 | -moz-box-sizing: border-box; 842 | box-sizing: border-box; 843 | } 844 | .row-fluid [class*="offset"]:first-child { 845 | margin-left: 0; 846 | } 847 | .input-large, 848 | .input-xlarge, 849 | .input-xxlarge, 850 | input[class*="span"], 851 | select[class*="span"], 852 | textarea[class*="span"], 853 | .uneditable-input { 854 | display: block; 855 | width: 100%; 856 | min-height: 30px; 857 | -webkit-box-sizing: border-box; 858 | -moz-box-sizing: border-box; 859 | box-sizing: border-box; 860 | } 861 | .input-prepend input, 862 | .input-append input, 863 | .input-prepend input[class*="span"], 864 | .input-append input[class*="span"] { 865 | display: inline-block; 866 | width: auto; 867 | } 868 | .controls-row [class*="span"] + [class*="span"] { 869 | margin-left: 0; 870 | } 871 | .modal { 872 | position: fixed; 873 | top: 20px; 874 | right: 20px; 875 | left: 20px; 876 | width: auto; 877 | margin: 0; 878 | } 879 | .modal.fade { 880 | top: -100px; 881 | } 882 | .modal.fade.in { 883 | top: 20px; 884 | } 885 | } 886 | 887 | @media (max-width: 480px) { 888 | .nav-collapse { 889 | -webkit-transform: translate3d(0, 0, 0); 890 | } 891 | .page-header h1 small { 892 | display: block; 893 | line-height: 20px; 894 | } 895 | input[type="checkbox"], 896 | input[type="radio"] { 897 | border: 1px solid #ccc; 898 | } 899 | .form-horizontal .control-label { 900 | float: none; 901 | width: auto; 902 | padding-top: 0; 903 | text-align: left; 904 | } 905 | .form-horizontal .controls { 906 | margin-left: 0; 907 | } 908 | .form-horizontal .control-list { 909 | padding-top: 0; 910 | } 911 | .form-horizontal .form-actions { 912 | padding-right: 10px; 913 | padding-left: 10px; 914 | } 915 | .media .pull-left, 916 | .media .pull-right { 917 | display: block; 918 | float: none; 919 | margin-bottom: 10px; 920 | } 921 | .media-object { 922 | margin-right: 0; 923 | margin-left: 0; 924 | } 925 | .modal { 926 | top: 10px; 927 | right: 10px; 928 | left: 10px; 929 | } 930 | .modal-header .close { 931 | padding: 10px; 932 | margin: -10px; 933 | } 934 | .carousel-caption { 935 | position: static; 936 | } 937 | } 938 | 939 | @media (max-width: 979px) { 940 | body { 941 | padding-top: 0; 942 | } 943 | .navbar-fixed-top, 944 | .navbar-fixed-bottom { 945 | position: static; 946 | } 947 | .navbar-fixed-top { 948 | margin-bottom: 20px; 949 | } 950 | .navbar-fixed-bottom { 951 | margin-top: 20px; 952 | } 953 | .navbar-fixed-top .navbar-inner, 954 | .navbar-fixed-bottom .navbar-inner { 955 | padding: 5px; 956 | } 957 | .navbar .container { 958 | width: auto; 959 | padding: 0; 960 | } 961 | .navbar .brand { 962 | padding-right: 10px; 963 | padding-left: 10px; 964 | margin: 0 0 0 -5px; 965 | } 966 | .nav-collapse { 967 | clear: both; 968 | } 969 | .nav-collapse .nav { 970 | float: none; 971 | margin: 0 0 10px; 972 | } 973 | .nav-collapse .nav > li { 974 | float: none; 975 | } 976 | .nav-collapse .nav > li > a { 977 | margin-bottom: 2px; 978 | } 979 | .nav-collapse .nav > .divider-vertical { 980 | display: none; 981 | } 982 | .nav-collapse .nav .nav-header { 983 | color: #777777; 984 | text-shadow: none; 985 | } 986 | .nav-collapse .nav > li > a, 987 | .nav-collapse .dropdown-menu a { 988 | padding: 9px 15px; 989 | font-weight: bold; 990 | color: #777777; 991 | -webkit-border-radius: 3px; 992 | -moz-border-radius: 3px; 993 | border-radius: 3px; 994 | } 995 | .nav-collapse .btn { 996 | padding: 4px 10px 4px; 997 | font-weight: normal; 998 | -webkit-border-radius: 4px; 999 | -moz-border-radius: 4px; 1000 | border-radius: 4px; 1001 | } 1002 | .nav-collapse .dropdown-menu li + li a { 1003 | margin-bottom: 2px; 1004 | } 1005 | .nav-collapse .nav > li > a:hover, 1006 | .nav-collapse .dropdown-menu a:hover { 1007 | background-color: #f2f2f2; 1008 | } 1009 | .navbar-inverse .nav-collapse .nav > li > a, 1010 | .navbar-inverse .nav-collapse .dropdown-menu a { 1011 | color: #999999; 1012 | } 1013 | .navbar-inverse .nav-collapse .nav > li > a:hover, 1014 | .navbar-inverse .nav-collapse .dropdown-menu a:hover { 1015 | background-color: #111111; 1016 | } 1017 | .nav-collapse.in .btn-group { 1018 | padding: 0; 1019 | margin-top: 5px; 1020 | } 1021 | .nav-collapse .dropdown-menu { 1022 | position: static; 1023 | top: auto; 1024 | left: auto; 1025 | display: none; 1026 | float: none; 1027 | max-width: none; 1028 | padding: 0; 1029 | margin: 0 15px; 1030 | background-color: transparent; 1031 | border: none; 1032 | -webkit-border-radius: 0; 1033 | -moz-border-radius: 0; 1034 | border-radius: 0; 1035 | -webkit-box-shadow: none; 1036 | -moz-box-shadow: none; 1037 | box-shadow: none; 1038 | } 1039 | .nav-collapse .open > .dropdown-menu { 1040 | display: block; 1041 | } 1042 | .nav-collapse .dropdown-menu:before, 1043 | .nav-collapse .dropdown-menu:after { 1044 | display: none; 1045 | } 1046 | .nav-collapse .dropdown-menu .divider { 1047 | display: none; 1048 | } 1049 | .nav-collapse .nav > li > .dropdown-menu:before, 1050 | .nav-collapse .nav > li > .dropdown-menu:after { 1051 | display: none; 1052 | } 1053 | .nav-collapse .navbar-form, 1054 | .nav-collapse .navbar-search { 1055 | float: none; 1056 | padding: 10px 15px; 1057 | margin: 10px 0; 1058 | border-top: 1px solid #f2f2f2; 1059 | border-bottom: 1px solid #f2f2f2; 1060 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1061 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1062 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1063 | } 1064 | .navbar-inverse .nav-collapse .navbar-form, 1065 | .navbar-inverse .nav-collapse .navbar-search { 1066 | border-top-color: #111111; 1067 | border-bottom-color: #111111; 1068 | } 1069 | .navbar .nav-collapse .nav.pull-right { 1070 | float: none; 1071 | margin-left: 0; 1072 | } 1073 | .nav-collapse, 1074 | .nav-collapse.collapse { 1075 | height: 0; 1076 | overflow: hidden; 1077 | } 1078 | .navbar .btn-navbar { 1079 | display: block; 1080 | } 1081 | .navbar-static .navbar-inner { 1082 | padding-right: 10px; 1083 | padding-left: 10px; 1084 | } 1085 | } 1086 | 1087 | @media (min-width: 980px) { 1088 | .nav-collapse.collapse { 1089 | height: auto !important; 1090 | overflow: visible !important; 1091 | } 1092 | } 1093 | -------------------------------------------------------------------------------- /python_people/static/bootstrap-2.2.2/css/bootstrap-responsive.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Responsive v2.2.2 3 | * 4 | * Copyright 2012 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */@-ms-viewport{width:device-width}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.7624309392265194%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="offset"]:first-child{margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade{top:-100px}.modal.fade.in{top:20px}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.media .pull-left,.media .pull-right{display:block;float:none;margin-bottom:10px}.media-object{margin-right:0;margin-left:0}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a,.navbar-inverse .nav-collapse .dropdown-menu a{color:#999}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:hover{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:none;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .open>.dropdown-menu{display:block}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} 10 | -------------------------------------------------------------------------------- /python_people/static/bootstrap-2.2.2/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/static/bootstrap-2.2.2/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /python_people/static/bootstrap-2.2.2/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadu-leite/python-people/6d94d289bf95258e9f4904d449f2ac80804f510f/python_people/static/bootstrap-2.2.2/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /python_people/static/bootstrap-2.2.2/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap.js by @fat & @mdo 3 | * Copyright 2012 Twitter, Inc. 4 | * http://www.apache.org/licenses/LICENSE-2.0.txt 5 | */ 6 | !function($){"use strict";$(function(){$.support.transition=function(){var transitionEnd=function(){var name,el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(name in transEndEventNames)if(void 0!==el.style[name])return transEndEventNames[name]}();return transitionEnd&&{end:transitionEnd}}()})}(window.jQuery),!function($){"use strict";var dismiss='[data-dismiss="alert"]',Alert=function(el){$(el).on("click",dismiss,this.close)};Alert.prototype.close=function(e){function removeElement(){$parent.trigger("closed").remove()}var $parent,$this=$(this),selector=$this.attr("data-target");selector||(selector=$this.attr("href"),selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")),$parent=$(selector),e&&e.preventDefault(),$parent.length||($parent=$this.hasClass("alert")?$this:$this.parent()),$parent.trigger(e=$.Event("close")),e.isDefaultPrevented()||($parent.removeClass("in"),$.support.transition&&$parent.hasClass("fade")?$parent.on($.support.transition.end,removeElement):removeElement())};var old=$.fn.alert;$.fn.alert=function(option){return this.each(function(){var $this=$(this),data=$this.data("alert");data||$this.data("alert",data=new Alert(this)),"string"==typeof option&&data[option].call($this)})},$.fn.alert.Constructor=Alert,$.fn.alert.noConflict=function(){return $.fn.alert=old,this},$(document).on("click.alert.data-api",dismiss,Alert.prototype.close)}(window.jQuery),!function($){"use strict";var Button=function(element,options){this.$element=$(element),this.options=$.extend({},$.fn.button.defaults,options)};Button.prototype.setState=function(state){var d="disabled",$el=this.$element,data=$el.data(),val=$el.is("input")?"val":"html";state+="Text",data.resetText||$el.data("resetText",$el[val]()),$el[val](data[state]||this.options[state]),setTimeout(function(){"loadingText"==state?$el.addClass(d).attr(d,d):$el.removeClass(d).removeAttr(d)},0)},Button.prototype.toggle=function(){var $parent=this.$element.closest('[data-toggle="buttons-radio"]');$parent&&$parent.find(".active").removeClass("active"),this.$element.toggleClass("active")};var old=$.fn.button;$.fn.button=function(option){return this.each(function(){var $this=$(this),data=$this.data("button"),options="object"==typeof option&&option;data||$this.data("button",data=new Button(this,options)),"toggle"==option?data.toggle():option&&data.setState(option)})},$.fn.button.defaults={loadingText:"loading..."},$.fn.button.Constructor=Button,$.fn.button.noConflict=function(){return $.fn.button=old,this},$(document).on("click.button.data-api","[data-toggle^=button]",function(e){var $btn=$(e.target);$btn.hasClass("btn")||($btn=$btn.closest(".btn")),$btn.button("toggle")})}(window.jQuery),!function($){"use strict";var Carousel=function(element,options){this.$element=$(element),this.options=options,"hover"==this.options.pause&&this.$element.on("mouseenter",$.proxy(this.pause,this)).on("mouseleave",$.proxy(this.cycle,this))};Carousel.prototype={cycle:function(e){return e||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)),this},to:function(pos){var $active=this.$element.find(".item.active"),children=$active.parent().children(),activePos=children.index($active),that=this;if(!(pos>children.length-1||0>pos))return this.sliding?this.$element.one("slid",function(){that.to(pos)}):activePos==pos?this.pause().cycle():this.slide(pos>activePos?"next":"prev",$(children[pos]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&$.support.transition.end&&(this.$element.trigger($.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(type,next){var e,$active=this.$element.find(".item.active"),$next=next||$active[type](),isCycling=this.interval,direction="next"==type?"left":"right",fallback="next"==type?"first":"last",that=this;if(this.sliding=!0,isCycling&&this.pause(),$next=$next.length?$next:this.$element.find(".item")[fallback](),e=$.Event("slide",{relatedTarget:$next[0]}),!$next.hasClass("active")){if($.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;$next.addClass(type),$next[0].offsetWidth,$active.addClass(direction),$next.addClass(direction),this.$element.one($.support.transition.end,function(){$next.removeClass([type,direction].join(" ")).addClass("active"),$active.removeClass(["active",direction].join(" ")),that.sliding=!1,setTimeout(function(){that.$element.trigger("slid")},0)})}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;$active.removeClass("active"),$next.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return isCycling&&this.cycle(),this}}};var old=$.fn.carousel;$.fn.carousel=function(option){return this.each(function(){var $this=$(this),data=$this.data("carousel"),options=$.extend({},$.fn.carousel.defaults,"object"==typeof option&&option),action="string"==typeof option?option:options.slide;data||$this.data("carousel",data=new Carousel(this,options)),"number"==typeof option?data.to(option):action?data[action]():options.interval&&data.cycle()})},$.fn.carousel.defaults={interval:5e3,pause:"hover"},$.fn.carousel.Constructor=Carousel,$.fn.carousel.noConflict=function(){return $.fn.carousel=old,this},$(document).on("click.carousel.data-api","[data-slide]",function(e){var href,$this=$(this),$target=$($this.attr("data-target")||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"")),options=$.extend({},$target.data(),$this.data());$target.carousel(options),e.preventDefault()})}(window.jQuery),!function($){"use strict";var Collapse=function(element,options){this.$element=$(element),this.options=$.extend({},$.fn.collapse.defaults,options),this.options.parent&&(this.$parent=$(this.options.parent)),this.options.toggle&&this.toggle()};Collapse.prototype={constructor:Collapse,dimension:function(){var hasWidth=this.$element.hasClass("width");return hasWidth?"width":"height"},show:function(){var dimension,scroll,actives,hasData;if(!this.transitioning){if(dimension=this.dimension(),scroll=$.camelCase(["scroll",dimension].join("-")),actives=this.$parent&&this.$parent.find("> .accordion-group > .in"),actives&&actives.length){if(hasData=actives.data("collapse"),hasData&&hasData.transitioning)return;actives.collapse("hide"),hasData||actives.data("collapse",null)}this.$element[dimension](0),this.transition("addClass",$.Event("show"),"shown"),$.support.transition&&this.$element[dimension](this.$element[0][scroll])}},hide:function(){var dimension;this.transitioning||(dimension=this.dimension(),this.reset(this.$element[dimension]()),this.transition("removeClass",$.Event("hide"),"hidden"),this.$element[dimension](0))},reset:function(size){var dimension=this.dimension();return this.$element.removeClass("collapse")[dimension](size||"auto")[0].offsetWidth,this.$element[null!==size?"addClass":"removeClass"]("collapse"),this},transition:function(method,startEvent,completeEvent){var that=this,complete=function(){"show"==startEvent.type&&that.reset(),that.transitioning=0,that.$element.trigger(completeEvent)};this.$element.trigger(startEvent),startEvent.isDefaultPrevented()||(this.transitioning=1,this.$element[method]("in"),$.support.transition&&this.$element.hasClass("collapse")?this.$element.one($.support.transition.end,complete):complete())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var old=$.fn.collapse;$.fn.collapse=function(option){return this.each(function(){var $this=$(this),data=$this.data("collapse"),options="object"==typeof option&&option;data||$this.data("collapse",data=new Collapse(this,options)),"string"==typeof option&&data[option]()})},$.fn.collapse.defaults={toggle:!0},$.fn.collapse.Constructor=Collapse,$.fn.collapse.noConflict=function(){return $.fn.collapse=old,this},$(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var href,$this=$(this),target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),option=$(target).data("collapse")?"toggle":$this.data();$this[$(target).hasClass("in")?"addClass":"removeClass"]("collapsed"),$(target).collapse(option)})}(window.jQuery),!function($){"use strict";function clearMenus(){$(toggle).each(function(){getParent($(this)).removeClass("open")})}function getParent($this){var $parent,selector=$this.attr("data-target");return selector||(selector=$this.attr("href"),selector=selector&&/#/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,"")),$parent=$(selector),$parent.length||($parent=$this.parent()),$parent}var toggle="[data-toggle=dropdown]",Dropdown=function(element){var $el=$(element).on("click.dropdown.data-api",this.toggle);$("html").on("click.dropdown.data-api",function(){$el.parent().removeClass("open")})};Dropdown.prototype={constructor:Dropdown,toggle:function(){var $parent,isActive,$this=$(this);if(!$this.is(".disabled, :disabled"))return $parent=getParent($this),isActive=$parent.hasClass("open"),clearMenus(),isActive||$parent.toggleClass("open"),$this.focus(),!1},keydown:function(e){var $this,$items,$parent,isActive,index;if(/(38|40|27)/.test(e.keyCode)&&($this=$(this),e.preventDefault(),e.stopPropagation(),!$this.is(".disabled, :disabled"))){if($parent=getParent($this),isActive=$parent.hasClass("open"),!isActive||isActive&&27==e.keyCode)return $this.click();$items=$("[role=menu] li:not(.divider):visible a",$parent),$items.length&&(index=$items.index($items.filter(":focus")),38==e.keyCode&&index>0&&index--,40==e.keyCode&&$items.length-1>index&&index++,~index||(index=0),$items.eq(index).focus())}}};var old=$.fn.dropdown;$.fn.dropdown=function(option){return this.each(function(){var $this=$(this),data=$this.data("dropdown");data||$this.data("dropdown",data=new Dropdown(this)),"string"==typeof option&&data[option].call($this)})},$.fn.dropdown.Constructor=Dropdown,$.fn.dropdown.noConflict=function(){return $.fn.dropdown=old,this},$(document).on("click.dropdown.data-api touchstart.dropdown.data-api",clearMenus).on("click.dropdown touchstart.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("touchstart.dropdown.data-api",".dropdown-menu",function(e){e.stopPropagation()}).on("click.dropdown.data-api touchstart.dropdown.data-api",toggle,Dropdown.prototype.toggle).on("keydown.dropdown.data-api touchstart.dropdown.data-api",toggle+", [role=menu]",Dropdown.prototype.keydown)}(window.jQuery),!function($){"use strict";var Modal=function(element,options){this.options=options,this.$element=$(element).delegate('[data-dismiss="modal"]',"click.dismiss.modal",$.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};Modal.prototype={constructor:Modal,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var that=this,e=$.Event("show");this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass("fade");that.$element.parent().length||that.$element.appendTo(document.body),that.$element.show(),transition&&that.$element[0].offsetWidth,that.$element.addClass("in").attr("aria-hidden",!1),that.enforceFocus(),transition?that.$element.one($.support.transition.end,function(){that.$element.focus().trigger("shown")}):that.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault(),e=$.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),$(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),$.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var that=this;$(document).on("focusin.modal",function(e){that.$element[0]===e.target||that.$element.has(e.target).length||that.$element.focus()})},escape:function(){var that=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&that.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var that=this,timeout=setTimeout(function(){that.$element.off($.support.transition.end),that.hideModal()},500);this.$element.one($.support.transition.end,function(){clearTimeout(timeout),that.hideModal()})},hideModal:function(){this.$element.hide().trigger("hidden"),this.backdrop()},removeBackdrop:function(){this.$backdrop.remove(),this.$backdrop=null},backdrop:function(callback){var animate=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$('