Re: [Zope] Another "Structure" Problem

2007-08-15 Thread Garito
Perhaps you put the name of a template as doc and in this template render
the html code you want to render (like in this example a hidden input)

Only an idea...

2007/8/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Well, the other fellow said url_quote was well documented, but I haven't
> found out where :) Since you strongly imply I need url quoting, can you tell
> me how to url_quote this "doc" parameter?
>
> 
>
> Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once
> it's working, I'll make it cleaner ;)
> TIA,
> Tony
>
>
> -Original Message-
> From: Chris Withers <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: zope@zope.org
> Sent: Wed, 15 Aug 2007 12:54 pm
> Subject: Re: [Zope] Another "Structure" Problem
>
>  [EMAIL PROTECTED] wrote:
> > http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=+%3Cdiv%3E%3Cinput>type="hidden"
>  name="redirect_cmd"
> value="_cart">
> > > etc. Is there a way to work around this?
>
> Of course not, you don't need url quoting, that would be silly ;-)
>
> Chris
>
> PS: Why on *earth* you're passing around lumps of html in parameters
> anyway is *totally* beyond me...
>
> -- Simplistix - Content Management, Zope & Python Consulting
>   - http://www.simplistix.co.uk
>  --
> AOL now offers free email to everyone. Find out more about what's free
> from AOL at *AOL.com* .
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ExternalFile can't read mapped network drive

2007-08-15 Thread SpiderX
Ken, you can't have mapped drives for services. You have to use the UNC
path.

On 8/14/07, Ken Ara <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> In a Windows2003 Server environment, we have been unable to get
> ExternalFile to
> read a mapped network drive that is otherwise visible from this machine.
>
> We have given admin rights to the Zope service, "Zope instance at
> C:\Zope\Instance\2.10.4" (uses "C:\Zope\2.10.4\Python\PythonService.exe").
> Have
> we missed something?
>
> Attempting to add an ExternalFile batch (manage_addBatchViaGui) fails with
> the
> error:
>
> ///
>
> ERROR: directory ''Z:'' does not exist or is not readable.
> No action taken.
>
> ///
>
> This error is not logged in error_log, so there's no better traceback.
>
> Can this be made to work?  Thanks!
>
> Ken
>
>
>
>
>
>
> 
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 
Thanks,
Derek Wilson
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] URL_Rewrite

2007-08-15 Thread tonylabarbara
I have this line of code:

test

but I get this error:

Error Type: NameError
Error Value: name 'CheckOutAfterEditStuff' is not defined

So I tried this:

test

and I got the same error, although now it can't find "Our_Store". Now, 
"Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is in the 
same container. What am I doing wrong?
TIA,
Tony

AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Another "Structure" Problem

2007-08-15 Thread tonylabarbara

Well, the other fellow said url_quote was well documented, but I haven't found 
out where :) Since you strongly imply I need url quoting, can you tell me how 
to url_quote this "doc" parameter?




Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once it's 
working, I'll make it cleaner ;)
TIA,
Tony


-Original Message-
From: Chris Withers <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Wed, 15 Aug 2007 12:54 pm
Subject: Re: [Zope] Another "Structure" Problem



[EMAIL PROTECTED] wrote:?
>  href="http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=  type="hidden" name="redirect_cmd" 
> value="_cart">?
> > etc. Is there a way to work around this??
?
Of course not, you don't need url quoting, that would be silly ;-)?
?
Chris?
?
PS: Why on *earth* you're passing around lumps of html in parameters anyway is 
*totally* beyond me...?
?
-- Simplistix - Content Management, Zope & Python Consulting?
? - http://www.simplistix.co.uk?



AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Another "Structure" Problem

2007-08-15 Thread Chris Withers

[EMAIL PROTECTED] wrote:

http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=
etc. Is there a way to work around this? Of course not, you don't need url quoting, that would be silly ;-) Chris PS: Why on *earth* you're passing around lumps of html in parameters anyway is *totally* beyond me... -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] Another "Structure" Problem

2007-08-15 Thread Andreas Jung



--On 15. August 2007 12:48:06 -0400 [EMAIL PROTECTED] wrote:



Hi;
I can work around this one, but it's not as elegant and will waste an
hour or so. Here's the problem I'd like to resolve. I have this line of
code:

test

The problem is that "doc" comes back with all the special characters in
ASCII:

http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=



Yes, fix your code. Passing around HTML snippets through URLs just 
bad-style. Otherwise look at the url_quote/url_quote_plus() methods as 
mentioned some mails earlier.


-aj

pgpF6Sjvzoc47.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers

[EMAIL PROTECTED] wrote:

I tried this:

but got this error:
Error Type: TypeError
Error Value: a_script() takes exactly 1 argument (0 given)


Yeah, as you discovered later, leaving bits of things people suggest off 
is stupid ;-)



So it doesn't look like the "string:${..." workaround worked :(


It's not a workaround. There's nothing to workaround.


And I don't think I need to URLquote.


Oh? And what happens when x contains non-url-safe characters like 
spaces, slashes, colons, etc?


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers

Andreas Jung wrote:






...but next you'll be wondering how to url quote x.


By using the well-know url_quote() or url_quote_plus() methods.


...and in a page template? ;-)

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Another "Structure" Problem

2007-08-15 Thread tonylabarbara

Hi;
I can work around this one, but it's not as elegant and will waste an hour or 
so. Here's the problem I'd like to resolve. I have this line of code:

test

The problem is that "doc" comes back with all the special characters in ASCII:

http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=
etc. Is there a way to work around this? TIA, Tony AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread tonylabarbara

Oops...forgot the "absolute_url" part <:-) Works fine now. Thanks!

Tony


-Original Message-
From: Chris Withers <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 11:05 am
Subject: Re: [Zope] How Do I "Structure" This?



Ah Tony,?
?
looks like the penny is yet to drop...?
?
[EMAIL PROTECTED] wrote:?
> Bummer. Well, I'm trying to call a script that will render content to the 
> Web, like this:?
> ?
?
My guess is that what you're _really_ trying to do here is:?
?
?
?
...but next you'll be wondering how to url quote x.?
?
I feel we're fighting a loosing battle here...?
?
Chris?
?
-- Simplistix - Content Management, Zope & Python Consulting?
? - http://www.simplistix.co.uk?



AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Garito
In my opinion the correct sentence will be:



But they are trying to say you that structure don't do anything here because
an anchor expect or a URL or a javascript

You are trying to put an html code into an anchor but this don't work on
HTML or xHTML

If you want to execute the scritp when the user clicks on the anchor you
need to use something like:

 -> 

and when the user clicks the anchor the script will be executed

can you find a reference help about HTML o xHTML with an anchor like this:



no, isn't it? then structure don't do nothing here...

2007/8/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I tried this:
>  but got this
> error:
> *Error Type: TypeError
> Error Value: a_script() takes exactly 1 argument (0 given)*
> Next, I rewrote the script to put in a try statement for the variable, to
> test that, but before I even got to test I looked at the rendered code from
> the above line and it gave me this:
> 
> So it doesn't look like the "string:${..." workaround worked :(
> And I don't think I need to URLquote.
> TIA,
> Tony
>
>
> -Original Message-
> From: Chris Withers <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; zope@zope.org
> Sent: Wed, 15 Aug 2007 11:05 am
> Subject: Re: [Zope] How Do I "Structure" This?
>
>  Ah Tony,
>
> looks like the penny is yet to drop...
>
> [EMAIL PROTECTED] wrote:
> > Bummer. Well, I'm trying to call a script that will render content to
> the Web, like this:
> > 
>
> My guess is that what you're _really_ trying to do here is:
>
>   tal:attributes="href string:${here/a_script/absolute_url}?avar=${x}"/>
>
> ...but next you'll be wondering how to url quote x.
>
> I feel we're fighting a loosing battle here...
>
> Chris
>
> -- Simplistix - Content Management, Zope & Python Consulting
>   - http://www.simplistix.co.uk
>  --
> AOL now offers free email to everyone. Find out more about what's free
> from AOL at *AOL.com* .
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread tonylabarbara

I tried this:

but got this error:
Error Type: TypeError
Error Value: a_script() takes exactly 1 argument (0 given)
Next, I rewrote the script to put in a try statement for the variable, to test 
that, but before I even got to test I looked at the rendered code from the 
above line and it gave me this:

So it doesn't look like the "string:${..." workaround worked :(
And I don't think I need to URLquote.
TIA,
Tony


-Original Message-
From: Chris Withers <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 11:05 am
Subject: Re: [Zope] How Do I "Structure" This?



Ah Tony,?
?
looks like the penny is yet to drop...?
?
[EMAIL PROTECTED] wrote:?
> Bummer. Well, I'm trying to call a script that will render content to the 
> Web, like this:?
> ?
?
My guess is that what you're _really_ trying to do here is:?
?
?
?
...but next you'll be wondering how to url quote x.?
?
I feel we're fighting a loosing battle here...?
?
Chris?
?
-- Simplistix - Content Management, Zope & Python Consulting?
? - http://www.simplistix.co.uk?



AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread tonylabarbara

Well, I'm trying to do the following:

1) generate a list of variables using tal:define

2) pass those variables to a script, that will then make a few edits and render 
everything as an HTML page.



I'm doing this as a work-around to the problem I posted earlier, that nobody 
apparently could solve, called "Form-Through-Script", where I was trying to 
call a script using a form action but couldn't pass the page as a variable. 
Well, I can pass variables and reconstruct the page, but then I have the 
problem of missing "structure".



Conversely, it could pass those variables to a page that would then render, but 
how to pass them and render the page? 



There has GOT to be a way to work around this!

TIA,

Tony


-Original Message-
From: Doyon, Jean-Francois <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 10:50 am
Subject: RE: [Zope] How Do I "Structure" This?




Why would you put HTML inside an HREF?

?

Sounds to me like you want  or something like that.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: August 15, 2007 10:45
To: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] How Do I "Structure" This?




Bummer. Well, I'm trying to call a script that will render content to the Web, 
like this:

which calls a script that does this:
return "" + x + ""
but of course it delivers this to the browser:
x
Any way to work around this problem?
TIA,
Tony


-Original Message-
From: Andreas Jung <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 10:20 am
Subject: Re: [Zope] How Do I "Structure" This?



--On 15. August 2007 10:17:56 -0400 [EMAIL PROTECTED] wrote:?
?
> Hi;?
> I have the following PT code:?
> ?
> and I want to "structure" it, kind of like this:?
> ?
> How do I do that??
?
As documented, 'structure' only works with tal:content|replace.?
?
-aj?


AOL now offers free email to everyone. Find out more about what's free from AOL 
at AOL.com.




AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Andreas Jung



--On 15. August 2007 16:05:13 +0100 Chris Withers <[EMAIL PROTECTED]> 
wrote:



Ah Tony,

looks like the penny is yet to drop...

[EMAIL PROTECTED] wrote:

Bummer. Well, I'm trying to call a script that will render content to
the Web, like this: 


My guess is that what you're _really_ trying to do here is:



...but next you'll be wondering how to url quote x.



By using the well-know url_quote() or url_quote_plus() methods.

-aj

pgpkThXs92yqj.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Chris Withers

Ah Tony,

looks like the penny is yet to drop...

[EMAIL PROTECTED] wrote:

Bummer. Well, I'm trying to call a script that will render content to the Web, 
like this:



My guess is that what you're _really_ trying to do here is:



...but next you'll be wondering how to url quote x.

I feel we're fighting a loosing battle here...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] How Do I "Structure" This?

2007-08-15 Thread Doyon, Jean-Francois
Why would you put HTML inside an HREF?
 
Sounds to me like you want  or something like that.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: August 15, 2007 10:45
To: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] How Do I "Structure" This?


Bummer. Well, I'm trying to call a script that will render content to
the Web, like this:

which calls a script that does this:
return "" + x + ""
but of course it delivers this to the browser:
x
Any way to work around this problem?
TIA,
Tony


-Original Message-
From: Andreas Jung <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 10:20 am
Subject: Re: [Zope] How Do I "Structure" This?



--On 15. August 2007 10:17:56 -0400 [EMAIL PROTECTED] wrote: 
 
> Hi; 
> I have the following PT code: 
>  
> and I want to "structure" it, kind of like this: 
>  
> How do I do that? 
 
As documented, 'structure' only works with tal:content|replace. 
 
-aj 



AOL now offers free email to everyone. Find out more about what's free
from AOL at AOL.com  .

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread tonylabarbara
Bummer. Well, I'm trying to call a script that will render content to the Web, 
like this:

which calls a script that does this:
return "" + x + ""
but of course it delivers this to the browser:
x
Any way to work around this problem?
TIA,
Tony


-Original Message-
From: Andreas Jung <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Wed, 15 Aug 2007 10:20 am
Subject: Re: [Zope] How Do I "Structure" This?


?
--On 15. August 2007 10:17:56 -0400 [EMAIL PROTECTED] wrote:?
?
> Hi;?
> I have the following PT code:?
> ?
> and I want to "structure" it, kind of like this:?
> ?
> How do I do that??
?
As documented, 'structure' only works with tal:content|replace.?
?
-aj?



AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How Do I "Structure" This?

2007-08-15 Thread Andreas Jung



--On 15. August 2007 10:17:56 -0400 [EMAIL PROTECTED] wrote:


Hi;
I have the following PT code:

and I want to "structure" it, kind of like this:

How do I do that?


As documented, 'structure' only works with tal:content|replace.

-aj

pgpsCETyUYRGJ.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How Do I "Structure" This?

2007-08-15 Thread tonylabarbara
Hi;
I have the following PT code:

and I want to "structure" it, kind of like this:

How do I do that?
TIA,
Tony

AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.10.4 for windows installer

2007-08-15 Thread Chris Withers

Sidnei da Silva wrote:

New build is available:

http://files.enfoldsystems.com/Zope-2.9.8-Final-7409.exe


After some light testing, it's also now "officially" up:

http://www.zope.org/Products/Zope/2.9.8

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Form-Through-Script

2007-08-15 Thread Chris Withers

[EMAIL PROTECTED] wrote:

1)?I have a form that I need to send to a script and then send off to a URL 
(PayPal). I need to process it through the script to renumber things for PP. 
How do I do this? I imagine I add an element to the PT like so:




This action is rubbish. I have no idea what you're trying to do.


but I need to pass a parameter "doc", which, of course, is the document I'm 
submitting. So I tried this:





What's this macro got in it?


which renders my page fine, but throws an error when I submit the form:

Cannot locate object at: 
http://example.com/s/c/x/j/en-us/s/renumberTheCart%28here


Exactly, you've made up your own syntax there, so no wonder it doesn't 
work ;-)



2) I changed it to an absolute URL just to double-check, and got basically the 
same error:
?


Changed what to what?


Invalid request

The parameter, doc, was omitted from the request. 


I think you quoted the code for this earlier in the thread, it was 
attempting to use a query string parameter as part of a form action.

That *does not work*, nothing to do with Zope, that's just html.
You need to put doc as a variable in the form:


 http://example.com/s/renumberTheCart"; method="post">
 
 


I have no idea what the tal:define is supposed to do there...


this way once the item is removed and the same script is called, since there's 
no remove this time, it'll go to PP.

I would LOVE to do that...if I knew how! Any ideas?


Learn to crawl before you attempt walking, let alone running...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )