[Zope] ZClasses deprecation and upgrades

2008-08-11 Thread Behrens Matt - Grand Rapids
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?

Re: [Zope] ZClasses deprecation and upgrades

2008-08-11 Thread Andreas Jung
--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

Re: [Zope] ZClasses date properties

2001-01-24 Thread Chris Withers
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?

[Zope] ZClasses date properties

2001-01-23 Thread Tim Moore
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

[Zope] Fw: [Zope] ZClasses date properties

2001-01-23 Thread Andy McKay
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

[Zope] ZClasses and title property

2001-01-19 Thread Tim Moore
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

RE: [Zope] ZClasses and title property

2001-01-19 Thread Loren Stafford
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

Re: [Zope] ZClasses and title property

2001-01-19 Thread Jason Cunliffe
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

[Zope] ZClasses

2001-01-18 Thread Priya Ramkumar
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

RE: [Zope] ZClasses meet PythonScripts, sample request

2001-01-16 Thread Max Møller Rasmussen
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
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"

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Jim Washington
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Evan Simpson
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',

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
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?

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
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

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Jim Washington
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?

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Timothy Wilson
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

[Zope] ZClasses meet PythonScripts, sample request

2001-01-13 Thread Timothy Wilson
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

[Zope] ZClasses and their icons (AI??)

2000-12-06 Thread Sven Hohage
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

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-12-01 Thread zope
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

[Zope] ZClasses on top of my Python classes?

2000-11-15 Thread Randall Kern
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

RE: [Zope] ZClasses on top of my Python classes?

2000-11-15 Thread Max Møller Rasmussen
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

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Jim Washington
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

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Aaron Straup Cope
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

RE: [Zope] Help wanted on Zope ZClasses/DTML please.

2000-11-06 Thread Seb Bacon
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

RE: [Zope] Help wanted on Zope ZClasses/DTML please.

2000-11-06 Thread Bowyer, Alex
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

RE: [Zope] Help wanted on Zope ZClasses/DTML please.

2000-11-03 Thread Seb Bacon
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

Re: [Zope] Help wanted on Zope ZClasses/DTML please.

2000-11-03 Thread chip johansen
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

Re: [Zope] Help wanted on Zope ZClasses/DTML please.

2000-11-03 Thread Andy McKay
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

[Zope] ZClasses UserFolders

2000-10-02 Thread Tim Cook
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

Re: [Zope] ZClasses - Base classes

2000-09-11 Thread Dieter Maurer
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

[Zope] ZClasses to RDBMS

2000-07-25 Thread Satheesh Babu
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?

[Zope] ZClasses to RDBMS

2000-07-25 Thread Steve Alexander
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 -

[Zope] ZClasses gripe

2000-07-17 Thread Andy McKay
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