[Erik Enge]
| What happens if you run this with ZEO? Will the file be kept «in
| sync» with all ZEO Clients?
Good point. I don't think so. It could be that it is kept in sync
with one Zope instance "being responsible" and the others calling
it via XML-RPC.
Cheers,
Morten
Morten W. Petersen wrote:
[Erik Enge]
| What happens if you run this with ZEO? Will the file be kept in
| sync with all ZEO Clients?
Good point. I don't think so. It could be that it is kept in sync
with one Zope instance "being responsible" and the others calling
it via XML-RPC.
On Mon, Feb 12, 2001 at 01:31:04AM +0100, Morten W. Petersen wrote:
As I've understood it, two threads serving requests have a copy each of the
database, and only when changes are committed are they reflected in
the database. Therefore, two requests created at the same time could
get an
[Wolfgang Strobl]
| Doesn't even install on Windows, because it imports and uses fcntl.
|
| From the fcntl docs: "Availability: Unix".
Well, the download page says "Platform: Generic UNIX-like", doesn't it?
-Morten
___
Zope-Dev maillist - [EMAIL
On Mon, Feb 12, 2001 at 02:27:24PM +, Toby Dickenson wrote:
On Mon, 12 Feb 2001 10:27:02 +0100, Martijn Pieters [EMAIL PROTECTED]
wrote:
The ZODB will invalidate and force a retry on one of the connections.
Chris's code is threadsafe and will result in unique, sequential values.
[Morten W. Petersen]
| There's a new product available, which enables unique ids in a given context,
| take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter.
On every view - a call to index_html() - it prints '{}' to stdout. Bug?
[Erik Enge]
| On every view - a call to index_html() - it prints '{}' to stdout. Bug?
Forget it. My fault. *shame, shame*
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
[Erik Enge]
| Forget it. My fault. *shame, shame*
*chuckle* :-)
-Morten
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
"Morten W. Petersen" wrote:
There's a new product available, which enables unique ids in a given context,
take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter.
So would a counter such as:
class PersistentCounter(Persistent):
# create the counter
def
Chris Withers wrote:
"Morten W. Petersen" wrote:
There's a new product available, which enables unique ids in a given context,
take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter.
So would a counter such as:
class PersistentCounter(Persistent):
# create
[Chris Withers]
| So would a counter such as:
|
| class PersistentCounter(Persistent):
|
| # create the counter
| def __init__(self, value=0):
| self._value = value
|
| # get the value of the counter without incrementing
| def getValue(self):
| return
Hi guys,
There's a new product available, which enables unique ids in a given context,
take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter.
Cheers,
Morten
___
Zope-Dev maillist - [EMAIL PROTECTED]
12 matches
Mail list logo