From ad61a61d91b39c43f24b1ba686eea4e00ac5318c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 18 Jun 2013 04:42:28 -0500 Subject: [PATCH] removed gql.py and added gae memcache incr --- VERSION | 2 +- gluon/contrib/gae_memcache.py | 3 +++ gluon/contrib/gql.py | 5 ----- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 gluon/contrib/gql.py diff --git a/VERSION b/VERSION index d5c98a08..180efdce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.5.1-stable+timestamp.2013.06.17.10.41.11 +Version 2.5.1-stable+timestamp.2013.06.18.04.41.46 diff --git a/gluon/contrib/gae_memcache.py b/gluon/contrib/gae_memcache.py index 67efd499..71f7e8cf 100644 --- a/gluon/contrib/gae_memcache.py +++ b/gluon/contrib/gae_memcache.py @@ -47,6 +47,9 @@ class MemcacheClient(object): value = obj[1] + value self.client.set(key, (time.time(), value)) return value + + def incr(self, key, value=1): + return self.increment(key, value) def clear(self, key=None): if key: diff --git a/gluon/contrib/gql.py b/gluon/contrib/gql.py deleted file mode 100644 index 5438888b..00000000 --- a/gluon/contrib/gql.py +++ /dev/null @@ -1,5 +0,0 @@ -# this file exists for backward compatibility - -__all__ = ['DAL', 'Field', 'drivers', 'gae'] - -from gluon.dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, drivers, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType, gae