Two substantive comments, and some editorial ones.
You write that you are thinking of different schemes for generating
paths and ids. I suggest one of the things you consider is whether
your scheme will work if someone cuts the ZWikiZC and pastes it
somewhere else in the tree.
I'm not
In the latest Zope source, I've noticed calls to inheritedAttribute in
the Python code.
I've found the C source code in ExtensionClass.c, but it doesn't help me
understand when I should use it from Python, and why.
*reads more source*
Ah! About 70 lines further on in ExtensionClass.c:
Hi gang,
This version just fixes a bug with the folder contents tab on Windows.
For some reason, on Windows 95 (and perhaps other platforms) the Python
interpreter behaves differently enough that if you use a class
attribute from a different module and put it in your own class, you may
in fact
I just want to check if things work the way I think (hope) it does.
In a transaction, are objects attributes safe from other threads.
self._v_mytemp in my request does not conflict with other requests?
(I suppose the have to be otherwise REQUEST's would interfere with each other.)
I know that
Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by
myself.
Q: Why don't you BTree-fy all the subclasses of ObjectManager?
Is there a reason that anyone but can a newbie see?
LEE Kwan Soo.
ps. I only hope to be able to make clear statement in English, but i am
LEE Kwan Soo wrote:
Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by
myself.
Q: Why don't you BTree-fy all the subclasses of ObjectManager?
Is there a reason that anyone but can a newbie see?
Obviously what BTreeFolder does should be available in
Shane Hathaway wrote:
Hi gang,
This version just fixes a bug with the folder contents tab on Windows.
For some reason, on Windows 95 (and perhaps other platforms) the Python
interpreter behaves differently enough that if you use a class
attribute from a different module and put it in
Using a mutex by way of example, without using anything Zope-specific
(the following uses the Python threading module):
import threading
lock = threading.Lock()
myglobal = []
def changeglobal(val):
lock.acquire()
try:
myglobal.append(val)
finally:
lock.release()
[Shane Hathaway]
| Johan Carlsson wrote:
|
| I just want to check if things work the way I think (hope) it does.
|
| In a transaction, are objects attributes safe from other threads.
|
| self._v_mytemp in my request does not conflict with other requests?
|
| This is correct (or it's
Erik Enge wrote:
[Shane Hathaway]
| Johan Carlsson wrote:
|
| I just want to check if things work the way I think (hope) it does.
|
| In a transaction, are objects attributes safe from other threads.
|
| self._v_mytemp in my request does not conflict with other requests?
|
|
|
| I just want to check if things work the way I think (hope) it does.
|
| In a transaction, are objects attributes safe from other threads.
|
| self._v_mytemp in my request does not conflict with other requests?
|
| This is correct (or it's supposed to be.)
What do
[Shane Hathaway]
| It means that a correctly operating ZODB will behave this way.
Oh, I see. Thanks for clarifying that. :)
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
Shane Hathaway wrote:
LEE Kwan Soo wrote:
Oh, well, I'd bet this is a silly question. But I can not resist nor find answer
by myself.
Q: Why don't you BTree-fy all the subclasses of ObjectManager?
Is there a reason that anyone but can a newbie see?
Obviously what BTreeFolder does
Bill Anderson wrote:
Any chance at a BTree Folder w/customizer support in the near future? :)
It should be quite easy to do. I vaguely recall Steve A or Steve S
might have done it.
Shane
___
Zope-Dev maillist - [EMAIL PROTECTED]
Bill Anderson wrote:
Any chance at a BTree Folder w/customizer suppor tin the near future? :)
I did some work towards this. However, I didn't continue.
I realised that I could get the same effect by having a BTreeFolder
inside a Customizer Folder. The only downside is a slightly longer URL
"Phillip J. Eby" wrote:
At 10:22 AM 8/27/00 +0100, Steve Alexander wrote:
I've fixed this by adding a test to the start of __set_attr__ of
DataSkins.py:
def __set_attr__(self,name,val,_v_dm_=_v_dm_):
+ if name=='id' and val==self.__dict__['id']:
+ return
Steve Alexander wrote:
BTreeFolder doesn't do the
from Globals import default__class_init__
default__class_init__(BTreeFolder)
thing.
Does that matter at all?
As none of the classes it is derived from have a __init__ method, I
guess not. Or, does default__class_init__ do anything
"Phillip J. Eby" wrote:
try:
dm = self.__dict__[_v_dm_]
except KeyError:
if name=='id' and val==self.__dict__['id']: return
raise
Hopefully this should only perform the extra computations when the first
part fails...
Are Python classes derived from DataSkin
Steve Alexander wrote:
What rubbish! I didn't mean that at all!
I think what I meant was this:
try:
dm = self.__dict__[_v_dm_]
except KeyError:
if name=='id':
if self.__dict__.has_key('id') and val==self.__dict__.['id']:
return
else:
The ZWikiZC version 0.7.3 alpha completely rely on ZCatalog
for looking up WikiPages from WikiNames.
No references are stored in the ZWikiZG page letting cutpaste,
delete and other management actions ignore updating links.
I bellew this is a more scalable solution than in the version 0.7.2
The ZWikiZC version 0.7.3 alpha completely rely on ZCatalog
for looking up WikiPages from WikiNames.
No references are stored in the ZWikiZG page letting cutpaste,
delete and other management actions ignore updating links.
I bellew this is a more scalable solution than in the version 0.7.2
21 matches
Mail list logo