Skip to content

Commit 1f6b73a

Browse files
committed
Cleanup license
1 parent 3139e72 commit 1f6b73a

5 files changed

Lines changed: 10 additions & 117 deletions

File tree

tutorial/authhelper.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
1+
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
22
from urllib.parse import quote, urlencode
33
import requests
44
import base64
@@ -96,25 +96,4 @@ def get_access_token(request, redirect_uri):
9696
request.session['refresh_token'] = new_tokens['refresh_token']
9797
request.session['token_expires'] = expiration
9898

99-
return new_tokens['access_token']
100-
101-
# MIT License:
102-
103-
# Permission is hereby granted, free of charge, to any person obtaining
104-
# a copy of this software and associated documentation files (the
105-
# ""Software""), to deal in the Software without restriction, including
106-
# without limitation the rights to use, copy, modify, merge, publish,
107-
# distribute, sublicense, and/or sell copies of the Software, and to
108-
# permit persons to whom the Software is furnished to do so, subject to
109-
# the following conditions:
110-
111-
# The above copyright notice and this permission notice shall be
112-
# included in all copies or substantial portions of the Software.
113-
114-
# THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
115-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
116-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
117-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
118-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
119-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
120-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
99+
return new_tokens['access_token']

tutorial/outlookservice.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
1+
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
22
import requests
33
import uuid
44
import json
@@ -103,25 +103,4 @@ def get_my_contacts(access_token, user_email):
103103
if (r.status_code == requests.codes.ok):
104104
return r.json()
105105
else:
106-
return "{0}: {1}".format(r.status_code, r.text)
107-
108-
# MIT License:
109-
110-
# Permission is hereby granted, free of charge, to any person obtaining
111-
# a copy of this software and associated documentation files (the
112-
# ""Software""), to deal in the Software without restriction, including
113-
# without limitation the rights to use, copy, modify, merge, publish,
114-
# distribute, sublicense, and/or sell copies of the Software, and to
115-
# permit persons to whom the Software is furnished to do so, subject to
116-
# the following conditions:
117-
118-
# The above copyright notice and this permission notice shall be
119-
# included in all copies or substantial portions of the Software.
120-
121-
# THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
122-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
123-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
124-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
125-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
126-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
127-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
106+
return "{0}: {1}".format(r.status_code, r.text)
Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file. -->
1+
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information. -->
22
<html>
33
<body>
44
<h1>Your Email</h1>
@@ -18,27 +18,4 @@ <h1>Your Email</h1>
1818
{% endfor %}
1919
</table>
2020
</body>
21-
</html>
22-
23-
<!--
24-
MIT License:
25-
26-
Permission is hereby granted, free of charge, to any person obtaining
27-
a copy of this software and associated documentation files (the
28-
""Software""), to deal in the Software without restriction, including
29-
without limitation the rights to use, copy, modify, merge, publish,
30-
distribute, sublicense, and/or sell copies of the Software, and to
31-
permit persons to whom the Software is furnished to do so, subject to
32-
the following conditions:
33-
34-
The above copyright notice and this permission notice shall be
35-
included in all copies or substantial portions of the Software.
36-
37-
THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
38-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
41-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
42-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
43-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44-
-->
21+
</html>

tutorial/urls.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
1+
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
22
from django.conf.urls import url
33
from tutorial import views
44

@@ -15,25 +15,4 @@
1515
url(r'^events/$', views.events, name='events'),
1616
# Contacts view ('/tutorial/contacts/')
1717
url(r'^contacts/$', views.contacts, name='contacts'),
18-
]
19-
20-
# MIT License:
21-
22-
# Permission is hereby granted, free of charge, to any person obtaining
23-
# a copy of this software and associated documentation files (the
24-
# ""Software""), to deal in the Software without restriction, including
25-
# without limitation the rights to use, copy, modify, merge, publish,
26-
# distribute, sublicense, and/or sell copies of the Software, and to
27-
# permit persons to whom the Software is furnished to do so, subject to
28-
# the following conditions:
29-
30-
# The above copyright notice and this permission notice shall be
31-
# included in all copies or substantial portions of the Software.
32-
33-
# THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
34-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
35-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
37-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
38-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
39-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
]

tutorial/views.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
1+
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
22
from django.shortcuts import render
33
from django.http import HttpResponse, HttpResponseRedirect
44
from django.core.urlresolvers import reverse
@@ -67,25 +67,4 @@ def contacts(request):
6767
else:
6868
contacts = get_my_contacts(access_token, user_email)
6969
context = { 'contacts': contacts['value'] }
70-
return render(request, 'tutorial/contacts.html', context)
71-
72-
# MIT License:
73-
74-
# Permission is hereby granted, free of charge, to any person obtaining
75-
# a copy of this software and associated documentation files (the
76-
# ""Software""), to deal in the Software without restriction, including
77-
# without limitation the rights to use, copy, modify, merge, publish,
78-
# distribute, sublicense, and/or sell copies of the Software, and to
79-
# permit persons to whom the Software is furnished to do so, subject to
80-
# the following conditions:
81-
82-
# The above copyright notice and this permission notice shall be
83-
# included in all copies or substantial portions of the Software.
84-
85-
# THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
86-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
87-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
88-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
89-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
90-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
91-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70+
return render(request, 'tutorial/contacts.html', context)

0 commit comments

Comments
 (0)