This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb | |
| index cba8e59..af53ec2 100644 | |
| --- a/app/controllers/issues_controller.rb | |
| +++ b/app/controllers/issues_controller.rb | |
| @@ -139,6 +139,7 @@ class IssuesController < ApplicationController | |
| if request.get? || request.xhr? | |
| @issue.start_date ||= Date.today | |
| + @issue.inspire_on(params[:inspire_on]) if params[:inspire_on] | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| sphinx.ext.graphviz | |
| ~~~~~~~~~~~~~~~~~~~ | |
| Allow graphviz-formatted graphs to be included in Sphinx-generated | |
| documents inline. | |
| :copyright: Copyright 2007-2009 by the Sphinx team, see AUTHORS. | |
| :license: BSD, see LICENSE for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- encoding: utf-8 -*- | |
| # Usage: | |
| # urlpatterns += patterns('', | |
| # route(r'^$', GET='getview', POST='postview', name='viewname'), | |
| # ) | |
| # | |
| from django.http import Http404 | |
| from django.core.urlresolvers import RegexURLPattern, get_callable | |
| def discover_view(view, prefix=''): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django import forms | |
| from django.test import RequestFactory | |
| class RangeForm(forms.Form): | |
| min = forms.IntegerField() | |
| max = forms.IntegerField() | |
| valor = forms.IntegerField() | |
| def clean(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| CSS | |
| */ | |
| html { | |
| background-color: #E8DDCB; | |
| } | |
| body { | |
| margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% load static %} | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta name="description" content="EventeX" /> | |
| <meta http-equiv='content-Language' content='en-US' /> | |
| <link type="image/x-icon" href="{% static 'favicon.ico' %}" rel="shortcut icon" /> | |
| <title>EventeX</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| ''' | |
| Implements conditional aggregates. | |
| This code was based on the work of others found on the internet: | |
| 1. http://web.archive.org/web/20101115170804/http://www.voteruniverse.com/Members/jlantz/blog/conditional-aggregates-in-django | |
| 2. https://code.djangoproject.com/ticket/11305 | |
| 3. https://groups.google.com/forum/?fromgroups=#!topic/django-users/cjzloTUwmS0 | |
| 4. https://groups.google.com/forum/?fromgroups=#!topic/django-users/vVprMpsAnPo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| l = logging.getLogger('django.db.backends') | |
| l.setLevel(logging.DEBUG) | |
| l.addHandler(logging.StreamHandler()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}"/> | |
| {{ metatags }} | |
| {%- block htmltitle %} |
OlderNewer