Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit 579aff5

Browse files
committed
New page
1 parent 50f0619 commit 579aff5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1275
-1056
lines changed

AUTHORS.rst

+13

CONTRIBUTING.rst

+111

HISTORY.rst

+9

LICENSE

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2014, PyConES2014
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+
* Neither the name of PyConES2014 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include AUTHORS.rst
2+
include CONTRIBUTING.rst
3+
include HISTORY.rst
4+
include LICENSE
5+
include README.rst
6+
7+
recursive-include tests *
8+
recursive-exclude * __pycache__
9+
recursive-exclude * *.py[co]
10+
11+
recursive-include docs *.rst conf.py Makefile make.bat

Makefile

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.PHONY: clean-pyc clean-build docs clean
2+
3+
help:
4+
@echo "clean - remove all build, test, coverage and Python artifacts"
5+
@echo "clean-build - remove build artifacts"
6+
@echo "clean-pyc - remove Python file artifacts"
7+
@echo "clean-test - remove test and coverage artifacts"
8+
@echo "lint - check style with flake8"
9+
@echo "test - run tests quickly with the default Python"
10+
@echo "test-all - run tests on every Python version with tox"
11+
@echo "coverage - check code coverage quickly with the default Python"
12+
@echo "docs - generate Sphinx HTML documentation, including API docs"
13+
@echo "release - package and upload a release"
14+
@echo "dist - package"
15+
16+
clean: clean-build clean-pyc clean-test
17+
18+
clean-build:
19+
rm -fr build/
20+
rm -fr dist/
21+
rm -fr *.egg-info
22+
23+
clean-pyc:
24+
find . -name '*.pyc' -exec rm -f {} +
25+
find . -name '*.pyo' -exec rm -f {} +
26+
find . -name '*~' -exec rm -f {} +
27+
find . -name '__pycache__' -exec rm -fr {} +
28+
29+
clean-test:
30+
rm -fr .tox/
31+
rm -f .coverage
32+
rm -fr htmlcov/
33+
34+
lint:
35+
flake8 PyConES2014 tests
36+
37+
test:
38+
python setup.py test
39+
40+
test-all:
41+
tox
42+
43+
coverage:
44+
coverage run --source PyConES2014 setup.py test
45+
coverage report -m
46+
coverage html
47+
open htmlcov/index.html
48+
49+
docs:
50+
rm -f docs/PyConES2014.rst
51+
rm -f docs/modules.rst
52+
sphinx-apidoc -o docs/ PyConES2014
53+
$(MAKE) -C docs clean
54+
$(MAKE) -C docs html
55+
open docs/_build/html/index.html
56+
57+
release: clean
58+
python setup.py sdist upload
59+
python setup.py bdist_wheel upload
60+
61+
dist: clean
62+
python setup.py sdist
63+
python setup.py bdist_wheel
64+
ls -l dist

PyConES2014/PyConES2014.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# -*- coding: utf-8 -*-
2+
from flask import Flask, render_template, abort
3+
from flask_flatpages import FlatPages
4+
5+
app = Flask(__name__)
6+
pages = FlatPages(app)
7+
app.secret_key = "SECRETKEY"
8+
9+
@app.route('/blog/', methods=['GET'])
10+
@app.route('/blog', methods=['GET'])
11+
@app.route('/blog/<language>', methods=['GET'])
12+
def blog(language="es"):
13+
articles = sorted((p for p in pages if 'published' in p.meta and language in p.meta),
14+
key=lambda p: p.meta['published'])
15+
return render_template('blog.html', pages=articles)
16+
17+
@app.route('/<language>/', methods=['GET'])
18+
@app.route('/', methods=['GET'])
19+
def index(language="es"):
20+
if language in ["en", "es"]:
21+
return render_template('%s/index.html' %language)
22+
else:
23+
abort(404)
24+
25+
def server():
26+
""" Main server, will allow us to make it wsgi'able """
27+
app.run(host='0.0.0.0', port=8022, debug=True)
28+
29+
if __name__ == "__main__":
30+
server()

PyConES2014/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
3+
__author__ = 'PyConES2014'
4+
__email__ = '[email protected]'
5+
__version__ = '0.1.0'
File renamed without changes.

PyConES2014/static/css/main.css

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* ==========================================================================
2+
Author's custom styles
3+
========================================================================== */
4+
5+
body {
6+
padding-bottom: 20px;
7+
}
8+
9+
.uppercase{
10+
text-transform:uppercase;
11+
}
12+
p.lead{
13+
font-family: 'Open Sans', sans-serif;
14+
}
15+
.pythonspainlogo{
16+
margin-top: 10px;
17+
display: inline-block;
18+
margin-left: -20px;
19+
font-weight: bolder;
20+
color: #303030;
21+
font-size:1.3em;
22+
}
23+
.nav-pills {
24+
margin: 0 auto;
25+
padding: 0;
26+
width: 800px;
27+
}
28+
.page-header{
29+
margin-top:20px;
30+
}
31+
.sponsor{
32+
margin-bottom:30px;
33+
}
34+
h1{
35+
margin-top:60px;
36+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

PyConES2014/static/img/gaceta.png

233 KB

PyConES2014/static/img/github.png

14.2 KB
File renamed without changes.
File renamed without changes.
File renamed without changes.

PyConES2014/static/img/pycharm.png

5.82 KB
3.48 KB

PyConES2014/static/img/ticketea.png

21.2 KB
File renamed without changes.
File renamed without changes.

PyConES2014/templates/base.html

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<!DOCTYPE html>
2+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4+
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5+
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6+
<head>
7+
<meta charset="utf-8">
8+
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" /><![endif]-->
9+
<title>PyConES 2014 - Zaragoza </title>
10+
<meta name="description" content="Python Conference in Spain - National event" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
13+
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"/>
14+
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
15+
<link type="image/png" href="/static/img/favicon.png" rel="icon"/>
16+
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-theme.min.css') }}">
17+
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
18+
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.0.0/animate.min.css" rel="stylesheet" type="text/css">
19+
<script src="{{ url_for('static', filename='js/vendor/modernizr-2.6.2-respond-1.1.0.min.js') }}"></script>
20+
</head>
21+
<body>
22+
<div class="container">
23+
<div class="page-header" id="banner">
24+
<div class="row">
25+
<div class="col-lg-12 text-center">
26+
<h1>PyConES 2014 - Zaragoza</h1>
27+
<p class="lead">Centro de Arte y Tecnología Etopia, 8-9 de Noviembre 2014</p>
28+
</div>
29+
<div class="col-lg-12" style="padding: 15px 15px 0 15px;">
30+
<div class=" center-block sponsor" style="width:60%; min-height:100px;">
31+
<a href="http://www.dlabs.co">
32+
<img alt="Dlabs logo" style="float: left; width:50%; margin-right: 15px;" class="img-responsive" src="{{url_for('static', filename='img/dlabs.png')}}" />
33+
</a>
34+
35+
<a href="http://es.python.org">
36+
<img alt="Python España logo" style="width:100px; float: left; margin-right: 15px;" class="img-responsive" src="{{url_for('static', filename='img/pythones.png')}}" />
37+
<span style="
38+
margin-top: 10px;
39+
display: inline-block;
40+
margin-left: -20px;
41+
font-weight: bolder;
42+
color: #303030;
43+
font-size:1.3em;
44+
">
45+
Python España
46+
</span>
47+
</a>
48+
</div>
49+
</div>
50+
</div>
51+
</div>
52+
{%block menu%}
53+
<div style="border-bottom:1px solid #eee; padding-bottom:20px; margin-bottom:30px" class=text-center>
54+
<ul class="nav nav-pills text-center" style="background:white; margin-left:160px" id=navigation>
55+
<li><a href="#acercade">Acerca de</a></li>
56+
<li><a href="#comollegar">Como llegar</a></li>
57+
<li><a href="#patrocinadores">Patrocinadores</a> </li>
58+
<li><a href="#comoparticipar">Como participar</a></li>
59+
<li><a href="#call4papers">Call4Papers</a></li>
60+
<li><a href="#codigodeconducta">Codigo de conducta</a></li>
61+
<li><a href="/blog" onclick="window.location.href='/blog'">Blog</a></li>
62+
</ul>
63+
64+
</div>
65+
{%endblock%}
66+
67+
</div>
68+
<div class="container">
69+
{% block body %}
70+
{% endblock %}
71+
</div>
72+
</div>
73+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
74+
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\/script>')</script>
75+
<script src="js/vendor/bootstrap.min.js"></script>
76+
<script src="js/main.js"></script>
77+
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
78+
<script src="//cdn.jsdelivr.net/stickynavbar.js/1.1.1/jquery.stickyNavbar.min.js"></script>
79+
<script>
80+
$(function () {
81+
$('#navigation').stickyNavbar();
82+
});
83+
</script>
84+
85+
</body>
86+
</html>

0 commit comments

Comments
 (0)