I am wondering about is the nature of the problems with ZClasses that
led to their deprecation. If I move a 2.5.1 installation to 2.11, are
my several existing ZClass-based products going to break in any known
way I should be aware of? Should I consider a last-known-good upgrade
target instead?
--On 11. August 2008 08:44:21 -0500 Behrens Matt - Grand Rapids
[EMAIL PROTECTED] wrote:
I am wondering about is the nature of the problems with ZClasses that
led to their deprecation. If I move a 2.5.1 installation to 2.11, are
my several existing ZClass-based products going to break in
Tim Moore wrote:
"Invalid Date-Time String" error. I take it that empty date fields
aren't allowed then...is this intended or a bug? Still using 2.3b1.
It's always been like that, but I'd see it as a bug, so stick it in the
collector.
I wonder if the same is for number properties?
OK, now that I've settled my title property conundrum by just calling
the property "name" instead :-\ I go to add a "date" property to my
ZClass and find that it doesn't like that either. Specifically, it
won't let me add a property of type date with no value, giving me an
"Invalid Date-Time
Empty date fields are not allowed, this has been a feature for a while. I
set mine to 1970/01/01 for the hell of it.
--
Andy McKay.
- Original Message -
From: "Tim Moore" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 11:24 AM
Subj
Let me start by introducing myself...My name is Tim Moore and I'm new
to the list and Zope in general. I'm still figuring out how
everything works, so forgive me if I'm missing something basic here
:-)
I'm creating several ZClasses for the site I'm working on. In one of
them I'd like to have a
Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Tim Moore
Sent: Friday, January 19, 2001 14:59
To: [EMAIL PROTECTED]
Subject: [Zope] ZClasses and "title" property
Let me start by introducing myself...My name is Tim Moore and I'm new
to the list and
Art and Technology']
- Original Message -
From: Tim Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 19, 2001 5:58 PM
Subject: [Zope] ZClasses and "title" property
Let me start by introducing myself...My name is Tim Moore and I'm new
to the list and Zope
Hi
When trying to create a ZClass within another
ZClass, the contained class is not listed in the sub objects of the container
class. Could anyone suggest how to get over this problem?
Thanks
Priya
From: Timothy Wilson [mailto:[EMAIL PROTECTED]]
You have id as a form variable. You will be disappointed by its
behavior.
Care to elaborate on the problems with using id as a form variable.
You can be easily bitten by acquisition on this.
If you call a dtml-method that wants to use your
Hi, Tim
You do not need to mess with the Python Script bindings. It looks like
you are trying to get URL:
www.isd197.k12.mn.us/hr/jobs/postings/1234/editJobAction(REQUEST)
Which of course does not exist. I would change your form action="..
line to
form action="editJobAction" method="post"
Jim (or anyone else who's feeling charitable this morning),
Thanks for all your help. I really appreciate it. I wonder if you'd have
time to look one more time at the two methods I've got that aren't
working. I've included the actual code for my job posting product. Perhaps
someone will find it
Hi, Tim
I have it.
The Python Script I sent you:
container.propertysheets['job_info'].manage_changeProperties(REQUEST)
needs to be rewritten:
container.propertysheets.job_info.manage_changeProperties(REQUEST)
Perhaps someone could explain why the first does not work.
One point about your
On Mon, 15 Jan 2001, Jim Washington wrote:
One point about your form:
You have id as a form variable. You will be disappointed by its
behavior.
Thanks Jim.
Care to elaborate on the problems with using id as a form variable.
-Tim
--
Tim Wilson | Visit Sibley online: | Check
Hi, Tim
What is the name of the propertysheet in your ZClass that these values
are on? Is it 'job_info'?
Where is the editFormAction Python Script? It should be in your ZClass's
/methods. If you are instead acquiring it from a Folder somewhere, you
will need to use 'context' instead of
On Mon, 15 Jan 2001, Jim Washington wrote:
What is the name of the propertysheet in your ZClass that these values
are on? Is it 'job_info'?
Yes.
Where is the editFormAction Python Script? It should be in your ZClass's
/methods. If you are instead acquiring it from a Folder somewhere, you
Timothy Wilson wrote:
On Mon, 15 Jan 2001, Jim Washington wrote:
Where is the editFormAction Python Script? It should be in your ZClass's
/methods. If you are instead acquiring it from a Folder somewhere, you
will need to use 'context' instead of 'container' inside the Python
Hi, Tim
I am not working through that example, but the below is a start on what
you seem to need. Let me know what you think.
good luck!
-- Jim Washington
***
You probably want the work to be done in the context of an instance of
the class, so assure you
From: "Jim Washington" [EMAIL PROTECTED]
I am not working through that example, but the below is a start on what
you seem to need. Let me know what you think.
Thanks for the fine examples! I have only one nit to pick; When using
Scripts in ZClasses, you will typically want to use 'container',
On Sun, 14 Jan 2001, Jim Washington wrote:
I am not working through that example, but the below is a start on what
you seem to need. Let me know what you think.
Thanks Jim. I will study the examples you provided. Do you suppose that the
Zope Book would benefit from some examples of this type?
On Sun, 14 Jan 2001, Jim Washington wrote:
You probably want the work to be done in the context of an instance of
the class, so assure you have "context" bound to the Python Script on
the "bindings" tab. It's bound by default.
You might want to name the Script in a Zopish way to
Hi, Tim
You will want to pass REQUEST to it so you can use it like the Zope
builtins:
containerName.CDInfoName.manage_changeCDProperties(REQUEST)
So, put REQUEST in the parameters list.
I'm afraid I'm a bit confused here. Is 'CDInfoName' the id of an instance of
this CD class?
This seems to almost work. :-)
On Sun, 14 Jan 2001, Jim Washington wrote:
!dtml-var standard_html_header
!dtml-if "REQUEST.form.has_key('editCD')"
! dtml-call "manage_changeCDProperties(REQUEST)"
! pfont color="red"Your changes have been saved/font/p
!/dtml-if
!form
Hi everyone,
I'm looking forward to using some PythonScripts as methods of some ZClasses
because it seems like a much cleaner way to do things. I wonder if one of
the PythonScript gurus out there would be willing to show an example of two
presumably common PythonScript/ZClass tasks: processing
Hallo,
I've got a minor problem.
My ZClasses won't update the ClassIcons when I change them.
Has someone implemented an aesthetic-filter?
A great step in AI??
Furthermore a nice St.Nikolaus, like we say in Germany.
___
Zope maillist - [EMAIL
I've been struggling with this problem myself. In particular I can't
get the parent propertysheet management method to appear on the Views
method list. Is it necessary that the subclass also be contained in
the parent? In my design, there is no containment or acquiring
relationship between the
I've seen several doc tidbits suggesting one create
ZClasses derived from their Python classes, sticking all the biz logic in the
python classes, and the presentation in the ZClasses...
Could someone provide some insight into why this is
better than simply writing separate python classes
From: Randall Kern [mailto:[EMAIL PROTECTED]]
I've seen several doc tidbits suggesting one create ZClasses derived from
their
Python classes, sticking all the biz logic in the python classes, and the
presentation in the ZClasses...
Could someone provide some insight into why this is better
Hi, Aaron
Yes.
If your parent ZClass is constructed properly, you should be able to add
the parent class's management tabs by setting a "view". On the "Views"
tab, look in the Method list for
propertysheets/[ParentClassPropertySheetName]/manage. The properties on
that sheet are accessible just
Thanks!
I have a new question that may (?) be the same old one in a different
form:
The idea is to have two ZClasses, say Foo and Bar. Bar is a nested class
of Foo. The Foo object should be able create n instances of the Bar
objects and the Bar object should also be able to create n instances
I have worked out thanks to Seb's comments that the problem I
have with the
use of manage_delObjects is (I think) that I am passing in the title or id
of the object to be deleted rather than the object itself.
Not quite... manage_delObjects takes a string which is the id of the object
to be
Sent: Monday, November 06, 2000 8:50 PM
To: Bowyer, Alex; [EMAIL PROTECTED]
Subject: RE: [Zope] Help wanted on Zope ZClasses/DTML please.
I have worked out thanks to Seb's comments that the problem I
have with the
use of manage_delObjects is (I think) that I am passing in
the title or id
Hi, just some quick pointers (I'm in a hurry...)
refer to http://zdp.zope.org/projects/zqr/ZopeQR for more details
!-- do the deletion - this is the bit that doesn't work --
dtml-call "manage_delObjects('the_id')"
What is the correct way to use manage_delObjects?
dtml-call
Instead of ...
dtml-call
"manage_delObjects('REQUEST['id_to_delete']')"
try
dtml-call
"manage_delObjects('REQUEST.id_to_delete')"
Chip Johansen
From: "Bowyer, Alex" [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: [Zope] Help w
or try: dtml-call "manage_delObjects(REQUEST['id_to_delete'])"
- Original Message -
From: "chip johansen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 03, 2000 9:01 AM
Subject: Re: [Zope] Help wanted on Zope ZClasses/DTM
Is there a reason I can't add a UserFolder (and subsequently
users) to an instance of a ZClass that is sub-classed from
Folder?
I do not get any errors. But the acl_users folder is not in the
instance and the user gets added in the next acl_users up the
aquisition chain.
-- Tim Cook --
Cook
Philipp Auersperg writes:
I know that one cannot change the base classes of a ZClass after it has een=
created, but my question:
How can I just find out / enmerate the base classes of a ZClass?
You see mangled names of your base classes in the
ZClass' "Basic" Tab.
When you look at the
Hi,
Is there any recommended way to get data from ZClass instances to a
corresponding
RDBMS (Oracle 8i specifically) table?
What I could think of as options are: (I've'nt tried out any!)
1. In manage_add for my Zclass call the corresponding ZSQL insert method
- Can this be done?
Satheesh Babu wrote:
Is there any recommended way to get data from ZClass instances to a
corresponding RDBMS (Oracle 8i specifically) table?
What I could think of as options are: (I've'nt tried out any!)
1. In manage_add for my Zclass call the corresponding ZSQL insert method
-
I hate to do something in ZClasses, but I did today just because I didnt
have the energy to write in Python. Oh how I wish I had. It was all so
simple except for "DestinationURL" not being implemented or being used
patchily. It would be really great if we were able to write our own
destination
40 matches
Mail list logo