[Zope-Checkins] SVN: zdaemon/branches/matt-python-versions/ Created to resolve deprecations under Python 2.6.

2008-11-25 Thread [EMAIL PROTECTED]
Log message for revision 93350:
  Created to resolve deprecations under Python 2.6.
  

Changed:
  A   zdaemon/branches/matt-python-versions/

-=-
___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: zdaemon/branches/matt-python-versions/src/zdaemon/tests/tests.py Changed os.popen4 to the 'subprocess' module to make Python 2.6 happy.

2008-11-25 Thread [EMAIL PROTECTED]
Log message for revision 93354:
  Changed os.popen4 to the 'subprocess' module to make Python 2.6 happy.
  

Changed:
  U   zdaemon/branches/matt-python-versions/src/zdaemon/tests/tests.py

-=-
Modified: zdaemon/branches/matt-python-versions/src/zdaemon/tests/tests.py
===
--- zdaemon/branches/matt-python-versions/src/zdaemon/tests/tests.py
2008-11-25 22:18:20 UTC (rev 93353)
+++ zdaemon/branches/matt-python-versions/src/zdaemon/tests/tests.py
2008-11-25 22:24:15 UTC (rev 93354)
@@ -12,7 +12,7 @@
 #
 ##
 
-import os, re, shutil, sys, tempfile, unittest
+import os, re, shutil, sys, tempfile, unittest, subprocess
 import ZConfig, zdaemon
 from zope.testing import doctest, renormalizing
 
@@ -112,7 +112,10 @@
 f()
 
 def system(command, input=''):
-i, o = os.popen4(command)
+PIPE = subprocess.PIPE
+p = subprocess.Popen(command, shell=True, bufsize=0,
+  stdin=PIPE, stdout=PIPE, close_fds=True)
+(i, o) = (p.stdin, p.stdout)
 if input:
 i.write(input)
 i.close()

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope] TOC ondelete event

2007-07-28 Thread [EMAIL PROTECTED]
Hi Jonathan,
I'm sure that what you said is right but
1) I tried to change my script performing a manage_add that should be performed 
after timeout. Nothing happened.
2) However the only way I see is:
  a- keep the session id in the request
  b- if request.savedsessionidsession.id then alert session timed out

thank you for your help

-- Initial Header ---

From  : Jonathan [EMAIL PROTECTED]
To  : [EMAIL PROTECTED],zope zope@zope.org
Cc  :
Date  : Sat, 28 Jul 2007 08:17:08 -0400
Subject : Re: [Zope] TOC ondelete event








 - Original Message -
 From: [EMAIL PROTECTED]
 To: zope zope@zope.org
 Sent: Saturday, July 28, 2007 7:15 AM
 Subject: [Zope] TOC ondelete event

  I'm setting up a Session data Manager with a Transient Object Container
  that call a python script session_delete?
 (sdo,toc).
 
  I want to show a message like (your session was terminated due
  inactivity) so I tried to write this
 
  #PYTHON SCRIPT (NOT EXTERNAL) session_delete(sdo,toc)
  request = container.REQUEST
  RESPONSE =  request.RESPONSE
  RESPONSE.redirect(container.mywarningpage.absolute_url())
 
  Launched manually it gives me no errors but when the session is terminated
  only onadd script make effects.
 
  Are there not permitted operations in this case?
  Could anyone explain me where I mistake or another way to do tha same
  thing? (AFAIK sdo parameter is the old
  session so I can't store any info in it)

 The TOC invokes your script when the data object timeout value is reached
 (eg. if the timeout value is set for 5 minutes, then the TOC will invoke the
 script to call when objects are deleted when there has been no activity
 for 5 minutes).

 The TOC invokes the delete script as a result of the timeout, not because of
 an incoming user request and therefore there is no user to be 'redirected'.
 You are trying to push out a message to a user that is no longer there.

 You need to revise your application logic so that if a user comes back 
 (makes another request) after the 'timeout' they receive your warning
 message.

 hth

 Jonathan

 


--
Scegli infostrada: ADSL gratis per tutta l’estate e telefoni senza canone 
Telecom
http://click.libero.it/infostrada

___
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] Setting REQUEST on next page

2007-07-07 Thread [EMAIL PROTECTED]
Hi,
Someone could tell me how to pass a variable without put in the URL using 
RESPONSE.redirect?

For example, if code is...

dtml-call RESPONSE.redirect(nextpage+'?myvar='+value)

...I need something like

input type=hidden name=myvar value=dtml-var value
[set up this var on the next page REQUEST]
dtml-call RESPONSE.redirect(nextpage)

Thank you in advance for your help

Jary


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/

___
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] Setting REQUEST on next page

2007-07-07 Thread [EMAIL PROTECTED]
Using sessions I can solve the problem but I prefer other solutions (even if 
possible).

 Why do you not want to pass info in the URL?
For security reasons that fields should not be viewed by users

Thank you







-- Initial Header ---

From  : Jonathan [EMAIL PROTECTED]
To  : [EMAIL PROTECTED],zope zope@zope.org
Cc  :
Date  : Sat, 7 Jul 2007 11:35:44 -0400
Subject : Re: [Zope] Setting REQUEST on next page








 - Original Message -
 From: [EMAIL PROTECTED]
 To: zope zope@zope.org
 Sent: Saturday, July 07, 2007 10:38 AM
 Subject: [Zope] Setting REQUEST on next page


  Hi,
  Someone could tell me how to pass a variable without put in the URL using
  RESPONSE.redirect?
 
  For example, if code is...
 
  dtml-call RESPONSE.redirect(nextpage+'?myvar='+value)
 
  ...I need something like
 
  input type=hidden name=myvar value=dtml-var value
  [set up this var on the next page REQUEST]
  dtml-call RESPONSE.redirect(nextpage)

 In general you can only pass variables between 'sessions' by:

 1) including the variables in the url, or
 2) using Zope Session machinery, or
 3) storing the information in the ZODB (or other persistent db)

 Why do you not want to pass info in the URL?


 Jonathan
 


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/

___
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] Make a Zope Staging Server

2007-04-24 Thread [EMAIL PROTECTED]
-- Initial Header ---

From  : Andreas Jung [EMAIL PROTECTED]
To  : [EMAIL PROTECTED],akm [EMAIL PROTECTED]
Cc  : zope zope@zope.org
Date  : Mon, 23 Apr 2007 21:30:54 +0200
Subject : Re: [Zope] Make a Zope Staging Server









 --On 23. April 2007 17:41:42 +0200 [EMAIL PROTECTED] wrote:


  I'm looking for a solution (perhaps a script) that synchronize
  my ZODBs (maybe file copy?)

 ZSyncer?

 -aj

I don't know it but it seems the tool I'm looking for...

/j


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/


___
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] Make a Zope Staging Server

2007-04-24 Thread [EMAIL PROTECTED]
 
 
  --On 23. April 2007 17:41:42 +0200 [EMAIL PROTECTED] wrote:
 
 
   I'm looking for a solution (perhaps a script) that synchronize
   my ZODBs (maybe file copy?)
 
  ZSyncer?
 
  -aj

 I don't know it but it seems the tool I'm looking for...

 /j

That's perfect!
Thanks a lot

Jary


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/


___
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] Make a Zope Staging Server

2007-04-23 Thread [EMAIL PROTECTED]
Hi,

I would like to have a Zope Staging Server where I make tests before publish 
contents into the real Zope Web Server (I use 2 DBMSs too).

Unfortunately, EXTFile product (that I *MUST* use) don't give me the 
possibility to use export/import functions (before import I should delete the 
folder and consequently the linked FS files).

What should I do to easy implement simple publish and recovery functions 
between the servers?

Thank you

Jary Busato


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada


___
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] Make a Zope Staging Server

2007-04-23 Thread [EMAIL PROTECTED]
-- Initial Header ---

From  : Andrew Milton [EMAIL PROTECTED]
To  : [EMAIL PROTECTED] [EMAIL PROTECTED]
Cc  : zope zope@zope.org
Date  : Tue, 24 Apr 2007 01:30:37 +1000
Subject : Re: [Zope] Make a Zope Staging Server







 +---[ [EMAIL PROTECTED] ]--
 | Hi,

 Hi, (please try to wrap lines at 72 chars...)
Sorry but I'm using an horrible web interface


 | I would like to have a Zope Staging Server where I make tests before publish
 | contents into the real Zope Web Server (I use 2 DBMSs too).

 | Unfortunately, EXTFile product (that I *MUST* use) don't give me the
 | possibility to use export/import functions (before import I should delete 
 the
 | folder and consequently the linked FS files).

 Can you use EXTFile over a source control respository ? (subversion,
 cvs, et. al) and then 'check out' the version of the files you need.


 --
 Andrew Milton
 [EMAIL PROTECTED]


My issue is not publishing EXTFiles.
I have to copy the entire site (with EXTFiles, not only) but EXTFiles give me 
no possibility to use import function.
I saw that EXTFiles (used for a download area) operations have side-effect 
(i.e. delete extfile would delete the fs file) so I think I can't use them in a 
versioning system.
I'm looking for a solution (perhaps a script) that synchronize my ZODBs 
(maybe file copy?) and DBMSs

Regards,

Jary


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada


___
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-dev] OT: zc.buildout / ploneout

2007-04-06 Thread [EMAIL PROTECTED]
Hi,

I have inherited an existing buildout architecture developed in-house
which is becoming difficult to support and maintain.  There are about
25 setup tasks in total.  I am considering moving it to using
zc.buildout.  Two questions:

 - is there a central repository of recipes anywhere?  for example,
one of our current build tasks is a squid installation, which, i think
would be of common interest if converted to a recipe.  so far I've
only come across zope3-based recipes, the zope2 installer, and
ploneout.

 - are there any developers with zc.buildout experience that would be
interested in contracting to do this work?  I don't have the resources
to get it done quickly enough here.  If so, please get in touch off-
list at [EMAIL PROTECTED]

Thanks for your time,

Max



___
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] OT: zc.buildout / ploneout

2007-04-06 Thread [EMAIL PROTECTED]
Hi,

I have inherited an existing buildout architecture developed in-house
which is becoming difficult to support and maintain.  There are about
25 setup tasks in total.  I am considering moving it to using
zc.buildout.  Two questions:

 - is there a central repository of recipes anywhere?  for example,
one of our current build tasks is a squid installation, which, i think
would be of common interest if converted to a recipe.  so far I've
only come across zope3-based recipes, the zope2 installer, and
ploneout.

 - are there any developers with zc.buildout experience that would be
interested in contracting to do this work?  I don't have the resources
to get it done quickly enough here.  If so, please get in touch off-
list at [EMAIL PROTECTED]

Thanks for your time,

Max

___
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] file upload

2007-03-19 Thread [EMAIL PROTECTED]
I know that is not a zope issue but I hope to find a python based solution 
becouse I'm not expert in JS.

About your solutions:
(1) I can't know how many file fields should be
(3) I don't have smart users
The solution (2) should be useful but I'm not able to find a javascript that 
make it possible.

Thanks

Illorca


 - Original Message - From: [EMAIL PROTECTED]
 To: zope zope@zope.org
 Sent: Monday, March 19, 2007 11:20 AM
 Subject: [Zope] file upload


 How can I make a form that people could use to upload  multiple files in a 
 time?

 This is not a zope issue, but...  here are some options: (1) create a form 
 that contains several file upload fields, (2) use javascript to allow the 
 user to add more file upload fields as required, (3) get the user to upload a 
 zip file.


 Jonathan


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it


___
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] Download Large Files in Zope

2007-03-06 Thread [EMAIL PROTECTED]
Hi,
I've just installed Zope 2.8 with Apache 2 and I made a download library (a CMS 
site is too much for me and I can't find a simple download area product, so 
I've done it!)
Now, when I click on a large .exe file link (href) it seems it load all data 
before prompt for download and the zope service memory usage grow until 1/2 Gb.
How can i manage downloads  uploads?

Thank you in advance

Illorca


--
Con Prometeo prestiti senza spese fino a 31.000 Euro!
http://click.libero.it/webnation06marz07


___
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-DB] Basic tsql example using MxODBC Zope DA adaptor?

2007-01-04 Thread [EMAIL PROTECTED]
Hello Everyone,

I am relatively new to Zope/Plone, as well as the MxODBC Zope DA adaptor.  I am 
wondering if someone could point me to a basic example that would illustrate 
how to use the MxODBC Zope DA adaptor outside of a ZSQL method, using the 
Python API.  I am using a script to build transact-sql statements, and it 
doesn't appear to be possible to pass t-sql into a ZSQL method.

Any advice would be greatly appreciated.


Thank you and Best Regards,

Christopher A. Nethery___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope] help, installing ZJetDA-0.1.1..

2006-12-05 Thread [EMAIL PROTECTED]
Hi, I have copied the folder of the ZJetDA-0.1.1 product on the 
directory C:\Zope\2.10,1 \ Zope \ lib \ python \ Products  and 
restarted Zope. If I go in the Control panel --Product management,  I 
can visualize it, but how can I use it? how to create an instance of it 
in my project…
Probably I didn't understand How to add a Product...
I hope in your aid….Thanks..


Naviga e telefona senza limiti con Tiscali 
Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom

http://abbonati.tiscali.it/adsl/

___
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] [AUTORESPONSE] - Automatic Response From [EMAIL PROTECTED]

2006-10-12 Thread [EMAIL PROTECTED]
Thank You, for contacting the Webmaster at www.blagls.com. Your additions or 
changes have been submitted and someone will be in contact with you.


___
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] POST from Zope to external server and receive RESPONSE

2006-09-30 Thread [EMAIL PROTECTED]

Hello Michael and Paul,

This one would have to be an external method since
the external server doesn't offer XMLRPC. It's
also made more difficult by the fact that ssl
will have to be involved. I'm going hunting for
a better way but I will certainly be using XMLRPC
for some other functionality that's required.

cheers and thanks,

David


___
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] POST from Zope to external server and receive RESPONSE

2006-09-28 Thread [EMAIL PROTECTED]

Hello folks,

I'm sure this question has been answered before but bear
with me - Zope isn't my forte and I couldn't see anything
like the problem I'd like to solve on the Zope list.

I've inherited a project that now needs to post an XML
packet to an ecommerce gateway, ie a user submits, via
a form, credit card details which are posted to a Zope
server. The Zope server then builds an XML packet and
wants to POST to an external server which will send a
RESPONSE.

Can I capture that RESPONSE in Zope or must I use external
methods and something like Python's httplib.

I've done similar things with curl lib and C++, php curl
lib and php.

Any hints folks?

David

___
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] long name as ID

2006-05-09 Thread [EMAIL PROTECTED]
Hi Sergio!

You can change the ID to tittle, adding the following line to your 
archetype:

Ex:

schema = schema

 at_rename_after_creation = True -- 

content_icon = .


Bye!



Mensaje original
De: [EMAIL PROTECTED]
Recibido: 09/05/2006 13:16
Para: Zope@zope.org
Asunto: [Zope] long name as ID

Hi all,

I have developed an archetype based product named msf_folder, and it
stores the id with a very long string like
msf_folder.2006-05-09.8558117482, instead of the title I have written.
Is this a normal behaviour? How can I change the ID to the title I
have given it?

Thanks
Sergio
___
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 )


[Zope] about Zope 2.8.6

2006-05-03 Thread [EMAIL PROTECTED]
Hello! 
I have a question about Zope. I'm using Zope 2.8.6-final, python 2.3.5 and Plone 2.1.2. 
I'm trying to show an event in the portal calendar (CMFCalendar 1.5.5). This event has a custom workflow. I've configured the states in /site/portal_calendar/ ,configure tab, but the calendar doesn't show my event.
I have done this experiment with Zope 2.8.1-final and it works well. 
Is there any problem with Zope 2.8.6 and the CMFCalendar 1.5.5?


___
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] Export html

2006-04-18 Thread [EMAIL PROTECTED]
Hello, I have an archetype, I want to export the html that I see in the view mode to a rtf (or similar) format. I tried to use the product "RTFExport" but it doesn't export from HTML (or I don't know how to do this). I have found the product "PloneOOoTransforms" , does anybody have experience with this product? Can this product export the html of the view mode to another format.
Thanks
(I apologize If I've been using the wrong list to post this question)

___
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-dev] Question about RTFExport

2006-04-05 Thread [EMAIL PROTECTED]
Hello,
I'm using the RTFExport product. It woks well, but I have a question. I'm exporting the fields of my archetype,and the result file shows every field. This result file hasn't any format. I would like to create a RTF file with the same formatthat I see in the Edit mode or the View mode (in Plone). Is it possible? 
Thanks.

___
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] Dependent List

2006-03-30 Thread [EMAIL PROTECTED]
Hello,
I have a problem with my archetype, I'm using dependent lists. 
I've downloaded the MasterSelectWidget product, but I have a problem with it. 
In my archetype I have a master field and a slave one, I install the archetype, I add an object of this type to my portal, but when I load the saved object and try to edit it, I see that the slave field (a selection widget) don't have the value that I have selected. 
How can Isolve it?
Is there any alternative to MasterSelect widget?
Thanks !


___
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] dynamic js lists

2005-12-14 Thread [EMAIL PROTECTED]
Hi all

Following up on my other post and having a read on quirksmode (thanks
Peter). I came up with the following which unsuprising doesnt want to work.
Could anyone point out any blindingly obvious code errors? I think it could
perhaps be something to do with the cells number, ie cell[0] etc.

Thanks
Rich

html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
meta http-equiv=Content-Style-Type content=text/css
meta http-equiv=Content-Script-Type content=text/javascript
script type=text/javascript
var rows;
onload = function(){
var heavyArr=[]; var softArr=[]; var goodtosoftArr=[]; goodArr=[]; var
goodtofirmArr=[]; var firmArr=[];
rows = document.getElementById('mytab').getElementsByTagName('tr');
for (var i=1;irows.length;i++){
var cells = rows[i].getElementsByTagName('td');
heavyArr[heavyArr.length]=[Number(cells[0].firstChild.data),'h'];
softArr[softArr.length]=[Number(cells[1].firstChild.data),'s'];
goodtosoftArr[goodtosoftArr.length]=[Number(cells[2].firstChild.data),'gts']
;
goodArr[goodArr.length]=[Number(cells[3].firstChild.data),'g'];
goodtofirmArr[goodtofirmArr.length]=[Number(cells[4].firstChild.data),'gtf']
;
firmArr[firmArr.length]=[Number(cells[5].firstChild.data),'f'];
}
arrMax=['','',sortA(heavyArr),sortA(softArr),sortA(goodtosoftArr)],sortA(goo
dArr)], sortA(goodtofirmArr)], sortA(firmArr)];
}
function sortA(a){
var b= a.sort(function (a, b) {return a[0] == b[0] ? 0 : (a[0]  b[0] ? -1
: 1)});
return b[b.length-1][0];
}
function highl(q){
for(var i=1;irows.length;i++){
var val = Number(rows[i].getElementsByTagName('td')[q].firstChild.data);
rows[i].style.backgroundColor=(val==arrMax[q])?'#66ccff':'';
}
}
/script
/head
body
select id=sel onchange=highl(this.selectedIndex+1)
option -- select --/option
option value=heavy ratingheavy rating/option
option value=soft ratingsoft rating/option
option value=goodtosoft ratinggoodtosoft rating/option
option value=good ratinggood rating/option
option value=goodtofirm ratinggoodtofirm rating/option
option value=firm ratingfirm rating/option
/select
br
br

TABLE GOES HERE WITH ID=mytab
/html 


mail2web - Check your email from the web at
http://mail2web.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] DateTime problem

2005-11-08 Thread [EMAIL PROTECTED]
I have the following code that works on one Zope install and does not work
on another. I would like to be able to use the same code under both, but am
at a loss as to why there is a difference. I do not control the Zope
servers running this application. Any help would be appreciated:

On one server, the following code works fine: python: 
 myrecordset[0][0].strftime('%m/%d/%Y') 

But, when I move the page template containing that code to a different
server, the following error is generated:


Exception Type AttributeError 
Exception Value 'str' object has no attribute 'strftime' 

Traceback (innermost last): 

Module ZPublisher.Publish, line 98, in publish 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec 
Module Products.PageTemplates.PageTemplate, line 95, in pt_render
ZopePageTemplate at /Time/time_home.html 
Module TAL.TALInterpreter, line 200, in __call__ 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 703, in do_useMacro 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 726, in do_defineSlot 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 669, in do_condition 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 477, in do_setGlobal_tal 
Module Products.PageTemplates.TALES, line 220, in evaluate
URL: /Time/time_home.html
Line 60, Column 4
Expression: PythonExpr myrecordset[0] [0].strftime('%m/%d/%Y')
Names:
{'container': Folder instance at 8b00df8,
 'default': Products.PageTemplates.TALES.Default instance at 0x87bdefc,
 'here': Folder instance at 8b00df8,
 'loop': SafeMapping instance at 9f62368,
 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x87a4814,
 'nothing': None,
 'options': {'args': ()},
 'repeat': SafeMapping instance at 9f62368,
 'request': HTTPRequest,
URL=http://myserver.mydomain.org/Time/time_home.html,
 'root': Application instance at 8b4e870,
 'template': ZopePageTemplate at /Time/time_home.html,
 'traverse_subpath': [],
 'user': lford}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: myrecordset[0] [0].strftime('%m/%d/%Y') 
Module Python expression myrecordset[0] [0].strftime('%m/%d/%Y'), line 1,
in expression
AttributeError: 'str' object has no attribute 'strftime'


I can get it to run properly on this server by rewriting the code to:  
DateTime(sqlwkstart[0][0].strftime('%m/%d/%Y')

However, if I then take this corrected code and move it back to the first
server, I get the following error:
===
Exception Type TypeError 
Exception Value unsupported operand type(s) for / 

Traceback (innermost last): 

Module ZPublisher.Publish, line 98, in publish 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Shared.DC.Scripts.Bindings, line 252, in __call__ 
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec 
Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec 
Module Products.PageTemplates.PageTemplate, line 95, in pt_render
ZopePageTemplate at /Time/time_home.html 
Module TAL.TALInterpreter, line 200, in __call__ 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 703, in do_useMacro 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 726, in do_defineSlot 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 669, in do_condition 
Module TAL.TALInterpreter, line 244, in interpret 
Module TAL.TALInterpreter, line 477, in do_setGlobal_tal 
Module Products.PageTemplates.TALES, line 217, in evaluate
URL: /Time/time_home.html
Line 60, Column 4
Expression: PythonExpr DateTime(myrecordset[0][0]).strftime('%m/%d/%Y')
Names:
{'container': Folder instance at 9ffb358,
 'default': Products.PageTemplates.TALES.Default instance at 0x86e7bd4,
 'here': Folder instance at 116166a8,
 'loop': SafeMapping instance at d507258,
 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x86db91c,
 'nothing': None,
 'options': {'args': ()},
 'repeat': SafeMapping instance at d507258,
 'request': HTTPRequest,
URL=http://otherserver.otherdomain.org/Time/time_home.html,
 'root': Application instance at a0f6a40,
 'template': ZopePageTemplate at /Time/time_home.html,
 'traverse_subpath': [],
 'user': lford}
Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
__traceback_info__: DateTime(myrecordset[0][0]).strftime('%m/%d/%Y') 
Module Python expression
DateTime(myrecordset[0][0]).strftime('%m/%d/%Y'), line 2, in f 
Module DateTime.DateTime, line 684, in __init__ 
Module DateTime.DateTime, line 281, in _calcSD

[Zope] Zope Service Startup Failure

2005-11-08 Thread [EMAIL PROTECTED]
I am having problems with Zope running on my Windows Web Server.  This is
quite a recent development (last two days) - things normally run perfectly
well but lately the Zope service has stopped working.  I get the following
entry in the Zope event.log:

2005-11-08T20:51:13 INFO WinSignalHandler Caught signal SIGTERM
--
2005-11-08T20:51:13 INFO Z2 Shutting down fast
--
2005-11-08T20:51:13 INFO ZServer closing HTTP to new connections

The windows system event log shows:

The Zope instance at C:\Zope-Instance service terminated unexpectedly.  It
has done this 11 time(s).

The only way I can get Zope to run is to execute runzope.bat - this is not
very convenient as I have to start it manually and leave it running.

If anyone can shed any light on how I can get the windows service back up
and running I would be very grateful.

Other notes: it is trying to use port 8080 - nothing else is trying to use
this.
I have tried altering the port that it uses and it makes no difference.

Thanks in advance.
Graeme.
[EMAIL PROTECTED]


mail2web - Check your email from the web at
http://mail2web.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] It is a bug ? 404 error onfly

2005-05-25 Thread [EMAIL PROTECTED]

Hi !

My contributor have a problem.

His problem is very interesting, but it is in php.

I try to help, but I get same problem in Zope.

The problem is that:
He have a site, and he is paranoid. He is not use static pages to avoid 
penetrations.
So: in a dynamic page he is check the request. If parameters are wrong, 
he is want to set the resp. header status to 404.
(This is a file downloader method, and if the file is invalid, he want 
to answer 404 - page not found.)
He is not want to set location to a static 404 error page (because he is 
want to protect the orig. URL).


When he is send header with php to Mozilla, or Opera, these browsers are 
showing blank page.

IE is showing good page (404).

Then I try to write this example in Zope, to help it:
# test2.py #
request = container.REQUEST
resp=RESPONSE =  request.RESPONSE
resp.setStatus(404)

When I try this, I get same result in Zope (/test2).

So: what is the problem ?
And what is the solution ?

Thanx for help:
   ft
___
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] It is a bug ? 404 error onfly

2005-05-25 Thread [EMAIL PROTECTED]

hi !

The differents are caused by IE settings. See that:

https://bugzilla.mozilla.org/show_bug.cgi?id=295442

--- Additional Comments From [EMAIL PROTECTED]  2005-05-25 04:22 
PDT ---

I would guess the generated error page really is empty and IE just shows its
friendly error instead of the real (empty) error page. You can try to 
disable

this feature in IE to test this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807


   ft

[EMAIL PROTECTED] rta:


Hi !

My contributor have a problem.

His problem is very interesting, but it is in php.

I try to help, but I get same problem in Zope.

The problem is that:
He have a site, and he is paranoid. He is not use static pages to 
avoid penetrations.
So: in a dynamic page he is check the request. If parameters are 
wrong, he is want to set the resp. header status to 404.
(This is a file downloader method, and if the file is invalid, he want 
to answer 404 - page not found.)
He is not want to set location to a static 404 error page (because he 
is want to protect the orig. URL).


When he is send header with php to Mozilla, or Opera, these browsers 
are showing blank page.

IE is showing good page (404).

Then I try to write this example in Zope, to help it:
# test2.py #
request = container.REQUEST
resp=RESPONSE =  request.RESPONSE
resp.setStatus(404)

When I try this, I get same result in Zope (/test2).

So: what is the problem ?
And what is the solution ?

Thanx for help:
   ft
___
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 )


[Zope-dev] Email marketing

2004-06-25 Thread [EMAIL PROTECTED]



Email Marketing !

 We offer you e-mail addresses databases
for advertisement mailing; we sell databases
also carry out mailing and hosting for the
advertising projects. 

Products

World Email Lists . Their validity
and originality are verified. Details please go to our website

Country or area total emails and price

America   175 Million Email
Address 
Europe156 Million Email
Address 
Asia 168 Million
Email Address 
China(PRC)  80 Million Email Address

HongKong   3.25 Million Email
Address 
TaiWan2.25 Million
Email Address 
Japan27 Million
Email Address 
Australia  6 Million Email Address

Canda10 Million
Email Address 
Russia38 Million Email
Address 
England   12 Million Email
Address 
German   20 Million
Email Address 
France38 Million Email
Address 
India12 Million
Email Address 
other Country or Area  

-
 
 

 
 
Category Name total emails 

Apparel, Fashion, Textiles and Leather 4,654,565

Automobile  Transportation  
6,547,845 
Business Services
 
 6,366,344 
Chemicals 
 
3,445,565 
Computer  Telecommunications 
   654,655 
Construction  Real Estate  
3,443,544

Consumer Electronics   
 
1,333,443 
Energy, Minerals  Metals  
 6,765,683

Environment 
 
   656,533 
Food  Agriculture   
 
 1,235,354   
 

Gems  Jewellery   
 
  565,438 
Health  Beauty   
 
   804,654 
Home Supplies
 
   323,232 
Industrial Supplies   
 
415,668 
Office Supplies
 
  1,559,892 
Packaging  Paper  
 
  5,675,648 
Printing  Publishing   
 
6,563,445 
Security  Protection   
 
5,653,494 
Sports  Entertainment  
 
3,488,455 
Toys, Gifts and Handicrafts 
2,135,654

-

All of Country email lists + email sender
express +add url express + etrae express+Ebook
-



Send Your Ad to Millions 

5 million bulk email 
50 million bulk email 
100 million bulk email 
200 million bulk email 

Imagine emailing 500,000 recipients and 1
out of every 1000 orders your product, that's
500 new orders!
* We go all-out to make sure our customers
are completely satisfied 
* If any emails fail to make delivery, we
replace them free of charge
* 100% Spam free, rest assured you will not
be accused of spamming
* Almost all of our emails are sent to valid
email addresses
* No software required, we do all the mailing
from our own server
* Don't be fooled in signing up with similar
sites offering services that cannot compare
to ours
* Get the most bang for your buck with bulk
email advantage!
-



Details go to website


Thank you!

the silver star internet information company

copyright2004-2005 all reserved



remove please email: [EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Javascript variables Form element values and zope

2003-10-03 Thread [EMAIL PROTECTED]
Hallo All,

I have this little form and I would like to know how to persuade dtml or
python to access the javascript variables in the set_p function and the
element values in the form LOG.

I'll be thankful for any assistance.

htmlhead
script language=JAVASCRIPT
function set_p(a,b)
{
//
// call a zsql script mylookup which returns a single value
//
  document.p.value=dtml-call expr=mylookup(a,b)
//
//alternatively
//document.p.value=dtml-call
expr=mylookup(document.LOG.m.value,document.LOG.n.value)
//
}
/script
/headbody
form name=LOG
table
tr
tdinput type=text name=m value=/td
tdinput type=text name=n value=/td
tdinput type=text name=p value=/td
tdinput type=button  value=Update P
onclick=set_p(m.value,c.value)/td/tr/table
/form/body/html

Gavin


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] MTBrazil News #1

2001-12-15 Thread [EMAIL PROTECTED]
 
  Paul Pirrotta,
  Senior
  Vice-President Webster Bank
  

  
  
  
 
   

  Por 
  VanDyck
  Silveira 
  Economista 
  
   
Importar 
  para Exportar: 
  Dilema ou parte da soluo?
  Vivemos um momento crtico, porm 
  esperanoso, na histria econmica 
  brasileira contempornea. Pela primeira vez um 
  chefe de estado brasileiro declara abertamente uma poltica 
  de desenvolvimento que tem como seu pilar central a 
  insero do pas no comrcio 
  global. (...) Todavia, para exportar, o empresrio 
  tambm necessita de acesso desimpedido  
  matria-prima e bens de capital que muitas vezes 
  tm que ser importados, pois pode no haver 
  similares nacionais, ou estes, se existentes, podem 
  ser de qualidade incompatvel com a produo 
  de bens competitivos voltados ao consumidor global. 
  
  Leia mais...
  

  
  


  
  
Tiragem: 
8.793

Para receber esta Newsletter http://www.mttrust.com/Newsletter
Para cancelar http://www.mttrust.com/Newsletter

MTTrust Corporation 2001 - Contato: 11 3141-0875 


  
  
  
   
   
  
  
   
  
  
   
  
  
   
  
  
  

  
Para 
  receber ou cancelar esta Newsletter
  


  

  

 


Cancelar 
  

  

  
  


  

  

  
 
  
  




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


[Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]

hello all

i have a python product with an image as a property
now i display the image in the management screen, but when i change the 
image via the management interface the browser does no refresh of the image

is set the mod time like this:

self.doc_icon.lmt=time.time()
self.doc_icon.lmh=rfc1123_date(self.doc_icon.lmt)

doc_icon is a ImageFile

so the date changes but the browser doesn't update this

do i have to add something in the http header of the management page or so

please help -- bernd

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



Re: [Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]

Dieter Maurer wrote:

[EMAIL PROTECTED] writes:
  i have a python product with an image as a property
  now i display the image in the management screen, but when i change the 
  image via the management interface the browser does no refresh of the image
  
  is set the mod time like this:
  
  self.doc_icon.lmt=time.time()
  self.doc_icon.lmh=rfc1123_date(self.doc_icon.lmt)
  
  doc_icon is a ImageFile
  
  so the date changes but the browser doesn't update this
The  browser has the image happily in its cache.
You need a SHIFT + 


Dieter

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

thanks - but  isn't there another method - so that the user doesn't have 
to reload the page manualy everytime ?

- bernd


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



[Zope-dev] Ri:Zope-Dev digest, Vol 1 #990 - 15 msgs

2001-03-16 Thread [EMAIL PROTECTED]

Hello Juan

well, the idea behind me was to do something that anybody can use actually.if I 
crack the DateTime module for a quick and dirty, then nobody will benefit from it, and 
I will have to take care of it in future releases. I was however thinking on two 
possible solutions:

- creating a DateTime class preserving the actual interface while wrapping around 
mxDateTime
- pathing the actual one.

I will study mxDateTime and think about it.

Somebody would like to help me, by the way?

Regards
Stefano

 Message: 15
 Subject: Re: [Zope-dev] Playing with DateTime
 To: [EMAIL PROTECTED]
 Date: Fri, 16 Mar 2001 10:43:57 +0100 (MET)
 From: [EMAIL PROTECTED] (Juan David Ibáñez Palomar)



 Hello Stefano,

 I used mxDateTime about two years ago, when I worked with Bobo, the
 move to Zope brought lots of advantages, the only thing I missed was
 mxDateTime.

 The discussion about DateTime comes to the mailing lists between time
 to time, you can look what has already been said about it in the
 archives, for example:

   http://lists.zope.org/pipermail/zope/2000-May/108798.html
   http://lists.zope.org/pipermail/zope/2000-September/118269.html

 Yes, switching to mxDateTime would require a lot of work in Zope and
 also would break lots of products and web sites, while patching DateTime
 is a more quick(dirty) solution.

 IMHO there're no good arguments against reusing a so good piece of code,
 in the long term at least; mxDateTime is the standard in the python
 community, only zopers use something else; and it's free software: if
 the original developer does not support it anymore others can do it.

 But I understant that if you only want to fix something it's more
 quick to patch DateTime.


 best regards,
 jdavid



 --__--__--

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev

 (To receive general Zope announcements, see:
 http://lists.zope.org/mailman/listinfo/zope-announce

 For non-developer, user-level issues,
 [EMAIL PROTECTED], http://lists.zope.org/mailman/listinfo/zope )

 End of Zope-Dev Digest



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



[Zope-dev] Playing with DateTime

2001-03-15 Thread [EMAIL PROTECTED]

Hello

I am playing around with the DateTime module in order to adapt it to other formats 
than the American one. However, I would like not to start a work that someone is 
already doing or that is already done. I have found a little patch that solves 
temporarily the problem, but I would like to do something more definitive.

However, I need to be careful due to the large use that is done internally by Zope. To 
whom can I get in touch regarding this issue?

Best regards
Stefano Vedovelli


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



Re: [Zope-dev] Playing with DateTime

2001-03-15 Thread [EMAIL PROTECTED]

Ola Juan

I think that, while on one side is very comfortable to recycle others code, there 
should have been a very good reason for DC to develop that class. I had the impression 
that the class is heavily used in the internals of Zope, and probably the integration 
of an external module would mean a major redesign issue. Always in my opinion, in the 
long run automaintained code can be easier to leverage and adapt. In the end, if the 
original developer does not support the code anymore or change it in a way that is not 
possible to upgrade, DC will have major problems.

The idea of developing an internal class is, for me, a good point. However, I think 
that DC did not approached the international subject simply because, as far as I 
understood, Zope was build on the American market. While they should be terribly proud 
of the magnificent product thay have done, in future they will be facing more and more 
the problem of other countries using it.

This is why I am looking to fix the DateTime class starting from their code. This 
problem will occur also for the formatting of values, for instance. As far as I have 
seen, when you ask Zope to return a number formatted as currency, you get it in 
dollars, with the "." and "," used where central europeans put them the other way 
around.

I do not know if DC or somebody else is already approaching this issue, and I admit 
that I have looked around but I haven't found anything about this, but I am pretty 
sure that the european developers like me and you which are trying to find a RAD for 
the internet, will find Zope as one of the best products, and the spread of it will 
sooner or later raise more and more problems on this side.

I was asking this on the ml because I am considering proposing a project on this, but 
I wanted to be sure that this was not already been done somewhere else

Best regards
Stefano Vedovelli



Hello,

IMHO the long term solution would be to use the mxDateTime [1]
module instead of the DateTime module that currently uses Zope.


best regards,
jdavid


[1] http://www.lemburg.com/files/python/mxDateTime.html



 Hello

 I am playing around with the DateTime module in order to adapt it to other formats 
than the American one. However, I would like not to start a work that someone is 
already doing or that is already done. I have found a little patch that solves 
temporarily the problem, but I would like to do something more definitive.

 However, I need to be careful due to the large use that is done internally by Zope. 
To whom can I get in touch regarding this issue?

 Best regards
 Stefano Vedovelli


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





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



[Zope] CoreSessionTracking and noundo db

2001-01-30 Thread [EMAIL PROTECTED]

hi
in trying out the excellent CoreSessionTracking product, i encountered a 
little problem.  the doc reference a no-undo external db to house the data.  
i remember one such beast which were alpha (berkerly dbm(?)), but can't 
locate it at zope.org.

also, will there ever be a no undo db for use with zope?  since such product 
is a must to run zope in real world.
hints, urls welcome

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


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




Re: [Zope] noundo dbs

2001-01-30 Thread [EMAIL PROTECTED]

On Wednesday 31 January 2001 12:09, Chris McDonough wrote:
 And a third message...

thanks for the prompt replies.  to recap, i have
-Berkeley DB
-External Mount
-something that i'm not too sure of :)

as i see it, i can use External mount to mount berkeley Db.  that will then 
give me a nonundo, nonversioning db.. right?

if i use FileStorage with ExternalMount, it'll be just another ZODB.  i hope 
i'm right.

if i want to use it across ZEO Clients, i *must* use ZEO.ClientStorage.  
correct me if i'm wrong, please.

to test a simple setup, i tried FileStorage with External Mount.  and i 
encountered a little problem.  here's what i have
-ExternalMount
-External Method[1]

when i tried adding an ExternalMount, i got this[2] traceback.  help?

p/s - what about storing CoreSessionTracking data in RDB?
--
[1]
---ExtDB.py

import ZODB
from ZODB.FileStorage import FileStorage
 
def createDB():
return ZODB.DB(FileStorage('/home/kdie/Zope/var/ext.fs')) 

[2]
 PSTRONGNameError/STRONG/P
  
  Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
  File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/kdie/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/kdie/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_addExternalMount)
  File /home/kdie/Zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: manage_addExternalMount)
  File /home/kdie/Zope/lib/python/Products/ExternalMount/ExternalMount.py, 
line 112, in manage_addExternalMount
(Object: ApplicationDefaultPermissions)
  File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 279, in _test
(Object: A)
  File /home/kdie/Zope/lib/python/ZODB/Mount.py, line 246, in _getOrOpenObject
(Object: A)
NameError: mcc



http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

as you woke this morning, and open up your eyes, did you notice the tear 
stains lining your face were mine..


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




Re: [Zope] CacheManagers are cool :)

2001-01-29 Thread [EMAIL PROTECTED]



  Not exactly a real-life usage scenario, but it sounds impressive :)  Not
  sure I understand what the cache keys are for though... is there any more
  documentation forthcoming on this?

 so you can cache requests based on dynamic input.

 useful for authentication to present different cache pages to different
 users, and also to present common request dependent information from cache.

 as for real documentation, use the source luke

anybody tried expiring an object,? say after 300 secs, the cached object 
expires, get invalidated and a new cached object is created when somebody 
requested the page.
is there any simple way to expire a RAM Cache?

also, for those who tried caching.  what do you guys do?  cache the methods 
that make up the bigger method?  or just cache the bigger method?

e.g dtml method a is made from method b, c, d,...n
do you cache a, or selectively cache b and/or c, d, ...

confusedly, yours


 k

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

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Help me save me from myself...


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




[Zope] Cache manager in zope 2.3.0b1

2001-01-17 Thread [EMAIL PROTECTED]

From HelpSys for RAM CAche
"""
Finally, you can configure the list of REQUEST variables
that will be used in the cache key. This can be a simple
and effective way to distinguish requests from
authenticated versus anonymous users or those with
session cookies.
"""
so, if i access a particular DTML Method as such
http://myserver.com/mymethod?objId=xxx
can i use objId to distinguish between different objects?
i tried by setting objId as the cache key in my RAM Cache object.  however, 
nothing were cached.  even after accessing mymethod with different objId.

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


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




Re: [Zope] LOL (was:Postgresql Query.)

2001-01-17 Thread [EMAIL PROTECTED]

On Thursday 18 January 2001 07:45, Andrew Kenneth Milton wrote:
 +---[ ethan mindlace fremen ]--

 | --On Wednesday, January 17, 2001 04:33:25 PM +1000 Andrew Kenneth Milton
 |
 | [EMAIL PROTECTED] wrote:
 |  Normally, I would tell you to visit;
 | 
 |  http://www.zope.org/Documentation/
 | 
 |  but, some monkey has designed the interface w/o actually testing it,
 |  since there's no direct references to the online ZSQL Reference there
 |  any more, and the online dtml reference shoves you into dtml-var.
 |
 | Monkey fix! bannana?

 No banana for you! Bad Monkey! And stop breaing into the female monkey
 cages...

now, *this* should be in the Andy's quote ssite
LOL
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


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




Re: [Zope] High Performance Zope

2001-01-17 Thread [EMAIL PROTECTED]

On Thursday 18 January 2001 03:37, Vincent Stoessel wrote:
 Doh!
 I meant to say 200-300,000 pageviews per day.
 Thanks for all the responses so far.


we have about 600k page views daily, and we spread this accross three ZEO 
Clients.  response is fast, except when there's more than 150 simultaneous 
requests.  i think  my programming contributes to this problem.  i used too 
much objectItems, instead of using ZCatalog.  

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Help me save me from myself...


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




Re: [Zope] Zope 2.3.0 beta 1 comments

2001-01-17 Thread [EMAIL PROTECTED]

On Thursday 18 January 2001 05:00, Brian Lloyd wrote:


 These are actually browser preferences, not user preferences. 
can we have enable/disable table view toggle?  some of us work with slow dial 
up, and waiting for a table to be rendered, especially when there's a lot of 
objects, will take some time.  at least, without table, we can have 
incremental page rendering.  most of my users are not a patient lot :)
 
or is it a none issue?

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


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




[Zope] hiperdom

2001-01-17 Thread [EMAIL PROTECTED]

hello all
scuse my ignorance.  i have this[1] in a hiperdom instance (partial text from 
hiperdom howto).  but i got this[2] error when i clicked change.

i know it's me not understanding XML well enough.

pointers/help please
p/s - maybe, the default text in a newly created hiperdom instance should be 
something similar to what a new dtml method/document gives now?

-8-
[1] 
?xml version='1.0'?
htmlheadtitle hdom:text="title"title/title/head
body
h3 hdom:text="id"me h3/h3
/body/html

[2]

  /P
  PSTRONGDOMException/STRONG/P
  
  Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
  File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /tmp/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: hdom)
  File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /tmp/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_edit)
  File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_edit)
  File /home/kdie/Zope/lib/python/Products/HiperDom/HiperDomTemplate.py, line 
177, in manage_edit
(Object: hdom)
  File /home/kdie/Zope/lib/python/Products/HiperDom/HiperDomTemplate.py, line 
322, in _updateDom
(Object: hdom)
  File /home/kdie/Zope/lib/python/Products/HiperDom/DomWrapper.py, line 168, 
in todom
  File /usr/lib/python1.5/site-packages/xml/dom/ext/reader/PyExpat.py, line 
166, in startElement
  File /usr/lib/python1.5/site-packages/xml/dom/Document.py, line 215, in 
createAttributeNS
(Object: Node)
DOMException: DOM Error Code 14: Namespace operation results in malformed or 
invalid name or name declaration.

--

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Help me save me from myself...


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




[Zope] zope2.3.0b1 and userfolders

2001-01-16 Thread [EMAIL PROTECTED]

hi all

it seems that most 3rd party userfolders that's available won't work with 
zope-2.3.0b1.  i've tried UserDB and LoginManager. 
i guess LoginManager will be updated, since it is currently maintained.  i 
don't know enough python to look at UserDB.  any kind hearts out there 
willing to give it a peek?

anyway, where can i find the changes to the security policies from zope 2.2.x 
to zope 2.3.x ?

thanks
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Am I Evil?


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




Re: [Zope] zope2.3.0b1 and userfolders

2001-01-16 Thread [EMAIL PROTECTED]

On Wednesday 17 January 2001 14:42, Chris McDonough wrote:
 What's the error you get with UserDB?  And for that matter, LoginManager?

*sheepish grin*
i think it's my mistake.  you can knock my head off.
it's this thing about init user and emergency user
when i installed login manager, it complained of not having the file 
"access".  i created one by copying inituser.  that's why i got emergency 
user/super can;t own.  

userdb works ok now.  not sure what i did.  maybe i restarted zope.  

sorry for the false alarm.
at least i know what inituser and emergency users are now :)

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


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




[Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]

hello all
i'm about to jump into uncharted waters (well, for me at least)
i have a news site, and would like to use ZCatalog to present, index, etc 
news.  all's well and good.  
i have a functioning ZClass, that is catalog aware, and searchable.

what i'd like to know is 
-the stability of ZCatalog as of 2.2.5.  
-what's in store in 2.3
-upgradability from 2.2.5 to 2.3
-heartstopping bugs that i may have not encountered yet
-performance speed/response.

with my limited tests[1], i got ok response time, compared to what i have now 
where i iterate through objectItems/Values.  but when i cache with 
CachePool[2], response is better.  correct me if i'm wrong.

i'd like to not go thru what i'm going thru now.

but will this hold water?  especially since i expect more requests.

thanks
---8
[1]
/usr/sbin/ab -n 300 -c 200 myurl
This is ApacheBench, Version 1.3c $Revision: 1.38 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:Apache/1.3.9
Server Hostname:203.106.2.200
Server Port:80

Document Path:  
myurl
Document Length:9644 bytes

Concurrency Level:  200
Time taken for tests:   33.586 seconds
Complete requests:  300
Failed requests:0
Total transferred:  3030864 bytes
HTML transferred:   2916288 bytes
Requests per second:8.93
Transfer rate:  90.24 kb/s received

Connnection Times (ms)
  min   avg   max
Connect:145   162
Processing:   736 14748 25346
Total:737 14793 25508

[2]
/usr/sbin/ab -n 300 -c 200 myotherurl
This is ApacheBench, Version 1.3c $Revision: 1.38 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:Apache/1.3.9
Server Hostname:203.106.2.200
Server Port:80

Document Path:  
myotherurl
Document Length:9524 bytes

Concurrency Level:  200
Time taken for tests:   7.646 seconds
Complete requests:  300
Failed requests:0
Total transferred:  2949432 bytes
HTML transferred:   2862705 bytes
Requests per second:39.24
Transfer rate:  385.75 kb/s received

Connnection Times (ms)
  min   avg   max
Connect:14483
Processing:   320  3291  4800
Total:321  3335  4883

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


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




Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]

On Tuesday 16 January 2001 11:05, Chris McDonough wrote:
 If I were you, I'd wait for 2.3 final.  There are some significant changes
 that need to make it into 2.3 yet as far as ZCatalog goes, including some
 textindex bugfixes and merging of textindexes on update.  2.2.5 has some
 Catalog bugfixes, but more bugs have been discovered and squashed since
 then.

ok
this puts me in a tight spot. any 2.3 ETA?  i don't know how long i can hold 
this.  will 2.3 be backward compatible to 2.2.x?  if that's the case, it 
should take care of the upgrade path.  and i can try and live with 2.2.5 and 
its bugs until 2.3 arrives.  

hoping that upgrading 2.2.x to 2.3.x to be as easy as upgrading from 2.1.x to 
2.2.x.

thanks 
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


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




Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]

On Tuesday 16 January 2001 12:31, Chris McDonough wrote:
 2.3 final should be out by the end of the month.  The details are at
 http://dev.zope.org/Resources/zope_230_plan.html

 Upgrading from 2.2.X to 2.3 should require minimal effort.

ya know, this really shows why digicool really fits you guys.  you guys 
really are cool.

thanks 
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


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




Re: [Zope] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

On Wednesday 10 January 2001 16:56, Phil Harris wrote:
 Bak,

 I can't help you fix it but I can tell you what the problem is, the file is
 too big for Zope to cope with in one transaction so it starts a
 sub-transaction and there is a bug in the sub-transactioning engine.

 The same thing happens with a normal 'File' type as well.

 You should probably check the collector to see if this has been fixed or
 even reported.

 Phil

to say the file is big is an understatement.  
how can adding a news file be too big for zope to cope?  unless the default 
XML Document is huge. i'll peek at the collector.  thanks phil


-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


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




Re: [Zope] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

On Wednesday 10 January 2001 17:55, Chris McDonough wrote:
 I've never seen that failure mode.. It'd be nice to get a reproducible bug
 out of it.


this is wierd.  with new install of zope2.16, zope2.20, zope2.2.5 - 
XMLDocunebt add works great.  no error.

but with zope2.2.5 (with all other products used[1] added), i got the 
original error.
i use a lot of SQL stuff, but not where i tried to add XML document

steps taken-
-create new folder
-add XML Document
-the addForm appeared.  insert id
-when i clicked add/add and edit, i got the commit error.

if i were to follow your advice, where should i put the dummy commit_sub?
[1] product list follows
-8
AddressBookNavigator   Refresh   
XMLDocument  ZPyGreSQLDA
BTreeFolder Feedback.tar.gz   NewsHostRenderable
XMLWidgets   ZRTChat
BookmarkFolder  GUM   NewsSyndicate   SQLSession
ZCalendarZSQLMethods
Boring  HiperDom  Notes   SimpleGb  
ZCallableZWiki
CVS Hotfix_2000-10-02 OFSPSquishdot 
ZCatalog ZnolkSQLWizard
CachePool   LocalFS   POPMailBase TinyTable 
ZCounter ZopeTutorial
CalendarLoginManager  PTKBase TodoFolder
ZDBase   __init__.py
CalendarFolder  MIMETools PTKDemo Transform.tar.gz  
ZDConfera__init__.pyc
DemoPortal  MailHost  PersonalFolder  TutorialPoll  
ZFormulator  _pgmodule.so
EventFolder MembershipPollTutorialPollExamples  
ZGadflyDAmkproduct
ExternalMethod  Minimal   PythonMethodUserDb
ZGb  mkproduct-data
FSDump  MountedClientStorage  RFC822Message   Wizard
ZMirror
FeedbackMountedFileStorageRSSChannel  Workspace 
ZPoPyDA
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!


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




[Zope] xmldocument

2001-01-09 Thread [EMAIL PROTECTED]

happy new year all
i can't get xmldocument to work with zope2.2x  i can install the product ok, 
but can;t add XML Document.  

i got attribute error.  any insight into the error is appreciated.

can anybody suggest ways of rendering xml documents in zope?

thanks

--8
PSTRONGAttributeError/STRONG/P
  
  Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
  File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, 
in publish
  File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in 
commit
  File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit
AttributeError: commit_sub

--

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

We don't need no, no, no, no, no parental guidance here!


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




[Zope] Name Errors: DTML Document - External Python Document - DTML Document - ZSQL cument - ZSQL

2000-12-21 Thread Burwell, Becky [EMAIL PROTECTED]

I have an SQL database that I want to populate using an external
Python method (because I have file I/O code).

So I have something like this:

DTML Document named import_file which has:
dtml-call "parsefile()"


parsefile is my external Python method.

def parsefile (self):
# blah, blah
self.record_info (arg1=value1,arg2=value2)

record_info is a DTML document
dtml-unless "LookupPrinter(printer=printer)"
{ random code here }

And LookupPrinter is a ZSQL Method

So I have:

   DTML Document - External Python Document - DTML Document - ZSQL 
Document

Is this a sane thing to have my External Python Document calling back 
to DTML Documents? 

I keep getting name error on the LookupPrinter.

I tried putting:

 dtml-unless "LookupPrinter(_.None, _,printer=printer)"

and I still get the name error.

In essence I am trying to have code that will parse a file and then 
record the results in my database.

Thanks.

Becky.



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




[Zope] wierd zope behaviour - follow up

2000-12-21 Thread [EMAIL PROTECTED]

me again..
the "only one zope process running" is here again.  this time, i did what 
dieter suggested, and looked at the debug info.  attached below is some info. 
 my setup, again:
zope 2.2.4 , ZEO 0.4.1, RH 6.2, apache-1.3.12, mod_pcgi2

i think there should be a manage debug howto.  i can only view, but can't 
really deduce what is what.  mebbe i'm just too dense.  if anybody could 
point to docs, explain a bit, etc, i would be indebted.   and, yes, i've 
read/reread HelpSys

thanks, and merry xmas and a happy new year.  

-8--
top output
11686 nobody 0   0 58588  57M  1724 S   0  6.9 11.3  30:01 python
11687 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   0:05 python
11688 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   4:16 python
11689 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   3:18 python
11690 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   3:21 python
11691 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   3:16 python
11692 nobody14   0 58588  57M  1724 R   0 92.9 11.3 715:06 python
11693 nobody 0   0 58588  57M  1724 S   0  0.0 11.3   3:34 python  

these are from manage debug



 Zope version: Zope 2.2.4 (source release, python 1.5.2, linux2) 
 Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 
19990314/Linux (egcs- 
 System Platform: linux-i386 
 Process ID: 11686 (5126) 
 Running for: 23 hours 46 min 54 sec 
 Top Refcounts:
DocumentTemplate.DT_Util.Eval: 9362
Products.ZCatalog.Catalog.Catalog: 3463
..other refcounts snipped

..here are the connection open time - there are 7 connections open, and on 5 
of them it was open about sometimes back, as shown below.  the only new open 
connection is the debug (mine).  none of the 5 requests are RDB related.  all 
are normal ZODB calls.

Thu Dec 21   10:07:25 2000 (84065.60s)
Thu Dec 21 10:07:23 2000 (84066.75s)

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

We don't need no, no, no, no, no parental guidance here!


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




[Zope] weired zope behaviour

2000-12-19 Thread [EMAIL PROTECTED]

hi all

i have a zope site that uses ZEO, runs behind apache and on RH6.x

what puzzles me is that only *one* zserver thread is alive after some time 
and it consumes most of the processors cycle. 
the top snapshots are at the bottom of this message

anybody got any ideas why this happened?  i think this may have contributed 
to the slow response to the site.  if i restart zope, everything works 
dandy... until some time when only one thread is used, instead of 4

what are others seeing?  is it my codes?
thanks

8-
ZC1

 4515 nobody 0   0 99.2M  99M  1592 S   0  4.1  2.5 183:37 python
 4537 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5   0:07 python
 4538 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5 724:16 python
 4539 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5 751:47 python
 4540 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5 735:11 python
 4541 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5 749:27 python
 4542 nobody 0   0 99.2M  99M  1592 S   0  0.0  2.5 741:45 python
 4543 nobody13   0 99.2M  99M  1592 R   0 94.0  2.5  1734m python  

ZC2 
 4348 nobody 0   0  102M 102M  1828  2 S 2.1 13.5 214:33 python
 4350 nobody 0   0  102M 102M  1828  2 S 0.0 13.5   0:10 python
 4351 nobody 0   0  102M 102M  1828  2 S 0.0 13.5 398:08 python
 4352 nobody 0   0  102M 102M  1828  2 S 0.0 13.5 407:02 python
 4353 nobody 0   0  102M 102M  1828  3 S 0.0 13.5 406:32 python
 4354 nobody 0   0  102M 102M  1828  3 S 0.0 13.5 392:10 python
 4355 nobody14   0  102M 102M  1828  2 R95.5 13.5  4712m python
 4356 nobody 0   0  102M 102M  1828  2 S 0.0 13.5 388:41 python

Z3
18567 nobody 0   0 73652  71M  1724 S   0  4.4 14.2 273:56 python
18571 nobody 0   0 73652  71M  1724 S   0  0.0 14.2   0:44 python
18572 nobody 0   0 73652  71M  1724 S   0  0.0 14.2  42:03 python
18573 nobody 0   0 73652  71M  1724 S   0  0.0 14.2  63:13 python
18574 nobody19   0 73652  71M  1724 R   0 91.2 14.2  6144m python
18575 nobody 0   0 73652  71M  1724 S   0  0.0 14.2  47:54 python
18576 nobody 0   0 73652  71M  1724 S   0  0.0 14.2  57:10 python
18577 nobody 0   0 73652  71M  1724 S   0  0.0 14.2  57:13 python 
 
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

if you SMELLL ... what the Rock is cookin


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




[Zope] z2.py -i

2000-12-11 Thread [EMAIL PROTECTED]

hello all
can anybody shed some light on the "-i" option in z2.py.  according to the 
help 

-i n
 
Set the interpreter check interval. This integer value
determines how often the interpreter checks for periodic things
such as thread switches and signal handlers. The Zope default
is 120, but you may want to experiment with other values that
may increase performance in your particular environment.

can anybody explain in plain english please.  if i decrease the number, 
what'll happen?  if i increase it?  what the heck is it anyway?

dummy, that's me..

tia
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!



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




[Zope] apache and zserver interaction

2000-12-11 Thread [EMAIL PROTECTED]

hi all

during peak period/or simulated with ab -n200 -c 100 http://mysite/
i did this:

-8---
 telnet mysite 80
Trying mysite...
Connected to mysite.
Escape character is '^]'.  
GET / HTTP/1.1
host:mysite


... response
-8
what puzzled me is that the response time between typing in host:mysite \n\n 
and getting the response from the server is *very* high.
what may cause the latency?  is it between apache and zope, or zope itself?  
or does it depend on what the rest of mysite is doing?   i'm at a lost here.  
i want to speed up response time, but not sure which knobs to turn.  apache's 
or ZServer's.  i've increased the keepalive to 30s in apache.  will 
increasing the zserver thread number help?  i also changed zserver -i option 
to 60, but not that much different result.

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

as you woke this morning, and open up your eyes, did you notice the tear 
stains lining your face were mine..


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




Re: [Zope] New version of book uploaded

2000-12-08 Thread [EMAIL PROTECTED]

On Friday 08 December 2000 09:07, Michel Pelletier wrote:
 Greetings,

 Read this carefully, you may end up with a free, signed copy of the Zope
 book.

hee's a shot, don't know whether it's been pointed out or not
---8--

 Python MethodsYou can use Python, a scripting language, to script Zope 
objects and perform other tasks. Python methods give you general purpose 
programming facilities within Zope. Perl MethodsYou can use Perl, a powerful 
text processing language, to script Zope objects and access Perl libraries. 
Perl Methods offer similar benefits as Python Methods, but may be more 
appealing for folks who know Perl but not Python, or who want to use Perl 
libraries for which there are no Python equivalent
8-

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!


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




Re: [Zope] New version of book uploaded

2000-12-08 Thread [EMAIL PROTECTED]

On Friday 08 December 2000 09:07, Michel Pelletier wrote:
 Greetings,

 Read this carefully, you may end up with a free, signed copy of the Zope
 book.


as ypu said, this whole chapter still uses python methods.  not sure whther 
it's been pointed out or not.  sent earlier without the URL.  here it is 
again.  do i qualify?:")
http://www.zope.org/Members/michel/ZB/ScriptingZope.html
---8---
 Python MethodsYou can use Python, a scripting language, to script Zope 
objects and perform other tasks. Python methods give you general purpose 
programming facilities within Zope. Perl MethodsYou can use Perl, a powerful 
text processing language, to script Zope objects and access Perl libraries. 
Perl Methods offer similar benefits as Python Methods, but may b
---8-

and ..
8
 Zope methods are called from the web or from other methods. Almost any type 
of method can call any other type of method. You can call a Python Method 
from a DTML Method, or a built-in method from a Perl Method
--8-

there's more.. should i oint all occurrences of python method?


http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


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




Re: [Zope] New version of book uploaded

2000-12-08 Thread [EMAIL PROTECTED]

On Friday 08 December 2000 17:35, you wrote:
 On Fri, 8 Dec 2000, Bak@kedai wrote:
  On Friday 08 December 2000 09:07, Michel Pelletier wrote:
   Greetings,
  
   Read this carefully, you may end up with a free, signed copy of the
   Zope book.
 
  as ypu said, this whole chapter still uses python methods.

 Actually, the copy of the chapter in your browser cache still uses
 Python Methods.  The copy on the website does not.  All of these you've
 pointed out are old news...

 Sorry!

bugger!  kill the cache :)

 -Michel



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

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


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




Re: [Zope] New version of book uploaded

2000-12-08 Thread [EMAIL PROTECTED]

On Friday 08 December 2000 17:35, Michel Pelletier wrote:
 On Fri, 8 Dec 2000, Bak@kedai wrote:
  On Friday 08 December 2000 09:07, Michel Pelletier wrote:
   Greetings,
  
   Read this carefully, you may end up with a free, signed copy of the
   Zope book.
 
  as ypu said, this whole chapter still uses python methods.

 Actually, the copy of the chapter in your browser cache still uses
 Python Methods.  The copy on the website does not.  All of these you've
 pointed out are old news...

 Sorry!

if konquorer refreshes right, have a look see 
http://www.zope.org/Members/michel/ZB/ScriptingZope.html

the graphics used for example.  (pleeze make this one count!)
--8---
Python Method (Internal) at/hello
--8---

does it count? :)

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

as you woke this morning, and open up your eyes, did you notice the tear 
stains lining your face were mine..


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




Re: [Zope] Cut/copy/paste problems

2000-12-06 Thread [EMAIL PROTECTED]

On Wednesday 06 December 2000 19:08, Oleg Broytmann wrote:
 Hello!

For a long while I have problems with cut/copy/paste in Zope management
 interface.
I run Zope behind Apache with mod_pcgi2.

I did some quick experiments. I connected directly to Zope (port 8080).
 Cut/copy/paste worked flawlessly. Hence the problem is not in the browser
 nor in the proxy nor in Zope. Perhaps the problem is in mod_pcgi2 or in
 the Apache or in my specific version of Russian Apache.

I switched to Zope.cgi. Copy/paste worked, but cut stopped working.
 Oops! First sign of problem. May be this is a problem with PCGI?
With mod_pcgi2 copy/paste almost always do not work.

To help me to resolve the problem I want to ask the helpful community
 provide me some information. Of those who run Zope behind Apache please
 tell me:

 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi)
 

i've tried proxypass, fcgi, and modpci2.  and i stuck with mod_pcgi2, since 
this is the option with the least amount of problems/failure.

2) any problem?
w fcgi, i have connection failed errors.  with proxy pass, zope 
intermittently hangs, causing apache to reach the max client parameter set.

i connect to zserver for all my management/development, so i may not see 
cut/copy/paste problem.  but i did give it a try with mod_pcgi2 and 
apache1.3.9, and i can cut/copy/paste.

hth


Thank you in advance.

 Oleg.
 
  Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.


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

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread [EMAIL PROTECTED]

On Wednesday 29 November 2000 08:33, Jonathan Cheyne wrote:
 Hi Deiter

  Thus, install "ZDbase" or determine, why it can not import it.

 Already installed in 2.2.0 before upgrade. I have perused the output on
 the console but its a bit beyond me.

cannot import name ZDiscussions
 
  You have ZDiscussion installed?

 Already from before. Reinstalled as well no joy. I also tried a new
 install of 2.2.4 not an upgrade and installed all my tar ball products.
 things work until i copy in my data.fs then barf.

i think this has manifested itself since zope 2.2.2bx.  make sure to add an 
addtional ',' in ZDBase/ZDiscussion.py __ac_permissions__

-8---
  __ac_permissions__ = (
('Manage properties', ('manage_addProperty',
   'manage_editProperties',
   'manage_delProperties',
   'manage_changeProperties',)),
)^
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


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




Re: [Zope] Zope with Microsoft Access

2000-11-22 Thread [EMAIL PROTECTED]

You may not be entering UpdateHours.

Try dtml-var "0/0" just before the call to UpdateHours.
Or some other obvious way to know if your entering it.

Here's how I coded the same kind of thing.
Although I'm reading the Zope book right now to see how I should have done
it.
The book is good and I might just learn a better solution than 0/0 :)

--- Part of addContact
form action="insertNewContactForm" method="get"
table
trtdName:/tdtdinput type="text" name="name" /td/tr
trtdTitle:/tdtdinput type="text" name="title"/td/tr
trtdPhone:/tdtdinput type="text" name="phone"/td/tr
/table
tabletr
tdinput type="submit" name="cmd" value="Insert"/td
tdinput type="submit" name="cmd" value="Update"/td
tdinput type="submit" name="cmd" value="Delete"/td
tdinput type="submit" name="cmd" value="Clear"/td
/tr/table
/form

---insertNewContactForm
dtml-if expr="_.len(name)  0"
 dtml-if expr="cmd=='Insert'"
   dtml-var insertNewContact
 dtml-elif expr="cmd=='Delete'"
  dtml-call deleteWhere
 dtml-elif expr="cmd=='Update'"
  dtml-call updateWhere
 dtml-elif expr="cmd=='Clear'"
 /dtml-if
/dtml-if
dtml-var "RESPONSE.redirect('addContact')"

--Darrell


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




Re: [Zope] Zope with Microsoft Access

2000-11-22 Thread [EMAIL PROTECTED]

From: "Mike Kelland" [EMAIL PROTECTED]
 What does dtml-var "0/0" actually do?  Looks like all it would do is
 divide by zero which *has* to be some kind of error.  

Yelp, that's exactly what it does.
My goal was to prove one way or another that a bit of code was executed.
Divide by zero is one way to do that.

--Darrell


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




[Zope] Form variables with same name as folder names

2000-11-13 Thread Burwell, Becky [EMAIL PROTECTED]

Hi. I am new to using Zope and just got stuck on the following problem. I am trying to 
use forms with an SQL database.

I have a form with checkboxes and I use variables like FOO to capture the value. For 
example:
input type="checkbox" name="FOO" value="1"

The form has a post with the action to call a DTML document. In my DTML document I call
a Z SQL Method called InsertMethod with REQUEST as the argument, for example  
InsertMethod(REQUEST).

My Z SQL Method InsertMethod has arguments including
FOO=""

And then in the body of the Z SQL method I have:

dtml-if FOO
   {code to insert into a database table}


This working UNTIL I created a Folder named FOO. Then the value of FOO in the Z SQL 
method seemed to be the FOO folder and not FOO from REQUEST.  My workaround was to 
call the variable FOOCHECKBOX.

Two questions:

1) the ZSQL manual, 
http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.1.4.4.html, says that the 
first lookup should be variables in HTTP_REQUEST. So why is FOO referring to my folder 
FOO?

2) is there some way I could have referred to the variable FOO in my Z SQL method 
without resorting to renaming the variable in my form?

Thanks!

*becky*

_______
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Form variables with same name as folder names

2000-11-13 Thread Burwell, Becky [EMAIL PROTECTED]

On Tue, 14 Nov 2000, "Burwell, Becky wrote:

 This working UNTIL I created a Folder named FOO. Then the 
value of FOO in
 the Z SQL method seemed to be the FOO folder and not FOO 
from REQUEST.  My
 workaround was to call the variable FOOCHECKBOX.


 2) is there some way I could have referred to the variable 
FOO in my Z SQL
 method without resorting to renaming the variable in my form?


A sneaky problem indeed, and once again, one caused by "convenient" 
shortcuts. (o8

The simple answer:  use REQUEST.form['FOO']  to refer to the 
form variable.

I just did an experiment and if I do the following my SQL Method:
   dtml-if REQUEST.form['FOO']

this is never true.

If I do:
dtml-if "REQUEST.form['FOO']" or dtml-if "REQUEST.form['FOO]=='1'"

I get name errors with REQUEST being unknown.

The REQUEST.form thing works in the DTML document that calls the SQL method but not
in the SQL method itself.

*becky*

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




[Zope] Best way to handle SQL update with variable number of fields?

2000-09-10 Thread [EMAIL PROTECTED]

Hello,

I'm creating a number of ZSQL methods to insert, update and delete 
records from several Oracle tables. Everything is working fine with 
the insert forms (creating new records) and the delete (of course). 
However, the best way to do the  * update * without locking the user 
into a *very* rigid format is eluding me..

The problem - I would like to populate the form with the existing 
values and then allow the user to change the ones they want to. Some 
of the fields in the database are empty and it will always be that 
way. The length of the update statement will change.

  Nomatter how I do it, I am having problems with the commas.  What is 
the best way to build the necessary logic into the form? Is there a 
sample in a product or a How-to somewhere that I can look at?

I am assuming I need to create a list externally in a method and use 
that to determine the comma placement. Is that the "correct" 
direction? Or is there a better way..



Thank you,

Chris Beaumont
[EMAIL PROTECTED]

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




Re: [Zope] [Ann] Another Zope Book

2000-08-18 Thread [EMAIL PROTECTED]

I'm using ZODB and ZEO seperate from Zope, no problem.

--Darrell

- Original Message - 
From: "Dieter Maurer" [EMAIL PROTECTED]

 I think Andrew completed the extraction of the ZODB.
 This means, Zope applications can use it for persistency.
 You, immediately, gain ZCatalog features, too.
 



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




[Zope] Import broken by namespace conflict - fragile!

2000-08-14 Thread Jason CUNLIFFE [EMAIL PROTECTED]

Hello

This is a repost of a serious message I posted on friday.
[The threaded version of this list is corrupted - my message content has
been automatically replaced by another person's message, athough strangely,
the gzip archive is ok.]


Please can someone help us understand how to avoid DTML method names
conflicting with other zope objects with same name.

For example using Zope export/import during recent site development to
transfer work from local machines to the linux server broke sections of our
site in a manner which was very hard to find. The reason we have finally
traced to namespace conflict.

We imported code which included calls to a local zope object named 'swf' for
simple substitution. But suddenly our code did not work. It turned out that
another object identically named 'swf'  was an already existing 'folder'
..!!

This is a very disturbing discovery, becuase it implies that one might have
anywhere at anytime hidden or visible namespace conflicts emerging and
vanishing with no control. We had thought that dtml-with
something/dtml-with would avoid this. But it does not and may even cause
it! It also implies that makes development of Zope sites across various
machines very hit-or-miss

Please help..

Exact code dump follows...

1. I have an original DTML template called 'objembedswf' in a folder named
'Flash4'

OBJECT ID='login' CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-44455354'

CODEBASE='http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0
,0'
WIDTH=dtml-var width HEIGHT=dtml-var height
  PARAM NAME='Movie' VALUE='dtml-var swf'
  PARAM NAME='Play' VALUE='false'
  PARAM NAME='Quality' VALUE='best'
  PARAM NAME='swLiveConnect' VALUE='true'
  PARAM NAME='menu' VALUE='false'
  EMBED NAME='login' mayscript='mayscript' SRC='dtml-var swf'
swLiveConnect='true'
   WIDTH='100%' HEIGHT='100%' salign='t' quality='best' play='false'
menu='false'
   TYPE='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash'
  /EMBED
/OBJECT


2. Below this my DTML file includes calls to this template like this:

dtml-with Flash4
dtml-call "REQUEST.set('swf','login.swf')"
dtml-call "REQUEST.set('width','100%')"
dtml-call "REQUEST.set('height','100%')"
dtml-var objembedswf
/dtml-with


3. Here is the result of substitution returned in browser

OBJECT ID='login' CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-44455354'

CODEBASE='http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0
,0'
WIDTH=100% HEIGHT=100%
  PARAM NAME='Movie' VALUE='Folder instance at 8557b00'
  PARAM NAME='Play' VALUE='false'
  PARAM NAME='Quality' VALUE='best'
  PARAM NAME='swLiveConnect' VALUE='true'
  PARAM NAME='menu' VALUE='false'
  EMBED NAME='login' mayscript='mayscript' SRC='Folder instance at
8557b00' swLiveConnect='true'
   WIDTH='100%' HEIGHT='100%' salign='t' quality='best' play='false'
menu='false'
   TYPE='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash'
  /EMBED
/OBJECT

I draw you attention to the fact that dtml-var swf was supposed to be
subsituted with 'login.swf',  but instead became Folder instance at
8557b00
..ouch..


4. The reason appears to be that there is a namespace conflict elsewhere in
my Zope tree. As it turns out, we have a folder right under / called 'swf'.
In fact it could be many places and still cause a conflict.

This 'bug/feature' is the same under Zope 2.1.6, and Zope 2.2.0 in Win98se
and LinuxRedhat.
Is it something about dtml-with or perhaps our use of dtml-call
"REQUEST.set which creates this unpredictable and confusing effect?
Is this is a bug? As it stands it means is is very hard to have people
working on separate sections of a Zope site because at any time they might
be causing namespace collisions like this. In our case the effect was
obvious - our swf files immedaitely woudl not display. But other voodoo
could easily occur which migh not appear for some time.

It provokes me to ask simply what is the search path priority of object
acquistion in zope and how do you control it safely?

Thank you
- Jason Cunliffe




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




Re: [Zope] Howto engineer a scientific paper system

2000-07-03 Thread [EMAIL PROTECTED]

Thanks again, I like lyx now. Using latex with lyx on top is very
comfortable. 

I found a pyhton based bibliographic database handler named
pybliographer (http://www.gnome.org/pybliographer). It has a
GUI and inserts citation directly into lyx.  (The Latex2HTML
converter - on a first try - seems to ignore the inserted BibTex
reference, though.)

Christian


Working with Lyx is actually really nice, I appreciate how to get 

(Referring to Pavlos Christoforou on Don, 29 Jun 2000)
 On Thu, 29 Jun 2000, [EMAIL PROTECTED] wrote:
 
  Thank you for the comments and links for latex and docbook.
  
  Going the latex path seems to me worthwhile - but on another day 
  ;-) ,  I have already done some setup in zope that I would like to
  build on.  What I did not find about LaTeX was a screenshot (isn't it
 
 Having used latex for a long time I would like to point out that if you
 are planing to to write many papers for conferences/publications Latex has
 some very helpful tools. For one many scientific journals provide Latex
 style files so you don't need to worry about formating. Also (and IMO the
 most important) are the pain in the ... bib contents. There are very nice
 bib databases for Latex and latex (or bibtex) can produce bibliography
 contents in the formats required by most journals. Check also Lynx which
 is a minimal (last i checked) wysiwig environment for Latex.
 
 Pavlos 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] PCGI Error: (102) failure during connect to ZServer

2000-07-02 Thread [EMAIL PROTECTED]

Running ./start seems to initiate pcgi_wrapper. Then pcgi handles the
web request perfectly again . 

This was not needed in Zope 1.6, I might be mistaken, though.

 
  This is with Zope-2.2.0b3-src.tgz
  
  The pcgi wrapper reports ...is unable to connect to the ZServer
  background process via Unix socket .../var/pcgi.soc
  
  I am trying to install this on a remote host, this error came up
  locally too, though.
  
  I followed glndspud's howto on 3rdparty host setup. With a 2.1.6
  release I was able to get zope running. However, with this setup I
  was not able to login through manage, the authorization did not work.
  So my reasoning, an upgrade should make this error vanish. Not so,
  until now. ;-(
  
  Christian
 
 
Christian

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




[Zope] PCGI Error: (102) failure during connect to ZServer

2000-06-30 Thread [EMAIL PROTECTED]

This is with Zope-2.2.0b3-src.tgz

The pcgi wrapper reports ...is unable to connect to the ZServer
background process via Unix socket .../var/pcgi.soc

I am trying to install this on a remote host, this error came up
locally too, though.

I followed glndspud's howto on 3rdparty host setup. With a 2.1.6
release I was able to get zope running. However, with this setup I
was not able to login through manage, the authorization did not work.
So my reasoning, an upgrade should make this error vanish. Not so,
until now. ;-(

Christian

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




Re: [Zope] Howto engineer a scientific paper system

2000-06-29 Thread [EMAIL PROTECTED]

Thank you for the comments and links for latex and docbook.

Going the latex path seems to me worthwhile - but on another day 
;-) ,  I have already done some setup in zope that I would like to
build on.  What I did not find about LaTeX was a screenshot (isn't it
a wysiwg enviroment on top of TeX marked-up text) and a content link
to zope - this might be done, however, through the DocBook DTD and the
XML stuff in zope. Which leads me to the later suggestion, I have
tried out DocBook product, rendering is very slow on my computer.
And again it is too big of a new concept for me now.

I have looked into the YihawDirectory product a little deeper now, it
fits very well into my idea to connect the content with the
references closely. A lot of my code methods I produced in order to
tweak a good reference handling is not needed any more, what is left
are a few headers and footers implemented as methods, for design and
navigation purposes, and folders having chapter properties and
containing documents for holding content. 

I still want to look into XML and DocBook, though, xml could be
easier to manage as the work grows.

On first glance, for xml I found  an interesting (but somehow
abandoned) software  named conglomerate http//www.conglomerate.org/,
another is Xeena of IBM. The GUI of both (especially the former) seem
to have nice XML editing capabilities.

Christian

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




Re: [Zope] Howto engineer a scientific paper system

2000-06-28 Thread [EMAIL PROTECTED]


 Why do you want to use Zope for this? What's the expected
 advantage against using e.g. LaTeX?
 
 Cheers,
 Nils
 --

Better integration into the Web, resources should be accessible on
the fly. I would like to have the sources of my ideas packed close
together with the actual content I am producing, delving into a
particular subject should then be straight forward. However,
I have never used LaTeX.

What about using YiHaW for that? There are  classes for different
types of resources available. And the Pointers might be used to
include references into a paragraph.

Christian


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




Re: [Zope] Howto engineer a scientific paper system

2000-06-28 Thread [EMAIL PROTECTED]

(...why)

...and, of'course, teamworking.

 [EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)

 Why do you want to use Zope for this? What's the expected
 advantage against using e.g. LaTeX?
 

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