Re: [Zope] Save Changes executes Python script

2005-05-19 Thread Bert Vanderbauwhede
On 5/18/05, Dieter Maurer [EMAIL PROTECTED] wrote: Bert Vanderbauwhede wrote at 2005-5-18 09:22 +0200: We have written a Python script that sends a mail. Everytime we modify this script with Firefox 1.0.4 in Windows and click Save Changes, the script is saved and executed. So everytime we

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: The difference between this and the deletion example is that this form (personform.htm) need to be called with an argument, giving the person_id that identifies the record it is supposed to display. I have tried a number of ways to sneak this

Re: [Zope] Zope3 DTML in Filesystem ZSQL

2005-05-19 Thread Lennart Regebro
On 5/18/05, Stephan Richter [EMAIL PROTECTED] wrote: On Wednesday 18 May 2005 16:50, David Pratt wrote: Wow. This could really simplify things however I am still operating within the CMF framework so until there is more this way, I don't know what I can use now in this context? What would

[Zope] Re: How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread yuppie
Lennart Regebro wrote: Well, the generic method is to create a script that you call in the start of you ZPT that returns a dictionary with all the data to be displayed. This can also be the same script that actually does the deletion.

Re: [Zope] Re: How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, yuppie [EMAIL PROTECTED] wrote: Well. This is not *the* generic method, its one of two patterns which have both their pros and cons. See the File Library example for doing it the other way round, calling the template at the end of the script:

[Zope] dtml-sendmail with a tab

2005-05-19 Thread Jean
Hello, I want to send an e-mail with a tab. How can I do that with a dtml-sendmail tag? Best regards. Jean Tinguely. This message was sent using IMP, the Internet Messaging Program.

Re: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Andreas Jung
--On Donnerstag, 19. Mai 2005 14:48 Uhr +0200 [EMAIL PROTECTED] wrote: Hello, I want to send an e-mail with a tab. How can I do that with a dtml-sendmail tag? What is an email with a tab?? -aj pgpbvBfqBN6yT.pgp Description: PGP signature ___ Zope

Re: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Jean
Selon Andreas Jung [EMAIL PROTECTED]: --On Donnerstag, 19. Mai 2005 14:48 Uhr +0200 [EMAIL PROTECTED] wrote: Hello, I want to send an e-mail with a tab. How can I do that with a dtml-sendmail tag? What is an email with a tab?? -aj Sorry, for me a tab is an horizontal

RE: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Dan Pozmanter
Either he wants to charge the recipient, or he Just wants to send an e-mail from a zmi tab. If its something like the latter, this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.16.html may help. -Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Hugo Ramos
Yellow, What is an email with horizontal tabulation??? hr On 5/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Selon Andreas Jung [EMAIL PROTECTED]: --On Donnerstag, 19. Mai 2005 14:48 Uhr +0200 [EMAIL PROTECTED] wrote: Hello, I want to send an e-mail with a tab. How

Re: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Andreas Jung
--On Donnerstag, 19. Mai 2005 15:13 Uhr +0200 [EMAIL PROTECTED] wrote: Sorry, for me a tab is an horizontal tabulation ( #9; or HT ). Best regards. Jean Tinguely Maybe by using \t...but no idea...if you want something extraordinary you should consider using Python's 'email' module to produce

Re: [Zope] More tolerant Stripogram (solution)

2005-05-19 Thread Jaroslav Lukesh
Dne steda, 18. kvtna 2005 10:57 Chris Withers [EMAIL PROTECTED] napsal(a): Jaroslav Lukesh wrote: Why are you bothering to strip when you basically let people put in all the abusive tags anyway? Because it is not abusive tags for intranet blog. Then why are you using stripogram in the

RE: [Zope] display object without index_html

2005-05-19 Thread Jim Abramson
Though less elegant, perhaps this will work: dtmlIndex = DTMLFile('dtml/indexHomepage', globals()) def index_html(self): docstring! return self.dtmlIndex(self,self.REQUEST) hth, Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Zope] dtml-sendmail with a tab

2005-05-19 Thread Jean
Hello, I find a trick: I send an email with the html mime type, In this message the #09; entity represent the HT. On my clients I install thunderbird ( viewing the body of the message in text only ). If you have an other idea, I'll test it! Best regards. Jean Tinguely Selon Andreas

Re: [Zope] Hiding HTML URL

2005-05-19 Thread Florent Guillaume
David H [EMAIL PROTECTED] wrote: If I might disagree, keeping a stable URL is not, by itself, user-defeating. For example, user's do not like browser history clutter with subfolders and objects - all from the same application. Speaking for myself, often I'm not looking for a website in

Re: [Zope] Zope3 DTML in Filesystem ZSQL

2005-05-19 Thread David Pratt
I've decided to stick with DTML for the time being since I can write and test my sql as sql and stick with my ZPT skills. I realize the DB API is also nice but the advantage of writing as DTML is that if you had to go back to plain sql if needed and you are not tied to your python code.

Re: [Zope] Seeking advice on Zope implementation

2005-05-19 Thread pythonic
Many thanks for all the suggestions. 4. Zope 2.7 / 3 ? Looks like lack of Zope3 documentation forcing us to start with Zope 2.7 . But

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 4:36 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL PROTECTED]

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: * I assume you include data retrieved from (and updated in) an underlying relational database. * Does data also include parameters (or arguments, or query string variables, or whatever you call them) passed from one HTML page to the next?

Re: [Zope] Hiding HTML URL

2005-05-19 Thread David H
Florent Guillaume wrote: David H [EMAIL PROTECTED] wrote: If I might disagree, keeping a stable URL is not, by itself, "user-defeating". For example, user's do not like browser history clutter with subfolders and objects - all from the same application.

[Zope] Re: Seeking advice on Zope implementation

2005-05-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pythonic wrote: Many thanks for all the suggestions. 4. Zope 2.7 / 3 ? Looks

[Zope] Fluctuation in response time

2005-05-19 Thread Pascal Peregrina
Hi all, In a Zope + Zeo 2.7.6 installation, with no request hitting the Zope instance, I have set up a script that does the same request every second. The response time is 15 to 17ms... So far, perfect. -- BUT -- Every 30 seconds, the response time (for one request) raises to 330ms (an then

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 11:07 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL

[Zope] zmi issues

2005-05-19 Thread Yuri
Hi! I'm doing an import of a large .zexp (from ZMI), and I see thay Zope is first loading it all in memory, than doing the work of importing it! I mean, isn't it a little bit *inefficient? :) Also, renaming a folder with a lot of zclasses in (40.000), takes a lot of time. After 10 minutes, it

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
What's wrong with this picture? This: context.REQUEST.RESPONSE.redirect('personform.htm') When you do this, you loose everything in the form. When you then in the personform.htm do context.REQUEST.person_id you get a key-error. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 12:03 PM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) What's wrong with this picture?

Re: [Zope] zmi issues

2005-05-19 Thread Hugo Ramos
Yellow, Once I imported a zexp file bigger than 2GB... It took a while... :-) Be sure to turn session timeout off!!! If you session expires or the browser has some kind of problem it will give you a timeout error... regards hr On 5/19/05, Yuri [EMAIL PROTECTED] wrote: Hi! I'm doing an

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: But that just changed the error to KeyError: 'personform_htm'. Well, it's 'personform.htm', not undescore, right? -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Tino Wildenhain
Am Donnerstag, den 19.05.2005, 11:56 -0400 schrieb Ken Winter: -Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 11:07 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form

Re: [Zope] Fluctuation in response time

2005-05-19 Thread Dieter Maurer
Pascal Peregrina wrote at 2005-5-19 17:23 +0200: ... 1 request per second ... The response time is 15 to 17ms... So far, perfect. -- BUT -- Every 30 seconds, the response time (for one request) raises to 330ms (an then goes back to 15-17ms) Question : in Zope, is there something running in the

Re: [Zope] display object without index_html

2005-05-19 Thread Dieter Maurer
Christopher Rivard wrote at 2005-5-18 11:51 -0600: i am developing a Zope product (2.7) with a homepage content type and want this object to display as the index of a folder. for other custom objects, i have display methods that call an index view ( using DTMLFile) of the object like this:

Re: [Zope] Zope3 DTML in Filesystem ZSQL

2005-05-19 Thread Dieter Maurer
Lennart Regebro wrote at 2005-5-19 10:39 +0200: ... But, at the moment, only for ascii, because the some Zope 3 widgets make unicode(string) calls for no apparent reason, which fails under Five if the string contains anything above chr(128). We are looking at solving that though. ;) One

[Zope] Answer's Time

2005-05-19 Thread Fernando Lujan
I'm having the following problem and wanna know whether it can be associated with Zope. I have a page in my system with various links, and when I click in a link, for instance link 1. The cursor starts being busy, the browser appear to send the request but there is no response. When it happens,

Re: [Zope] Answer's Time

2005-05-19 Thread Chris McDonough
You may want to use a tool like wget or curl to examine the response from the server for the clicked URL. This could be many things. - C On Thu, 2005-05-19 at 18:37 -0300, Fernando Lujan wrote: I'm having the following problem and wanna know whether it can be associated with Zope. I have

Re: [Zope] Answer's Time

2005-05-19 Thread David H
Chris McDonough wrote: You may want to use a tool like wget or curl to examine the response from the server for the clicked URL. This could be many things. - C On Thu, 2005-05-19 at 18:37 -0300, Fernando Lujan wrote: I'm having the following problem and wanna know whether it can be associated

[Zope] Zope Mirror sites running on different zope versions...

2005-05-19 Thread JV Singh
Hi Everyone, We have our main zope site running on Zope-2.7.6 and want to create a mirror for that (on our local LAN)... Is it feasible to use Zope-2.8.0b1 (the current stable prerelease) or a higher for the mirror? I mean is it going to cause any compatibility issues when synchronizing the two

Re: [Zope] Zope Mirror sites running on different zope versions...

2005-05-19 Thread Andreas Jung
--On Freitag, 20. Mai 2005 10:49 Uhr +0530 JV Singh [EMAIL PROTECTED] wrote: Hi Everyone, We have our main zope site running on Zope-2.7.6 and want to create a mirror for that (on our local LAN)... Is it feasible to use Zope-2.8.0b1 (the current stable prerelease) or a higher for the mirror?

[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/component.xml use the new socket-binding-address datatype

2005-05-19 Thread Yvo Schubbe
Log message for revision 30410: use the new socket-binding-address datatype Changed: U Zope/trunk/lib/python/ZServer/component.xml -=- Modified: Zope/trunk/lib/python/ZServer/component.xml === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/ExtensionClass/_ExtensionClass.c fixed GCC 4 compilation problem

2005-05-19 Thread Andreas Jung
Log message for revision 30412: fixed GCC 4 compilation problem Changed: U Zope/trunk/lib/python/ExtensionClass/_ExtensionClass.c -=- Modified: Zope/trunk/lib/python/ExtensionClass/_ExtensionClass.c === ---

[Zope-Checkins] SVN: Zope/trunk/ Move to ZODB 3.4b1.

2005-05-19 Thread Tim Peters
Log message for revision 30444: Move to ZODB 3.4b1. Changed: _U Zope/trunk/lib/python/ _U Zope/trunk/utilities/ -=- Property changes on: Zope/trunk/lib/python ___ Name: svn:externals - zope

[Zope-Coders] Re: ZConfig changes: please try on Windows

2005-05-19 Thread yuppie
yuppie wrote: Fred Drake wrote: So if the Windows Zope users are happy with it, then I guess we're done with this issue, which exhausts what I know needs to be done. Thanks! But one test still fails: [...] Either something is wrong with socket-address or the test should expect

Re: [Zope-Coders] Re: ZConfig changes: please try on Windows

2005-05-19 Thread Andreas Jung
Thanks guys! --On Donnerstag, 19. Mai 2005 9:00 Uhr +0200 yuppie [EMAIL PROTECTED] wrote: yuppie wrote: Fred Drake wrote: So if the Windows Zope users are happy with it, then I guess we're done with this issue, which exhausts what I know needs to be done. Thanks! But one test still fails: [...]

[Zope-Coders] Re: lib/python/zope/interface/_zope_interface_coptimizations.c/GCC 4 compile error

2005-05-19 Thread yuppie
Andreas Jung wrote: could someone please change on the 2.8 trunk the file above and apply the following patch: [EMAIL PROTECTED]:~/sandboxes/Zope/Zope/lib/python/zope/interface: svn diff lib/python/zope points to svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a3/src/zope You

[Zope-Coders] Re: [Zope-dev] Upcoming Zope 2.8 release

2005-05-19 Thread Andreas Jung
--On Donnerstag, 19. Mai 2005 19:59 Uhr +0200 Dieter Maurer [EMAIL PROTECTED] wrote: Andreas Jung wrote at 2005-5-19 13:43 +0200: after resolving all outstanding problems with Zope 2.8 under Windows the next releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled for

[Zope-dev] Upcoming Zope 2.8 release

2005-05-19 Thread Andreas Jung
Hi, after resolving all outstanding problems with Zope 2.8 under Windows the next releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled for 2005/06/11). I will cut a 2.8 release branch for Zope 2.8 b2. This means that the trunk is open for new development (Zope 2.9). Bugs

Re: [Zope-dev] Upcoming Zope 2.8 release

2005-05-19 Thread Jim Fulton
Yay! :) Andreas Jung wrote: Hi, after resolving all outstanding problems with Zope 2.8 under Windows the next releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled for 2005/06/11). I will cut a 2.8 release branch for Zope 2.8 b2. This means that the trunk is open for new

[Zope-dev] BastionLinux

2005-05-19 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We're finally almost ready to release BastionLinux, https://linux.last-bastion.net, our exact functional equivalent of RHEL for commercial Zope and Plone customers. We have packaged quite a number of Python/Zope/Plone products on the Plope

Re: [Zope-dev] Upcoming Zope 2.8 release

2005-05-19 Thread Dieter Maurer
Andreas Jung wrote at 2005-5-19 13:43 +0200: after resolving all outstanding problems with Zope 2.8 under Windows the next releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled for 2005/06/11). What about the ZClasses? -- Dieter

Re: [Zope-dev] Upcoming Zope 2.8 release

2005-05-19 Thread Jim Fulton
Dieter Maurer wrote: Andreas Jung wrote at 2005-5-19 13:43 +0200: after resolving all outstanding problems with Zope 2.8 under Windows the next releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled for 2005/06/11). What about the ZClasses? They work fine AFAIK. Jim -- Jim

Re: [Zope-DB] Retrieving Data from Z SQL in Python

2005-05-19 Thread Cliff Ford
Christer Fernstrom wrote: Hello, I have a very simple Z SQL method that works fine when I test run it. But when I call it from a Python script (see below) and attempt to print the result, I get the following error: Error Type: TypeError Error Value: cannot concatenate 'str' and

Re: [Zope-DB] ZPTs and database accesses

2005-05-19 Thread Jaroslav Lukesh
Dne tvrtek, 28. dubna 2005 20:17 Andreas Jung [EMAIL PROTECTED] napsal(a): You have not read the book correctly. First statement just said that you can't SQL queries using ZPT. In Zope you specify SQL queries using *ZSQL methods* that use DTML as markup language...this is not the same as

[Zope-DB] key error on query variable in previous and next batches

2005-05-19 Thread Henk Laloli
Inside the code generated by the zope search interface dtml result page a batch variable 'query' is used in Zope 2.7.6. This gives a key error when having next and previous batches. It also seems to be used in the ZSQL methods query template because the same error occurs there when having