Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Andreas Jung



--On 13. August 2007 07:27:01 +0200 Andreas Jung [EMAIL PROTECTED] wrote:




--On 12. August 2007 19:53:57 +0200 Andreas Jung [EMAIL PROTECTED] wrote:


Hi,

to make it short: I propose to move the Zope 2 bugtracker to
Launchpad. Since the Zope 3 bugtracker works already with success on LP
we should follow with the Zope 2 bugtracker. Objections?




One could also move the CMF bugtracker to LP at the same time. Then only
the APE and the PAS trackers would remain. The PAS tracker is already
empty and the APE tracker is also pretty much obsolete and contains only
a few items.


And there is also the zope.org website tracker which could be migrated.
The guys from Canonical suggested also to migrate all these trackers
in one run.

Andreas



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


Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Aug 2007, at 08:04, Andreas Jung wrote:


to make it short: I propose to move the Zope 2 bugtracker to
Launchpad. Since the Zope 3 bugtracker works already with success  
on LP

we should follow with the Zope 2 bugtracker. Objections?




One could also move the CMF bugtracker to LP at the same time.  
Then only

the APE and the PAS trackers would remain. The PAS tracker is already
empty and the APE tracker is also pretty much obsolete and  
contains only

a few items.


And there is also the zope.org website tracker which could be  
migrated.

The guys from Canonical suggested also to migrate all these trackers
in one run.


Slow down...  speaking for the CMF and PAS collectors:

I'm -0.5 on both since I actively use them and I have no experience  
at all with Launchpad. The other responsible people sit on the CMF  
list so you or I need to ask them there.


Personally I don't see any big benefit. The existing collectors have  
served us reasonably well.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGv//NRAx5nvEhZLIRAtbeAJwNLkpuJ5gZgIDXL2mHs+bnsWFpggCfaDim
uGaEAd22agmd2LU8DPdxB4A=
=8MJi
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Andreas Jung



--On 13. August 2007 08:53:01 +0200 Jens Vagelpohl [EMAIL PROTECTED] 
wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Aug 2007, at 08:04, Andreas Jung wrote:


to make it short: I propose to move the Zope 2 bugtracker to
Launchpad. Since the Zope 3 bugtracker works already with success
on LP
we should follow with the Zope 2 bugtracker. Objections?




One could also move the CMF bugtracker to LP at the same time.
Then only
the APE and the PAS trackers would remain. The PAS tracker is already
empty and the APE tracker is also pretty much obsolete and
contains only
a few items.


And there is also the zope.org website tracker which could be
migrated.
The guys from Canonical suggested also to migrate all these trackers
in one run.


Slow down...  speaking for the CMF and PAS collectors:

I'm -0.5 on both since I actively use them and I have no experience at
all with Launchpad. The other responsible people sit on the CMF list so
you or I need to ask them there.


Right. You have to decide of course yourself.

But it would be nice for having one bugtracking system with one user base 
in one place. The UI of the collectors on plone.org just sucks - I am not 
talking of developers but of people submitting bugs. Launchpad just 
provides a clean UI for this purpose.


Andreas



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


Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Aug 2007, at 09:11, Andreas Jung wrote:

Slow down...  speaking for the CMF and PAS collectors:

I'm -0.5 on both since I actively use them and I have no  
experience at
all with Launchpad. The other responsible people sit on the CMF  
list so

you or I need to ask them there.


Right. You have to decide of course yourself.

But it would be nice for having one bugtracking system with one  
user base in one place. The UI of the collectors on plone.org just  
sucks - I am not talking of developers but of people submitting  
bugs. Launchpad just provides a clean UI for this purpose.


I've put the question to the CMF list. Is there and deadline when you  
need a decision?


For the PAS collector I don't mind the move, there's very few  
developers actively using it (including me), and it would be a soft  
entry into Launchpad for me ;)


jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGwAZjRAx5nvEhZLIRAtO3AJ9J8/uk98mRK9kMuGPpl3ncqXoLbQCePVjg
fSPD2IjFBXwDSm73mwqdpDU=
=vEBi
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] Re: Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Aug 2007, at 11:11, Hanno Schlichting wrote:
One could also move the CMF bugtracker to LP at the same time.  
Then only

the APE and the PAS trackers would remain. The PAS tracker is already
empty and the APE tracker is also pretty much obsolete and  
contains only

a few items.


+1 for PAS and APE as well. Every content not on the current zope.org
site is good content ;)


APE is dead. I doubt there's any use in moving that collector anywhere.

jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGwCJCRAx5nvEhZLIRAvWeAJ417Ot5ANz3mMADBnyx7Ud1LwopfwCeMGsW
d3HL0nXVquNXgknqFvBH1hg=
=hU9P
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope-dev] Re: Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Hanno Schlichting
Jens Vagelpohl wrote:
 On 13 Aug 2007, at 11:11, Hanno Schlichting wrote:
 One could also move the CMF bugtracker to LP at the same time. Then only
 the APE and the PAS trackers would remain. The PAS tracker is already
 empty and the APE tracker is also pretty much obsolete and contains only
 a few items.
 
 +1 for PAS and APE as well. Every content not on the current zope.org
 site is good content ;)
 
 APE is dead. I doubt there's any use in moving that collector anywhere.

I'd say if it costs more than half an hour to move the APE collector
than leave it (and delete it whenever we'll get the big zope.org
overhaul). If it is less than half an hour than move it and preserve the
information in there for historical reasons.

Hanno

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


Re: [Zope-dev] Re: Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Aug 2007, at 11:26, Hanno Schlichting wrote:


Jens Vagelpohl wrote:

On 13 Aug 2007, at 11:11, Hanno Schlichting wrote:
One could also move the CMF bugtracker to LP at the same time.  
Then only
the APE and the PAS trackers would remain. The PAS tracker is  
already
empty and the APE tracker is also pretty much obsolete and  
contains only

a few items.


+1 for PAS and APE as well. Every content not on the current  
zope.org

site is good content ;)


APE is dead. I doubt there's any use in moving that collector  
anywhere.


I'd say if it costs more than half an hour to move the APE collector
than leave it (and delete it whenever we'll get the big zope.org
overhaul). If it is less than half an hour than move it and  
preserve the

information in there for historical reasons.


I would preserve that information on zope.org and just leave it where  
it is. Moving it will only create the misleading impression that it's  
still supported somehow.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGwCRGRAx5nvEhZLIRAk54AJ0SEhnFXuMwEAskItfd+MptGxs7uACdFI4I
G5x0kiGU+PsD8jCJDTiIKTE=
=GMSv
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope-dev] Re: Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Hanno Schlichting
Andreas Jung wrote:
 --On 12. August 2007 19:53:57 +0200 Andreas Jung [EMAIL PROTECTED] wrote:

 to make it short: I propose to move the Zope 2 bugtracker to
 Launchpad. Since the Zope 3 bugtracker works already with success on
 LP we
 should follow with the Zope 2 bugtracker. Objections?

+1, having a unified bug tracker system including a common user database
for both Zope 2 + 3 helps.

 One could also move the CMF bugtracker to LP at the same time. Then only
 the APE and the PAS trackers would remain. The PAS tracker is already
 empty and the APE tracker is also pretty much obsolete and contains only
 a few items.

+1 for PAS and APE as well. Every content not on the current zope.org
site is good content ;)

For the CMF collector see cmf-devel.

Hanno

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


[Zope-dev] Zope Tests: 5 OK

2007-08-13 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Sun Aug 12 12:00:00 2007 UTC to Mon Aug 13 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sun Aug 12 20:54:13 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008177.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sun Aug 12 20:55:46 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008178.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug 12 20:57:17 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008179.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug 12 20:58:48 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008180.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sun Aug 12 21:00:19 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008181.html

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


Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:
 
 --On 13. August 2007 07:27:01 +0200 Andreas Jung [EMAIL PROTECTED] wrote:
 

 --On 12. August 2007 19:53:57 +0200 Andreas Jung [EMAIL PROTECTED] wrote:

 Hi,

 to make it short: I propose to move the Zope 2 bugtracker to
 Launchpad. Since the Zope 3 bugtracker works already with success on LP
 we should follow with the Zope 2 bugtracker. Objections?


 One could also move the CMF bugtracker to LP at the same time. Then only
 the APE and the PAS trackers would remain. The PAS tracker is already
 empty and the APE tracker is also pretty much obsolete and contains only
 a few items.
 
 And there is also the zope.org website tracker which could be migrated.
 The guys from Canonical suggested also to migrate all these trackers
 in one run.

I would prefer to do this only if it is possible to have old collector
URLs redirected automagically to the corresponding launchpad URL:  there
are too many changelog entries, etc., which refer to the current
collector URLs.

It should be possible to do this with some kind of traversal hook.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwI7/+gerLs4ltQ4RAjQTAJ9DrBqKc6b6ChIxvQvtbGM0C4gsTwCbB6XG
Hsycd6t5RUid4sUvwjOi1Ks=
=E6Q9
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Moving the Zope 2 bugtracker to Launchpad

2007-08-13 Thread Andreas Jung



--On 13. August 2007 13:03:59 -0400 Tres Seaver [EMAIL PROTECTED] 
wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:


--On 13. August 2007 07:27:01 +0200 Andreas Jung [EMAIL PROTECTED] wrote:



--On 12. August 2007 19:53:57 +0200 Andreas Jung [EMAIL PROTECTED]
wrote:


Hi,

to make it short: I propose to move the Zope 2 bugtracker to
Launchpad. Since the Zope 3 bugtracker works already with success on LP
we should follow with the Zope 2 bugtracker. Objections?



One could also move the CMF bugtracker to LP at the same time. Then only
the APE and the PAS trackers would remain. The PAS tracker is already
empty and the APE tracker is also pretty much obsolete and contains only
a few items.


And there is also the zope.org website tracker which could be migrated.
The guys from Canonical suggested also to migrate all these trackers
in one run.


I would prefer to do this only if it is possible to have old collector
URLs redirected automagically to the corresponding launchpad URL:  there
are too many changelog entries, etc., which refer to the current
collector URLs.

It should be possible to do this with some kind of traversal hook.



I'll ask the LP guys if it is possible getting a mapping old-ticket-number 
- new-ticket-number after the migration process.  However this won't solve 
the lookup problem with someone with an old ticket number goes directly

to LP and searches there by the old number..this will fail.

Andreas

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


Re: [Zope] debugging memory exhaustion

2007-08-13 Thread Chris Withers

Dieter Maurer wrote:
ZODB.DB.DB provides methods for detailed analysis of the 
cached objects.


Cool, I'll bear that in mind...


It is used for the Extreme cache detail ZMI page
but can also be used differently (e.g. from an External Methode
or via the ZServer Monitor Server interactively).


I've never known how to use the monitor server. Are there examples or 
documentation anywhere?


Of course, it'd be lovely if you could actually specify an upper memory 
bound for a particular request to use, and/or Zope as a whole, but these 
kinds of things always seem to stall at the development stage :-(


You should find the culprit. While a better cache management might
avoid the MemoryError, the observed bad behaviour would trash
your cache -- and following activities would be by several orders
slower than usual


Yes, but it's a bad failure mode.
Slow-but-functional is better than throwing MemoryErrors in my book...
(especially as a trashed cache resolves itself, whereas MemoryErrors 
always seem to require a restart...)


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] Re: zope 2.10.4 for windows installer

2007-08-13 Thread chan . yinghoong
Chris Withers [EMAIL PROTECTED] writes:

 
 anton wrote:
  Hi,
  
  its now over a motch that zope 2.10.4 was released.
  
  Does anybody have an idea when there will be a windows installer?
 
 Likely on Saturday...
 
 Chris
 

Are there plans to release Zope 2.9.8 window installer also?

CYH


___
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-13 Thread Chris Withers

chan.yinghoong wrote:

Chris Withers [EMAIL PROTECTED] writes:

Are there plans to release Zope 2.9.8 window installer also?


Sidnei, could you crank the handle?

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 )


[Zope] What If It Doesn't Have a Key?

2007-08-13 Thread tonylabarbara
Hi;
I have this line of code:
span tal:condition=python:request.has_key('checkbox_1') tal:omit-tag=
I would like to do the exact opposite of that. In other words, have the 
condition render if checkbox_1 does not exist. 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] What If It Doesn't Have a Key?

2007-08-13 Thread tonylabarbara

Oh ;) Thanks.

Tony


-Original Message-
From: Andreas Jung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Mon, 13 Aug 2007 12:47 pm
Subject: Re: [Zope] What If It Doesn't Have a Key?



?
--On 13. August 2007 12:36:13 -0400 [EMAIL PROTECTED] wrote:?
?
 Hi;?
 I have this line of code:?
 span tal:condition=python:request.has_key('checkbox_1')?
 tal:omit-tag= I would like to do the exact opposite of that. In other?
 words, have the condition render if checkbox_1 does not exist. How do I?
 do that? TIA,?
 Tony?
?
?
Look at the 'not:' directive.?
?
-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 )


[Zope] Form-Through-Script

2007-08-13 Thread tonylabarbara

Hi;
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:

form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post

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

form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post
p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /

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

What do I do? Also, where do I return the document? Can I re.sub the form 
action in my script to send it to a new place? Does it just refresh the 
original doc?
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] Form-Through-Script

2007-08-13 Thread Andreas Jung



--On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:



Hi;
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:

form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post

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

form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post
p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /


You might check out the basics about HTML forms first. The 'action' 
parameter is an URL and *not* some Python-like function call. You specify 
the destination URL inside the action attribute and pass the parameters as 
*hidden* form parameters to the URL - either using method GET or POST.


You'll find more on forms in any HTML tutorial. Start from here:

http://www.w3schools.com/html/html_forms.asp


-aj


pgp4zP7ys74Ml.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] Form-Through-Script

2007-08-13 Thread tonylabarbara

No, it should work the way it is...that is a URL I passed. I changed it to an 
absolute URL just to double-check, and got basically the same error:



Invalid request
The parameter, doc, was omitted from the request.

How do I pass the parameter, which in my case is quite long and stashed neatly 
away in a PT macro?

td tal:define=docs here/CheckOutAfterEditStuff
form action=http://example.com/s/renumberTheCart?doc=docs; method=post?
p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /?
/td

TIA,
Tony

-Original Message-
From: Andreas Jung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Mon, 13 Aug 2007 3:55 pm
Subject: Re: [Zope] Form-Through-Script



?
--On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:?
?
?
 Hi;?
 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:?
?
 form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post?
?
 but I need to pass a parameter doc, which, of course, is the document?
 I'm submitting. So I tried this:?
?
 form action=renumberTheCart(here/CheckOutAfterEditStuff) method=post?
 p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /?
?
You might check out the basics about HTML forms first. The 'action' parameter 
is an URL and *not* some Python-like function call. You specify the destination 
URL inside the action attribute and pass the parameters as *hidden* form 
parameters to the URL - either using method GET or POST.?
?
You'll find more on forms in any HTML tutorial. Start from here:?
?
http://www.w3schools.com/html/html_forms.asp?
?
-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] Form-Through-Script

2007-08-13 Thread Tom Von Lahndorff

On Aug 13, 2007, at 3:55 PM, Andreas Jung wrote:




--On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:



Hi;
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:

form action=renumberTheCart(here/CheckOutAfterEditStuff)  
method=post


but I need to pass a parameter doc, which, of course, is the  
document

I'm submitting. So I tried this:

form action=renumberTheCart(here/CheckOutAfterEditStuff)  
method=post

p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /


You might check out the basics about HTML forms first. The 'action'  
parameter is an URL and *not* some Python-like function call. You  
specify the destination URL inside the action attribute and pass  
the parameters as *hidden* form parameters to the URL - either  
using method GET or POST.


You'll find more on forms in any HTML tutorial. Start from here:

http://www.w3schools.com/html/html_forms.asp



If you're uploading a file you'll want to also add enctype=multipart/ 
form-data to the form tag. I usually add it by default.


http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4
The content type application/x-www-form-urlencoded is inefficient  
for sending large quantities of binary data or text containing non- 
ASCII characters. The content type multipart/form-data should be  
used for submitting forms that contain files, non-ASCII data, and  
binary data.




-aj
___
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 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-13 Thread Tom Von Lahndorff


I think you want:

form action=renumberTheCart(here/CheckOutAfterEditStuff)  
method=post enctype=multipart/form-data

td
form action=http://example.com/s/renumberTheCart; method=post
input type=hidden name=doc value= tal:attributes=value here/ 
CheckOutAfterEditStuff /

p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /
/td

(my tal may be a bit off)


On Aug 13, 2007, at 4:09 PM, [EMAIL PROTECTED] wrote:

No, it should work the way it is...that is a URL I passed. I  
changed it to an absolute URL just to double-check, and got  
basically the same error:


Invalid request
The parameter, doc, was omitted from the request.

How do I pass the parameter, which in my case is quite long and  
stashed neatly away in a PT macro?


td tal:define=docs here/CheckOutAfterEditStuff
form action=http://example.com/s/renumberTheCart?doc=docs;  
method=post

p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /
/td

TIA,
Tony

-Original Message-
From: Andreas Jung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Mon, 13 Aug 2007 3:55 pm
Subject: Re: [Zope] Form-Through-Script


--On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:


 Hi;
 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:

 form action=renumberTheCart(here/CheckOutAfterEditStuff)  
method=post


 but I need to pass a parameter doc, which, of course, is the  
document

 I'm submitting. So I tried this:

 form action=renumberTheCart(here/CheckOutAfterEditStuff)  
method=post

 p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /

You might check out the basics about HTML forms first. The 'action'  
parameter is an URL and *not* some Python-like function call. You  
specify the destination URL inside the action attribute and pass  
the parameters as *hidden* form parameters to the URL - either  
using method GET or POST.


You'll find more on forms in any HTML tutorial. Start from here:

http://www.w3schools.com/html/html_forms.asp

-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 )


___
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-13 Thread tonylabarbara


multipart/form-data

The content-type, right? That threw this error:



 

Compilation failed
xml.parsers.expat.ExpatError: unbound prefix: line 1, column 0

TIA,
Tony


-Original Message-
From: Tom Von Lahndorff [EMAIL PROTECTED]
To: Andreas Jung [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; zope@zope.org
Sent: Mon, 13 Aug 2007 4:15 pm
Subject: Re: [Zope] Form-Through-Script



On Aug 13, 2007, at 3:55 PM, Andreas Jung wrote:?
?
?
?
 --On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:?
?
?
 Hi;?
 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:?
?
 form action=renumberTheCart(here/CheckOutAfterEditStuff)  
 method=post?
?
 but I need to pass a parameter doc, which, of course, is the  document?
 I'm submitting. So I tried this:?
?
 form action=renumberTheCart(here/CheckOutAfterEditStuff)  
 method=post?
 p metal:use-macro=here/CheckOutAfterEditStuff/macros/main /?
?
 You might check out the basics about HTML forms first. The 'action'  
 parameter is an URL and *not* some Python-like function call. You  specify 
 the destination URL inside the action attribute and pass  the parameters as 
 *hidden* form parameters to the URL - either  using method GET or POST.?
?
 You'll find more on forms in any HTML tutorial. Start from here:?
?
 http://www.w3schools.com/html/html_forms.asp?
?
?
If you're uploading a file you'll want to also add 
enctype=multipart/form-data to the form tag. I usually add it by default.?
?
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4?
The content type application/x-www-form-urlencoded is inefficient for 
sending large quantities of binary data or text containing non-ASCII 
characters. The content type multipart/form-data should be used for 
submitting forms that contain files, non-ASCII data, and binary data.?
?
?
 -aj?
 ___?
 Zope maillist - [EMAIL PROTECTED]
 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 )?
?



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] Form-Through-Script

2007-08-13 Thread Andreas Jung



--On 13. August 2007 17:40:35 -0400 [EMAIL PROTECTED] wrote:



I would LOVE to do that. I don't know how :( Can you point me to a good
tutorial or explain this a bit and give me some KW to chase down in
google?



Tony, please think about what you're doing for a moment.

If you want to call a method or a script XXX inside Zope through a form
where the method expects parameters A and B then you have to write:

form action=XXX method=get|post

input type=hidden name=A tal:attributes=value 
context/some_method_providing_a /
input type=hidden name=B tal:attributes=value 
context/some_method_providing_b /


Now apply this knowledge to your usecase. Check your _generated_
code twice if all requirements are fulfilled.

-aj





pgp6BLt21o9F5.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 )