Created
July 28, 2012 00:32
-
-
Save allenluce-zz/3191202 to your computer and use it in GitHub Desktop.
Commit 799b2c7d
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
commit 799b2c7debb78643eec2afcd4691f334f5486a10 | |
Author: Alex May <[email protected]> | |
Date: Tue Mar 20 13:50:34 2012 -0700 | |
bump up event stack size | |
- should be enough to hold 1 year's worth of events now | |
diff --git a/src/opencore/opencore/models/contentfeeds.py b/src/opencore/opencore/models/contentfeeds.py | |
index 243c841..e6f6747 100644 | |
--- a/src/opencore/opencore/models/contentfeeds.py | |
+++ b/src/opencore/opencore/models/contentfeeds.py | |
@@ -57,7 +57,7 @@ class SiteEvents(Persistent): | |
implements(ISiteEvents) | |
def __init__(self): | |
- self._stack = AppendStack() | |
+ self._stack = AppendStack(max_layers=360, max_length=1000) | |
def __iter__(self): | |
""" See ISiteEvents. | |
diff --git a/src/openhcd/openhcd/evolve/zodb/__init__.py b/src/openhcd/openhcd/evolve/zodb/__init__.py | |
index 5807722..67b0e3a 100644 | |
--- a/src/openhcd/openhcd/evolve/zodb/__init__.py | |
+++ b/src/openhcd/openhcd/evolve/zodb/__init__.py | |
@@ -1,2 +1,2 @@ | |
-VERSION = 46 | |
+VERSION = 47 | |
NAME = 'openhcd' | |
diff --git a/src/openhcd/openhcd/evolve/zodb/evolve47.py b/src/openhcd/openhcd/evolve/zodb/evolve47.py | |
new file mode 100644 | |
index 0000000..244f3ff | |
--- /dev/null | |
+++ b/src/openhcd/openhcd/evolve/zodb/evolve47.py | |
@@ -0,0 +1,11 @@ | |
+""" | |
+Increase size of events stack | |
+""" | |
+from opencore.views.utils import find_site | |
+ | |
+def evolve(context): #pragma NO COVERAGE | |
+ site = find_site(context) | |
+ # enough for one year of events at current levels | |
+ site.events._stack._max_length = 1000 | |
+ site.events._stack._max_layers = 360 | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment