Author: humbedooh
Date: Fri Mar 27 22:31:08 2015
New Revision: 1669696
URL: http://svn.apache.org/r1669696
Log:
props (EOL: native)
Modified:
steve/trunk/pysteve/lib/__init__.py (props changed)
steve/trunk/pysteve/lib/constants.py (props changed)
steve/trunk/pysteve/lib/election.py (props changed)
steve/trunk/pysteve/lib/form.py (props changed)
steve/trunk/pysteve/lib/plugins/__init__.py (props changed)
steve/trunk/pysteve/lib/plugins/ap.py (props changed)
steve/trunk/pysteve/lib/plugins/cop.py (props changed)
steve/trunk/pysteve/lib/plugins/dh.py (props changed)
steve/trunk/pysteve/lib/plugins/fic.py (props changed)
steve/trunk/pysteve/lib/plugins/fpp.py (props changed)
steve/trunk/pysteve/lib/plugins/mntv.py (props changed)
steve/trunk/pysteve/lib/plugins/stv.py (props changed)
steve/trunk/pysteve/lib/plugins/yna.py (props changed)
steve/trunk/pysteve/lib/response.py (contents, props changed)
steve/trunk/pysteve/lib/voter.py (props changed)
steve/trunk/pysteve/www/cgi-bin/rest_admin.py (props changed)
steve/trunk/pysteve/www/cgi-bin/rest_voter.py (props changed)
Propchange: steve/trunk/pysteve/lib/__init__.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/constants.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/election.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/form.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/__init__.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/ap.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/cop.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/dh.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/fic.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/fpp.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/mntv.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/stv.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/plugins/yna.py
------------------------------------------------------------------------------
svn:eol-style = native
Modified: steve/trunk/pysteve/lib/response.py
URL:
http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/response.py?rev=1669696&r1=1669695&r2=1669696&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/response.py (original)
+++ steve/trunk/pysteve/lib/response.py Fri Mar 27 22:31:08 2015
@@ -1,39 +1,39 @@
-#!/usr/bin/env python
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-import json
-
-responseCodes = {
- 200: 'Okay',
- 201: 'Created',
- 206: 'Partial content',
- 304: 'Not Modified',
- 400: 'Bad Request',
- 403: 'Access denied',
- 404: 'Not Found',
- 410: 'Gone',
- 500: 'Server Error'
-}
-
-def respond(code, js):
- c = responseCodes[code] if code in responseCodes else "Unknown Response
Code(?)"
- out = json.dumps(js, indent=4)
- print("Status: %u %s\r\nContent-Type: application/json\r\nCache-Control:
no-cache\r\nContent-Length: %u\r\n" % (code, c, len(out)))
- print(out)
-
-
+#!/usr/bin/env python
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+import json
+
+responseCodes = {
+ 200: 'Okay',
+ 201: 'Created',
+ 206: 'Partial content',
+ 304: 'Not Modified',
+ 400: 'Bad Request',
+ 403: 'Access denied',
+ 404: 'Not Found',
+ 410: 'Gone',
+ 500: 'Server Error'
+}
+
+def respond(code, js):
+ c = responseCodes[code] if code in responseCodes else "Unknown Response
Code(?)"
+ out = json.dumps(js, indent=4)
+ print("Status: %u %s\r\nContent-Type: application/json\r\nCache-Control:
no-cache\r\nContent-Length: %u\r\n" % (code, c, len(out)))
+ print(out)
+
+
\ No newline at end of file
Propchange: steve/trunk/pysteve/lib/response.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/lib/voter.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/www/cgi-bin/rest_admin.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: steve/trunk/pysteve/www/cgi-bin/rest_voter.py
------------------------------------------------------------------------------
svn:eol-style = native