Skip to content

Commit 162dcc1

Browse files
committed
Added license headers
1 parent 47b7634 commit 162dcc1

34 files changed

+156
-156
lines changed

README.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
2+
13
tilaushallinta README
24
==================
35

6+
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
7+
Author: Esa Varemo
8+
9+
410
Getting Started
511
---------------
612

tilaushallinta/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from pyramid.config import Configurator
27
from sqlalchemy import engine_from_config
38

tilaushallinta/models/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from .meta import Base, DBSession
27

38
from .kohde import Kohde

tilaushallinta/models/kohde.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from sqlalchemy import Column, Integer, Text, DateTime, ForeignKey
27
from sqlalchemy.orm import relationship
38

tilaushallinta/models/listat.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from sqlalchemy import Column, Integer, Text, DateTime, ForeignKey
27

38
from .meta import Base

tilaushallinta/models/meta.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from sqlalchemy.orm import scoped_session, sessionmaker
27
from sqlalchemy.ext.declarative import declarative_base
38
from zope.sqlalchemy import ZopeTransactionExtension

tilaushallinta/models/tilaaja.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from sqlalchemy import Column, Integer, DateTime, Text
27

38
from .meta import Base

tilaushallinta/models/tilaus.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from sqlalchemy import Column, Integer, Float, Text, DateTime, ForeignKey
27
from sqlalchemy.orm import relationship
38

tilaushallinta/static/login.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
*/
5+
16
.panel {
27
width: 600px;
38
margin: auto;

tilaushallinta/static/lomake.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
*/
5+
16
#table_lomake {
27
width: 100%;
38
}
-1.29 KB
Binary file not shown.

tilaushallinta/static/pyramid.png

-12.6 KB
Binary file not shown.

tilaushallinta/static/theme.css

-152
This file was deleted.

tilaushallinta/static/theme.min.css

-1
This file was deleted.

tilaushallinta/templates/db.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">...</metal:main>
38

tilaushallinta/templates/db_model.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">...</metal:main>
38

tilaushallinta/templates/db_model_row.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">...</metal:main>
38

tilaushallinta/templates/home.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">...</metal:main>
38

tilaushallinta/templates/login.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">...</metal:main>
38

tilaushallinta/templates/master.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<!DOCTYPE html>
27

38
<html>

tilaushallinta/templates/nav.pt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<div class="navbar-header">
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
6+
<div class="navbar-header">
27
<a href="/" class="navbar-brand">Yritys</a>
38
</div>
49
<div>

tilaushallinta/templates/order_details.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">Tilauksen tiedot</metal:main>
38

tilaushallinta/templates/order_list.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">Tilauslista</metal:main>
38

tilaushallinta/templates/show_text.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">Tilauksen tiedot</metal:main>
38

tilaushallinta/templates/tilauslomake.pt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
-->
5+
16
<metal:main metal:use-macro="load: master.pt">
27
<metal:main metal:fill-slot="title">Tilaus</metal:main>
38

tilaushallinta/tests.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
import unittest
27
import transaction
38

49
from pyramid import testing
510

611
from .models import DBSession
712

8-
13+
"""
914
class TestMyViewSuccessCondition(unittest.TestCase):
1015
def setUp(self):
1116
self.config = testing.setUp()
@@ -52,4 +57,6 @@ def test_failing_view(self):
5257
from .views import my_view
5358
request = testing.DummyRequest()
5459
info = my_view(request)
55-
self.assertEqual(info.status_int, 500)
60+
self.assertEqual(info.status_int, 500)
61+
62+
"""

tilaushallinta/views/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
##########################################################
27
# Split views into different sub-files based on category #
38
##########################################################

tilaushallinta/views/common.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
3+
# Author: Esa Varemo
4+
#
5+
16
from pyramid.events import subscriber
27
from pyramid.events import BeforeRender
38

0 commit comments

Comments
 (0)