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 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
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,
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 'contai
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: | Ch
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 for
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 i
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
assuming the DTML Method that has the form is called editJobAction.
This seems to almost work. :-)
On Sun, 14 Jan 2001, Jim Washington wrote:
> !
>
> !
> !
> ! Your changes have been saved
> !
>
> !
>
>
> Title
>
>
>
> Artist
>
>
>
>
> !
>
>
>
> !
That's quite clever. I wouldn't have thought of doing it that way.
After transl
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
>
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 disti
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
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 'containe
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 ha
14 matches
Mail list logo