Title: [237904] trunk/Tools
Revision
237904
Author
[email protected]
Date
2018-11-06 17:44:46 -0800 (Tue, 06 Nov 2018)

Log Message

[ews-app] Add views for OpenSource EWS Django app
https://bugs.webkit.org/show_bug.cgi?id=191131

Rubber-stamped by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/views/index.py: Added.
* BuildSlaveSupport/ews-app/ews/views/patch.py:
* BuildSlaveSupport/ews-app/ews/views/results.py: Added.
* BuildSlaveSupport/ews-app/ews/views/statusbubble.py: Added.

Modified Paths

Added Paths

Diff

Added: trunk/Tools/BuildSlaveSupport/ews-app/ews/views/index.py (0 => 237904)


--- trunk/Tools/BuildSlaveSupport/ews-app/ews/views/index.py	                        (rev 0)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/views/index.py	2018-11-07 01:44:46 UTC (rev 237904)
@@ -0,0 +1,31 @@
+# Copyright (C) 2018 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1.  Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+# 2.  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.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+
+from __future__ import unicode_literals
+
+from django.http import HttpResponse
+from django.views import View
+
+
+class Index(View):
+    def get(self, request):
+        return HttpResponse("EWS for WebKit.")

Modified: trunk/Tools/BuildSlaveSupport/ews-app/ews/views/patch.py (237903 => 237904)


--- trunk/Tools/BuildSlaveSupport/ews-app/ews/views/patch.py	2018-11-07 01:22:41 UTC (rev 237903)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/views/patch.py	2018-11-07 01:44:46 UTC (rev 237904)
@@ -22,6 +22,14 @@
 
 from __future__ import unicode_literals
 
+from django.http import HttpResponse
 from django.shortcuts import render
+from django.views import View
 
-# Create your views here.
+
+class Patch(View):
+    def get(self, request, patchid):
+        return HttpResponse("Placeholder for patch {}.".format(patchid))
+
+    def post(self, request, patchid):
+        return HttpResponse("Placeholder to handle post request for patch {}.".format(patchid))

Added: trunk/Tools/BuildSlaveSupport/ews-app/ews/views/results.py (0 => 237904)


--- trunk/Tools/BuildSlaveSupport/ews-app/ews/views/results.py	                        (rev 0)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/views/results.py	2018-11-07 01:44:46 UTC (rev 237904)
@@ -0,0 +1,32 @@
+# Copyright (C) 2018 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1.  Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+# 2.  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.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+
+from __future__ import unicode_literals
+
+from django.http import HttpResponse
+from django.shortcuts import render
+from django.views import View
+
+
+class Results(View):
+    def post(self, request, patchid):
+        return HttpResponse("Placeholder to handle post request for result for patch: {}.".format(patchid))

Added: trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py (0 => 237904)


--- trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py	                        (rev 0)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py	2018-11-07 01:44:46 UTC (rev 237904)
@@ -0,0 +1,32 @@
+# Copyright (C) 2018 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1.  Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+# 2.  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.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+
+from __future__ import unicode_literals
+
+from django.http import HttpResponse
+from django.shortcuts import render
+from django.views import View
+
+
+class StatusBubble(View):
+    def get(self, request, patchid):
+        return HttpResponse("Placeholder for status bubble for {}.".format(patchid))

Modified: trunk/Tools/ChangeLog (237903 => 237904)


--- trunk/Tools/ChangeLog	2018-11-07 01:22:41 UTC (rev 237903)
+++ trunk/Tools/ChangeLog	2018-11-07 01:44:46 UTC (rev 237904)
@@ -1,5 +1,17 @@
 2018-11-06  Aakash Jain  <[email protected]>
 
+        [ews-app] Add views for OpenSource EWS Django app
+        https://bugs.webkit.org/show_bug.cgi?id=191131
+
+        Rubber-stamped by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/views/index.py: Added.
+        * BuildSlaveSupport/ews-app/ews/views/patch.py:
+        * BuildSlaveSupport/ews-app/ews/views/results.py: Added.
+        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py: Added.
+
+2018-11-06  Aakash Jain  <[email protected]>
+
         [ews-app] Add models for OpenSource EWS Django app
         https://bugs.webkit.org/show_bug.cgi?id=191123
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to