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
15 matches
Mail list logo