Michael R. Bernstein wrote:
Hmm. I thought I was doing it wrong. Here is the error and traceback
from trying to instantiate the modified Product (through the
standard mgmt interface):
This resource may be trying to reference a nonexistent object or
variable _v_dm_
snipped
Any
Hi guys,
I've been struggling with a problem, namely ConflictErrors.
At times, a long-running process may add 100, 1000, 1
objects to a single folder. Under this process, several
ConflictErrors may be raised, but they are captured, and
the transaction committed again. Problem solved.
Steve Alexander wrote:
Is the __init__ method of DataSkin getting called?
This would happen if, for example, you define an __init__ method in your
class, but you don't use something like:
from Globals import default__class_init__
default__class_init__(yourClass)
(At least, I
Huayin wang wrote:
It would be great if someone can tell me how to create
a third party product in 1) dtml, 2) python method.
Does it depend on whether the product is a ZClass
product?
Where's the documentation that I can read to get a
clue?
thanks!
Check out:
Do these two play nicely together?
cheers,
Chris
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
Chris Withers wrote:
Do these two play nicely together?
If you mean to refresh the Python Scripts product, I don't know of a
reason why that wouldn't work. I just tried it and it seems to be fine.
Shane
___
Zope-Dev maillist - [EMAIL PROTECTED]
"Phillip J. Eby" wrote:
At 10:47 PM 2/18/01 -0800, Michael R. Bernstein wrote:
Hmm. So I need to refactor the 'manage_add' method inside
the python product into two methods, 'manage_add' which
would be used by the 'normal' object creation process and
that would also call a second 'setup'
Shane Hathaway wrote:
Chris Withers wrote:
Do these two play nicely together?
If you mean to refresh the Python Scripts product, I don't know of a
reason why that wouldn't work. I just tried it and it seems to be fine.
Cool, must have been something else :-)
cheers,
Chris
Hi,
I've got an object which implements __setitem__ in such a way that it's
perfectly safe for use in Python Scripts. Sadly, it seems that Evan's Byte Code
hacks won't let me do this :-(
Whenever I try to do something like: myobject['fish']=1, I get a traceback like
the following:
Traceback
If I try and do:
if type(x) == type(0):
...I get a NameError on type :-(
What is so bad about type that I can't use it safely in PythonScripts?!?
frustratedly,
Chris
___
Zope-Dev maillist - [EMAIL PROTECTED]
Hi!
So as the item is an instance of my ZClass containing also an company_name
attribute
it will always return the item and because of that the Rack thinks it's
already there.
So why is this happening? What do I need to change?
You need to use an attribute which the object has *if and
At 05:29 PM 2/19/01 +0100, Christian Scholz wrote:
You need to use an attribute which the object has *if and only if* it
exists in the database. If the class has the attribute defined, all
instances exist, and you can't even load it with SkinScript because
ZPatterns uses __getattr__ to
At 16:21 2001-02-16, Steve Alexander wrote:
Stefan Karlsson wrote:
BTW is it possible to save the ProjektHandler instance persistently
in the attribute? Is there an easier way than creating a separate
specialist for the ProjektHandler class and storing the instances there?
I think you're
Hi!
So I shouldn't define it inside the ZClass propertysheet?
Do I understand this right?
(I remember having problems when using properties not defined in a
sheet somewhere.. or am I mistaken completely somehow? ;-)
You can't do this with a load attribute, because a default value will
From: Chris Withers [EMAIL PROTECTED]
I've got an object which implements __setitem__ in such a way that it's
perfectly safe for use in Python Scripts. Sadly, it seems that Evan's Byte
Code
hacks won't let me do this :-(
The only way that the security code can know that your __setitem__ is
Evan Simpson wrote:
The only way that the security code can know that your __setitem__ is safe
is to rename (or alias) it to __guarded_setitem__. Ditto for other such
methods.
Cool :-) Hmmm... I'm sure __getitem__ works okay though ;-)
if type(x) == type(0):
Use the Script builtin
From: Chris Withers [EMAIL PROTECTED]
But what's so bad about type()?!
When applied to an Extension Class, it gives you access to the actual class,
rather than a nice inert type.
Cheers,
Evan @ digicool 4-am
___
Zope-Dev maillist - [EMAIL
Evan Simpson wrote:
From: Chris Withers [EMAIL PROTECTED]
But what's so bad about type()?!
When applied to an Extension Class, it gives you access to the actual class,
rather than a nice inert type.
Hmmm arguably a bug in ExtensionClass, but not one I'm gonna try and fix ;-)
Oh
Hi all, I hope I am not posting this to the wrong newsletter, I am seeking
some advice regarding using zope on my organizations site..
I am creating a Developers Recouse Community site, which will have a lot of
features, I was hoping someone may be able to point me in the direction to
Michael R. Bernstein wrote:
Steve Alexander wrote:
Is the __init__ method of DataSkin getting called?
This would happen if, for example, you define an __init__ method in your
class, but you don't use something like:
from Globals import default__class_init__
At 05:50 PM 2/19/01 +0100, Christian Scholz wrote:
(though I am still confused a little, as I tried one non-existing
attribute and it didn't work. But this one also was not defined inside
the SkinScript and the database).
As I said, the attribute must exist if and only if the row is in the
At 05:25 PM 2/19/01 +, Chris Withers wrote:
Hmmm arguably a bug in ExtensionClass, but not one I'm gonna try and
fix ;-)
It's not a bug, it's a feature -- the feature that is the reason for the
very existence of ExtensionClasses in the first place: merging of the
notion of type and
Andy: Thank you for replying to my questions. I'd like to clarify some of
them, and see where I should be asking them. I do realize they are not
Zope-specific issues. My assumption is that other Zope developers have
encountered similar needs and have solved them.
Re client stuff: Part of the
The person who introduced me to Zope said that there was a Python runtime
version that could run bytecode in a page using the JVM in a browser. So I
need to know if this is true, and how to set it up.
Sorry I couldn't really tell you. I've never used it myself.
Uggh Visual FoxPro? Don't
Hello Zopistas,
I am excited to announce a Zope Directions Roadmap.
http://dev.zope.org/Resources/ZopeDirections.html
This document summarizes current thinking at DC about where the Zope
platform is going from an architectural point of view. It summarizes
informal conversations that we've
Steve Alexander wrote:
Michael R. Bernstein wrote:
Steve Alexander wrote:
Is the __init__ method of DataSkin getting called?
This would happen if, for example, you define an __init__ method in your
class, but you don't use something like:
from Globals import
Hi,
I have a Rack which uses ZClass Company for storage. I renamed
Company to CompanyX and created a new Company ZClass, giving it the
same methods, propertysheets and properties as CompanyX. When I tried
to view editInstanceForm_html of an instance of this class, I got the
method stored in
Hi all,
my problems are going on :( and i need help.
2001-02-19T20:21:07 ERROR(200) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Aiieee!
20154 exited with error code: 13
2001-02-19T20:21:07 INFO(0) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Houston,
we have forked
2001-02-19T20:21:07 INFO(0)
28 matches
Mail list logo