Created
April 8, 2012 02:30
-
-
Save adam-singer/2333899 to your computer and use it in GitHub Desktop.
Local Swarm Patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run Patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: app.yaml | |
=================================================================== | |
--- app.yaml (revision 6310) | |
+++ app.yaml (working copy) | |
@@ -2,7 +2,7 @@ | |
# for details. All rights reserved. Use of this source code is governed by a | |
# BSD-style license that can be found in the LICENSE file. | |
-application: google.com:dart | |
+application: dartswarms | |
version: 1 | |
runtime: python | |
api_version: 1 | |
@@ -25,6 +25,15 @@ | |
- url: /dev | |
script: main.py | |
+- url: /swarm | |
+ static_dir: swarm/ | |
+ | |
+- url: /ui_lib | |
+ static_dir: ui_lib/ | |
+ | |
+- url: /lib | |
+ static_dir: lib/ | |
+ | |
# This static_dir is only used at dev time. | |
- url: /dev | |
static_dir: ../../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: main.py | |
=================================================================== | |
--- main.py (revision 6310) | |
+++ main.py (working copy) | |
@@ -219,8 +219,10 @@ | |
# TODO(jimhug): Manage secrets for dart.googleplex.com better. | |
# TODO(jimhug): Confirm that we need client_secret. | |
flow = OAuth2WebServerFlow( | |
- client_id='267793340506.apps.googleusercontent.com', | |
- client_secret='5m8H-zyamfTYg5vnpYu1uGMU', | |
+ #client_id='267793340506.apps.googleusercontent.com', | |
+ #client_secret='5m8H-zyamfTYg5vnpYu1uGMU', | |
+ client_id='96475198036.apps.googleusercontent.com', | |
+ client_secret='hiJKyV-G0A1giFwwjhS2pJg8', | |
scope=READER_API, | |
user_agent='swarm') | |
@@ -389,14 +391,15 @@ | |
prefs = UserData.get_or_insert(user.user_id()) | |
prefs.sections = [ | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Top'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Design'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Eco'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Geek'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Google'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Seattle'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Tech'), | |
- db.Key.from_path('Section', 'user/17857667084667353155/label/Web')] | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Top'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Design'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Eco'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Geek'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Google'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Seattle'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Tech'), | |
+ #db.Key.from_path('Section', 'user/17857667084667353155/label/Web') | |
+ ] | |
prefs.put() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: top.html | |
=================================================================== | |
--- top.html (revision 6310) | |
+++ top.html (working copy) | |
@@ -5,8 +5,8 @@ | |
<!-- TODO(jimhug): Care about appearance. --> | |
<html> | |
<body> | |
- <h1>Run the official app <a href='swarm-js.html'>swarm-js.html</a></h1> | |
- | |
+ <h1>Run the official app <a href='swarm/swarm-js.html'>swarm-js.html</a></h1> | |
+ <h1>Run the official app <a href='swarm/swarm-dart.html'>swarm-dart.html</a></h1> | |
<h2>Or pick an experimental version from below</h2> | |
{% for file in files %} | |
<div><a href="{{file.filename}}">{{file.filename}}</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment