Hi,
I have a cmf site that has begun restarting frequently and at random
intervals for no apparent reason. This first occurred about 2 weeks ago
for about 2-3 days with the instance being restarted every 15 mins at
worst. This problem disappeared as quickly as it had appeared.
2-3 days ago
I have a Persistent derived class where I want to upgrade from using a
PersistentList to a BTrees.IOBTree.IOBTree.
_articleList is the old Persistent list
_oidsToArticles is the new IOBTree.
def __setstate__(self, state):
articleList = state.get('_articleList')
if
On Friday 28 May 2004 02:48, Philipp von Weitershausen wrote:
Garrett Smith wrote:
This problem seems analogous to view lookup --
content/++view++index.html and content/@@index.html are equivalent.
So, applied to adapters, we could use:
content/++adapter++dc/title (or '++adapt++')
On Friday 28 May 2004 11:21, Garrett Smith wrote:
context/##dc/title
Not so good; looks convoluted.
context/**dc/title
This one looks good. Remind me of the power of a number, like dc takes over
context. :-)
context/::dc/title
I am fine with this one as well.
Regards,
Stephan
--
On Friday 28 May 2004 11:21, Garrett Smith wrote:
What was the reasoning behind selecting @@ for the view namespace
shortcut?
Because it looks like two eyes.
(IIRC, the motivation was to use characters that could be used
in URLs, but I'm not sure that's an issue for adapters...or is it?)
Garrett Smith wrote:
What was the reasoning behind selecting @@ for the view namespace
shortcut? (IIRC, the motivation was to use characters that could be used
in URLs, but I'm not sure that's an issue for adapters...or is it?)
Legal in urls, no English. @@ looks like two eyes viwing something.
I want to thank everyone who's participating in this
thread. The input is extremely valuable.
Garrett Smith wrote:
Jim Fulton wrote:
We don't. In fact, one could argue that adaptation is a bit like
a different kind of traversal. In fact, in Zope 3, we already have
a notion of this. In
[Syver Enstad]
I have a Persistent derived class where I want to upgrade from using a
PersistentList to a BTrees.IOBTree.IOBTree.
_articleList is the old Persistent list
_oidsToArticles is the new IOBTree.
def __setstate__(self, state):
articleList = state.get('_articleList')
Jim Fulton wrote:
Given that, I still prefer context#dc to context/##dc.
+1
I like the idea that '/' and '#' are both path separators, and that the
semantics of each path segment depend on the preceding separator.
Cheers,
Evan
___
Zope-Dev maillist -
[Syver Enstad, wants to switch an attribute of a Persitent subclass
From PersistentList to an IOBTree]
[Tim, guessing]
Quick guess (untested, untried, ...
...
Perhaps shuffling the code around would work, a la:
Persistent.__setstate__(self, state)
articleList =
Jim Fulton wrote:
Given that, I still prefer context#dc to context/##dc.
+1, also in preference to /# and the other options I've seen.
Gary
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or
Richard Ettema wrote at 2004-5-28 11:28 +0100:
I have a cmf site that has begun restarting frequently and at random
intervals for no apparent reason. This first occurred about 2 weeks ago
for about 2-3 days with the instance being restarted every 15 mins at
worst. This problem disappeared as
Syver Enstad wrote at 2004-5-28 12:41 +0200:
I have a Persistent derived class where I want to upgrade from using a
PersistentList to a BTrees.IOBTree.IOBTree.
_articleList is the old Persistent list
_oidsToArticles is the new IOBTree.
def __setstate__(self, state):
articleList =
[This was mistaken for spam by our filter, and i was too quick to confirm
it as spam...]
-- Forwarded message --
Date: Fri, 28 May 2004 18:02:50 -0400
From: Paul Winkler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Bug Day status report
Just a quick status report on today's
14 matches
Mail list logo