[appengine-afterburner] r15 committed - ...

0 views
Skip to first unread message

appengine-...@googlecode.com

unread,
Dec 7, 2010, 6:32:10 PM12/7/10
to appengine-after...@googlegroups.com
Revision: 15
Author: mike.aizatsky
Date: Tue Dec 7 15:30:55 2010
Log:
Adding author tags. (Mainly to check sync tools)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=83

http://code.google.com/p/appengine-afterburner/source/detail?r=15

Modified:
/trunk/python/build.sh
/trunk/python/demo/appengine_config.py
/trunk/python/demo/main.py
/trunk/python/doc/conf.py
/trunk/python/src/afterburner/__init__.py
/trunk/python/src/afterburner/experimental/__init__.py
/trunk/python/src/afterburner/experimental/db/__init__.py
/trunk/python/src/afterburner/experimental/db/materialized_map.py
/trunk/python/src/afterburner/experimental/db/materialized_map_test.py
/trunk/python/src/afterburner/experimental/db/triggers.py
/trunk/python/src/afterburner/experimental/db/triggers_main.py
/trunk/python/src/afterburner/experimental/db/triggers_test.py
/trunk/python/src/afterburner/experimental/memoize.py
/trunk/python/src/afterburner/experimental/memoize_test.py
/trunk/python/src/afterburner/experimental/quota.py
/trunk/python/src/afterburner/experimental/quota_test.py
/trunk/python/src/afterburner/testing/__init__.py
/trunk/python/src/afterburner/testing/test_base.py
/trunk/python/src/afterburner/tools/create_virtualenv.py
/trunk/python/src/afterburner/util.py

=======================================
--- /trunk/python/src/afterburner/experimental/db/materialized_map.py Tue
Dec 7 14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/db/materialized_map.py Tue
Dec 7 15:30:55 2010
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

+
+
import logging

from afterburner.experimental.db import triggers
@@ -69,4 +71,3 @@
return f

return decorator
-
=======================================
--- /trunk/python/src/afterburner/experimental/db/materialized_map_test.py
Tue Dec 7 14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/db/materialized_map_test.py
Tue Dec 7 15:30:55 2010
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

+
+
import unittest

from afterburner.experimental.db import materialized_map as mmap
@@ -78,5 +80,3 @@

if __name__ == '__main__':
unittest.main()
-
-
=======================================
--- /trunk/python/src/afterburner/experimental/db/triggers.py Tue Dec 7
14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/db/triggers.py Tue Dec 7
15:30:55 2010
@@ -148,6 +148,8 @@
"""


+
+
import logging
import urllib

@@ -315,4 +317,3 @@
(PROCESS_URL, ProcessUpdatesHandler),
(UPDATE_URL, UpdateEntityHandler),
], debug=True)
-
=======================================
--- /trunk/python/src/afterburner/experimental/db/triggers_main.py Tue Dec
7 14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/db/triggers_main.py Tue Dec
7 15:30:55 2010
@@ -22,6 +22,8 @@
creates a circular import dependnecy,that can't be handled by python.
"""

+
+
from afterburner.experimental.db import triggers
from google.appengine.ext.webapp.util import run_wsgi_app

@@ -30,6 +32,3 @@

if __name__ == "__main__":
main()
-
-
-
=======================================
--- /trunk/python/src/afterburner/experimental/db/triggers_test.py Tue Dec
7 14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/db/triggers_test.py Tue Dec
7 15:30:55 2010
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

+
+
import base64
import os
import unittest
@@ -161,4 +163,3 @@

if __name__ == '__main__':
unittest.main()
-
=======================================
--- /trunk/python/src/afterburner/experimental/memoize_test.py Tue Dec 7
14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/memoize_test.py Tue Dec 7
15:30:55 2010
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

+
+
import unittest

from google.appengine.api import apiproxy_stub_map
@@ -35,7 +37,7 @@
@memoize("foo")
def foo():
return 10
-
+
self.assertEquals(10, foo())
self.assertEquals(10, foo())
self.assertEquals(10, memcache.get("foo"))
@@ -43,13 +45,13 @@
# check that we actually use memcache
memcache.set("foo", 20)
self.assertEquals(20, foo())
-
+

def testMemoizeWithParameters(self):
@memoize("foo:%s")
def foo(i):
return i * i
-
+
self.assertEquals(1, foo(1))
self.assertEquals(1, memcache.get("foo:1"))
self.assertEquals(4, foo(2))
@@ -60,7 +62,7 @@
memcache.set("foo:2", 20)
self.assertEquals(10, foo(1))
self.assertEquals(20, foo(2))
-
+

if __name__ == '__main__':
unittest.main()
=======================================
--- /trunk/python/src/afterburner/experimental/quota.py Tue Dec 7 14:57:30
2010
+++ /trunk/python/src/afterburner/experimental/quota.py Tue Dec 7 15:30:55
2010
@@ -17,6 +17,7 @@
"""Contains simple quota system for rate-limiting arbitrary operations."""


+
from google.appengine.api import memcache


=======================================
--- /trunk/python/src/afterburner/experimental/quota_test.py Tue Dec 7
14:57:30 2010
+++ /trunk/python/src/afterburner/experimental/quota_test.py Tue Dec 7
15:30:55 2010
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

+
+
import unittest

from google.appengine.api import apiproxy_stub_map

Reply all
Reply to author
Forward
0 new messages