[Zope-Coders] Zope tests: 8 OK

2005-08-05 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Thu Aug  4 11:01:02 2005 UTC to Fri Aug  5 11:01:02 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:22:57 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002759.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:24:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002760.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:25:57 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002761.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:27:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002762.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:28:57 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002763.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:30:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002764.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:31:57 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002765.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Aug  4 23:33:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002766.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-dev] Make objectValues return a generator?

2005-08-05 Thread Dieter Maurer
Petri Savolainen wrote at 2005-8-4 19:01 +0300:
Am I right in assuming that calls to objectValues etc. still return a 
real sequence of objects loaded in memory from ZODB?

It depends.

It is true for the standard folder, but it has anyway already
loaded its complete content; therefore, the highest cost
has already been paid whether or not you return a generator or not.
Because of this behaviour, you should use such a folder only
for moderately many items

BTreeFolder2 on the other hand already returns
a generator -- although not a standard Python generator
but a so call LazyMap.

How about making 
object* calls return a generator instead?

I am against replacing object* return values by true
Python generators because the do not support indexing
(which I use occasionally). The change would be backward
incompatible, the gain probably not worth this...

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


Re: [Zope-dev] Make objectValues return a generator?

2005-08-05 Thread Andreas Jung



--On 4. August 2005 19:01:48 +0300 Petri Savolainen 
[EMAIL PROTECTED] wrote:



Am I right in assuming that calls to objectValues etc. still return a
real sequence of objects loaded in memory from ZODB? How about making
object* calls return a generator instead? Has this been discussed
somewhere already? I tried a bit of googling  list-searching but could
not find much anything on this.



If you use objectValues() then you should be aware that it loads every 
object from the ZODB. In the rare cases where I use objectValues() I am 
usually interested in every object and not only in some objects. As Dieter 
noticed implementing the functionality as generator would implement in 
incompatible behaviour so -1 for the proprosal changing the method itself.
A dedicated method would be possible if you explain us some usecase where a 
generator would be more helpful.


-aj 

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


[Zope] ZSyncer and Zope-2.8.0

2005-08-05 Thread Thierry FLORAC





 Hi,

I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page templates...) between a Zope-2.7.6 source database and a Zope-2.8.0 destination database (both on Solaris with Python 2.3.4).
I'm using a user which have a Manager role on both sides, but I can't manage ZSyncer to work : an Unauthorized exception is always raised !
I can't even manage to see a listing of the different folders.

Any help would be great !!


Thanks,

 Thierry



___
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] Zope 2.8 and conflict errors

2005-08-05 Thread Maciej Wisniowski
 That looks like a write conflict. MVCC helps to lower/eliminate the  
rate of read conflicts.
 One option to reduce the rate of this write conflict is to tune the  
session machinery to suit.

 For example use session-resolution-seconds  of say 300 seconds.
Thanks!
I've changed session-resolution-seconds and did some tests again.
With DCOracle 2 there are still some errors (30 conflicts visible for users
for 3000 requests), but with SQLRelay there are no errors at all! :)
I didn't checked all 30 errors but I think these are all conflicts 
errors with

Products.DCOracle2.DA.Procedure object like this one:

PAn error was encountered while publishing this resource.
/P
PSTRONGZODB.POSException.ConflictError/STRONG/P
 Sorry, a site error occurred.ppTraceback (innermost last):
ul
li  Module ZPublisher.Publish, line 187, in publish_module_standard/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 151, in publish/li
li  Module Zope2.App.startup, line 158, in zpublisher_exception_hook/li
li  Module ZPublisher.Publish, line 119, in publish/li
li  Module Zope2.App.startup, line 215, in commit/li
li  Module transaction._manager, line 84, in commit/li
li  Module transaction._transaction, line 381, in commit/li
li  Module transaction._transaction, line 379, in commit/li
li  Module transaction._transaction, line 427, in _commitResources/li
li  Module ZODB.Connection, line 637, in tpc_vote/li
li  Module ZEO.ClientStorage, line 893, in tpc_vote/li
li  Module ZEO.ClientStorage, line 877, in _check_serials/li
/ulConflictError: database conflict error (oid 0x0299de, class
   Products.DCOracle2.DA.Procedure, serial this txn started
with 0x035f181b76214155 2005-08-04 08:59:27.686696, serial
currently committed 0x035f181b79752811 2005-08-04 08:59:28.466635)

Any ideas what can be done to remove this problem, except the obvious
solution - that is moving to SQLRelay ;) I tried _p_resolveConflict 
function
but without effect - it's used to resolve write conflict and I suppose 
these

errors like the one above are read conflicts.

--
Maciej Wisniowki
___
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: [Fwd: Re: [Zope] test for the existence of a nodeValue]

2005-08-05 Thread Jon Bowlas
Many thanks Dieter, works a treat. 

I'm working through the python tutorial now.

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2005 18:58
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Subject: Re: [Fwd: Re: [Zope] test for the existence of a nodeValue]

Jon Bowlas wrote at 2005-8-4 10:31 +0100:
 ...
But I still cant get it to work. I've changed my get_attributes.py script
to this:

if not attobject:
return ''
version = attobject.get_viewable()
nodes = version.content.documentElement.getElementsByTagName(attname) if
not nodes:
return ''
nodeValue = nodes[0].childNodes[0].nodeValue
if not nodeValue:
return none
return nodeValue
 ...
But I get the following error:
Error Type: IndexError
error Value: list index is out of range

IndexError -- list index is out of range tells you that
this is not a nodeValue problem.

Almost surely, you got a node without childNodes. Then
node.childNodes[0] will result in an IndexError.

Thus, you will need to check for this situation (in a way
similar to checks for an empty nodes list).

and the traceback says Module None, line 7 in get_attributes is the
cause.

This should tell you in which line of get_attributes the problem was.

As your mail agent decided to reformat the code (oh this Outlook :-( ),
and you did not number the line, I cannot tell you -- but I guessed above
(and probably not too bad)...

-- 
Dieter

___
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] ZSyncer and Zope-2.8.0

2005-08-05 Thread Sascha Ottolski
Am Freitag, 5. August 2005 09:16 schrieb Thierry FLORAC:
   Hi,

 I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page
 templates...) between a Zope-2.7.6 source database and a Zope-2.8.0
 destination database (both on Solaris with Python 2.3.4).
 I'm using a user which have a Manager role on both sides, but I can't
 manage ZSyncer to work : an Unauthorized exception is always raised !
 I can't even manage to see a listing of the different folders.

 Any help would be great !!

hi thierry,

i've seen the same. i get around it by including username:password into the 
url of the remote syncer, something like

http://username:[EMAIL PROTECTED]/ZSyncer



hope this helps,

sascha
___
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] DTML problem

2005-08-05 Thread Phil Beardmore

I have a problem writing a DTML page.

The page will be used to submit data to an SQL database, and the page 
itself is working great, however I get all of my users to login via an 
LDAP server using LDAPUserFolder.  Once logged in the users can complete 
a form, click submit and the data is stored (along with their userID and 
date and time).  Problem is, I also want to store the full name (or CN 
attribute in LDAP tree).


I know in ZPT I can use

b tal:condition=cnLogged in as: /b font 
color=#00strongspan tal:replace=cnreplace 
cn/span/strong/font/span


and this works great but I cannot manage to work it out in DTML.  Below 
is my page code (Hope you can help!)


Thanks
Phil




dtml-call REQUEST.set('user',AUTHENTICATED_USER.getUserName())

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
 lang=en
 metal:use-macro=here/main_template/macros/master
 i18n:domain=plone

body
div metal:fill-slot=main


body bgcolor=#FF
table width=100% border=0
   td width=80%form name=Add_student_modules method=post 
action=add_stu_modules_method enctype=multipart/form-data

input type=hidden name=userid value=dtml-var user
input type=hidden name=datetime value=dtml-var ZopeTime() 
fmt=fCommon

input type=hidden name=name value=dtml-var name


   table width=90% border=0 cellspacing=0 cellpadding=2 
align=center

tr
   td colspan=2 class=standard align=center 
bgcolor=#D6DBDFstrongSubmit Module Choices/strong/td

 /tr

tr
   td width=101 bgcolor=#D6DBDFnbsp;/td
  td width=419nbsp;/td/tr

tr
   td width=101 align=right bgcolor=#D6DBDF 
class=standardbChoice 1/b/td

  td width=419
 select name=choice1
  option value=APC101APC101 - Accounting, Planning and 
Control/option
  option value=BUS999BUS999 - Marketing  Business 
Enterprise/option
  option value=HRM121HRM121 - Human Resource 
Management/option
  option value=SIM222SIM222 - Strategy and 
International Management/option

  option value=PSY666PSY666 - Psychology/option
  option value=LAW421LAW421 - Law/option
  option value=ADM555ADM555 - Administration/option
  option value=TEC834TEC834 - Technical/option
/select/td/tr

tr
   td width=101 align=right bgcolor=#D6DBDF 
class=standardbChoice 2/b/td

  td width=419
 select name=choice2
  option value=APC101APC101 - Accounting, Planning and 
Control/option
  option value=BUS999BUS999 - Marketing  Business 
Enterprise/option
  option value=HRM121HRM121 - Human Resource 
Management/option
  option value=SIM222SIM222 - Strategy and 
International Management/option

  option value=PSY666PSY666 - Psychology/option
  option value=LAW421LAW421 - Law/option
  option value=ADM555ADM555 - Administration/option
  option value=TEC834TEC834 - Technical/option
/select/td/tr


   td width=101 bgcolor=#D6DBDFnbsp;/td
  td width=419
 input type=submit name=Submit value=Submit
 input type=reset name=Submit2 value=Clear/td/tr

/table
/form/td
 /tr
/table
/div
/body
/html

begin:vcard
fn:Phil Beardmore
n:Beardmore;Phil
org:University of Sunderland;Sunderland Business School
email;internet:[EMAIL PROTECTED]
title:Senior IT/Network Officer
tel;work:0191 515 3436
tel;cell:07766805820
version:2.1
end:vcard

___
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] Zope on IIS 6.0 without using ISAPI re-write tools from Freshlogic or HeliconTech?

2005-08-05 Thread michael nt milne
Hi

I have installed Plone on a Windows Small Business Server running IIS
6.0 and have found that I can't get it to serve pages. The server also
runs a separate Exchange webmail service.

On doing a bit of research and with help from this list it seems that
the problem is with IIS and its inability to send requests to other
applications.

However this page on Microsoft seems to suggest otherwise.

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B813368

Am I right in thinking that if you include only the ports that you
want IIS to listen on in Httpcfg.exe and *leave out* the Zope :8080
port then IIS will re-direct to Zope/Plone etc as it is notin its
'included' list?

Has anyone tried this? It would be a lot simpler than using the 'not
free' ISAPI re-write tools that exist. Why can't Microsoft just
include a good re-write tool in IIS?



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] Anyone using isapirewrite or freshlogic re-write for IIS and Zope?

2005-08-05 Thread michael nt milne
Hi

Has anyone used either of the ISAPI re-write tools for IIS and Zope
from HeliconTech at http://www.isapirewrite.com or at Freshlogic
http://freshlogic.net ?

I'm attempting to set up a largescale instance on a windows small
business server.

The latter is written more for Plone and Zope in mind. Both cost around £30-35.

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] Re: Zope 2.8 and conflict errors

2005-08-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maciej Wisniowski wrote:

 That looks like a write conflict. MVCC helps to lower/eliminate the
 rate of read conflicts. One option to reduce the rate of this 
 writeconflict is to tune the session machinery to suit. For example
 use session-resolution-seconds of say 300 seconds.

 Thanks!
 I've changed session-resolution-seconds and did some tests again.
 With DCOracle 2 there are still some errors (30 conflicts visible for users
 for 3000 requests), but with SQLRelay there are no errors at all! :)
 I didn't checked all 30 errors but I think these are all conflicts
 errors with Products.DCOracle2.DA.Procedure object like this one:
 
 PAn error was encountered while publishing this resource.
 /P
 PSTRONGZODB.POSException.ConflictError/STRONG/P
  Sorry, a site error occurred.ppTraceback (innermost last):
 ul
 li  Module ZPublisher.Publish, line 187, in publish_module_standard/li
 li  Module ZPublisher.Publish, line 161, in publish/li
 li  Module ZPublisher.Publish, line 161, in publish/li
 li  Module ZPublisher.Publish, line 161, in publish/li
 li  Module ZPublisher.Publish, line 151, in publish/li
 li  Module Zope2.App.startup, line 158, in zpublisher_exception_hook/li
 li  Module ZPublisher.Publish, line 119, in publish/li
 li  Module Zope2.App.startup, line 215, in commit/li
 li  Module transaction._manager, line 84, in commit/li
 li  Module transaction._transaction, line 381, in commit/li
 li  Module transaction._transaction, line 379, in commit/li
 li  Module transaction._transaction, line 427, in _commitResources/li
 li  Module ZODB.Connection, line 637, in tpc_vote/li
 li  Module ZEO.ClientStorage, line 893, in tpc_vote/li
 li  Module ZEO.ClientStorage, line 877, in _check_serials/li
 /ulConflictError: database conflict error (oid 0x0299de, class
Products.DCOracle2.DA.Procedure, serial this txn started
 with 0x035f181b76214155 2005-08-04 08:59:27.686696, serial
 currently committed 0x035f181b79752811 2005-08-04 08:59:28.466635)
 
 Any ideas what can be done to remove this problem, except the obvious
  solution - that is moving to SQLRelay ;) I tried _p_resolveConflict 
 function but without effect - it's used to resolve write conflict and
 I suppose these errors like the one above are read conflicts.

Nope;  any conflict propagated from within 'commit' is going to be a
write conflict;  more than one transaction is writing to the same
persistent object (in the ZODB) at the same time.

Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC81Vd+gerLs4ltQ4RAtaEAKDAokv4+azXlqfF2vppOCnhmp2tTwCgv+uw
v9w7biMr71rQLFtynCZN0wU=
=gzYB
-END PGP SIGNATURE-

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


[Zope] Re: Cannot pass parameters to Externa Method From inside a DTML Method

2005-08-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thomas Apostolou wrote:

 The problem know is that, althought the params of the
 GetQueryParamsDTML is passed to ShowResults through
 the REQUEST, the TestODBCEM does not use them. Instead
 the code is always using the defValues of its def
 line.
 When i was calling ./TestODBC from GetQueryParamsDTML 
 it was using the parameters i was submiting.
 
 I tried to change the follong line of ShowResults :
 dtml-in TestODBCEM
 to:
 dtml-in expr=TestODBCEM('dtml-var sysDSN',
 'dtml-var usr', 'dtml-var mypass', 'dtml-var
 sSQL')
 
 but this one gives me an AttributeError ('str' object
 has no attribute 'id').

inside 'expr=.,.', you are writing a Python expression, and thus don't
need the 'dtml-var' bit.  Try:

  dtml-in expr=TextODBCEM(myDSN, usr, mypass, aSQL)

I would recommend investing in a good Zope reference, e.g. the Zope 2.7
version of The Zope Book:

  http://www.plope.com/Books/2_7Edition

Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC81a5+gerLs4ltQ4RAtiJAJ4+uQuhIMBtUACVaJ1UeLp1o0D+wACcDTo9
U1IszKaOUHyjyeeEA+cJjL4=
=OD7J
-END PGP SIGNATURE-

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


Re: [Zope] ZSyncer and Zope-2.8.0

2005-08-05 Thread Paul Winkler
Note, I have done zero testing of zsyncer with zope 2.8.
It is not officially supported yet. If it works, lucky you ;-)

-PW

 Am Freitag, 5. August 2005 09:16 schrieb Thierry FLORAC:
   Hi,

 I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page
 templates...) between a Zope-2.7.6 source database and a Zope-2.8.0
 destination database (both on Solaris with Python 2.3.4).
 I'm using a user which have a Manager role on both sides, but I
 can't manage ZSyncer to work : an Unauthorized exception is always
 raised ! I can't even manage to see a listing of the different
 folders.

 Any help would be great !!

 hi thierry,

 i've seen the same. i get around it by including username:password into
 the  url of the remote syncer, something like

 http://username:[EMAIL PROTECTED]/ZSyncer



 hope this helps,

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



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


Re: [Zope] ZSyncer and Zope-2.8.0

2005-08-05 Thread Thierry FLORAC
Well... so I'm probably unlucky !!
I've also tested with Sascha's method (http://username:[EMAIL PROTECTED]) but
then I have a 'host/servname not known' error :-( !!
I'm probably going to wait for a 2.8 compatible release...

  Thierry


On Fri, 2005-08-05 at 08:51 -0500, Paul Winkler wrote:
 Note, I have done zero testing of zsyncer with zope 2.8.
 It is not officially supported yet. If it works, lucky you ;-)
 
 -PW
 
  Am Freitag, 5. August 2005 09:16 schrieb Thierry FLORAC:
Hi,
 
  I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page
  templates...) between a Zope-2.7.6 source database and a Zope-2.8.0
  destination database (both on Solaris with Python 2.3.4).
  I'm using a user which have a Manager role on both sides, but I
  can't manage ZSyncer to work : an Unauthorized exception is always
  raised ! I can't even manage to see a listing of the different
  folders.
 
  Any help would be great !!
 
  hi thierry,
 
  i've seen the same. i get around it by including username:password into
  the  url of the remote syncer, something like
 
  http://username:[EMAIL PROTECTED]/ZSyncer
 
 
 
  hope this helps,
 
  sascha


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


[Zope] Re: DTML problem

2005-08-05 Thread Christian Scholz
Hi!


Phil Beardmore wrote:
 I have a problem writing a DTML page.
 
 The page will be used to submit data to an SQL database, and the page
 itself is working great, however I get all of my users to login via an
 LDAP server using LDAPUserFolder.  Once logged in the users can complete
 a form, click submit and the data is stored (along with their userID and
 date and time).  Problem is, I also want to store the full name (or CN
 attribute in LDAP tree).
 
 I know in ZPT I can use
 
 b tal:condition=cnLogged in as: /b font
 color=#00strongspan tal:replace=cnreplace
 cn/span/strong/font/span
 
 and this works great but I cannot manage to work it out in DTML.  Below
 is my page code (Hope you can help!)
 
 Thanks
 Phil
 
 
 
 
 dtml-call REQUEST.set('user',AUTHENTICATED_USER.getUserName())
 
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
  lang=en
  metal:use-macro=here/main_template/macros/master
  i18n:domain=plone

So what type of file is this? Is it a DTML file or a Page Template? You
cannot use both. You need to decide whether you use DTML or TAL and
create an file of the correct type accordingly.

You though might keep in the TAL space and write
tal:block tal:define=dummy
python:request.set('user',AUTHENTICATED_USER.getUserName()) /

dtml-var user might be straightforward to convert to TAL e.g.

tal:attributes=value name

(however name is defined.)
Though probably you don't need to set it in the request anyway and just
can define it as normal variable on top and then use it later.

-- christian



 
 body
 div metal:fill-slot=main
 
 
 body bgcolor=#FF
 table width=100% border=0
td width=80%form name=Add_student_modules method=post
 action=add_stu_modules_method enctype=multipart/form-data
 input type=hidden name=userid value=dtml-var user
 input type=hidden name=datetime value=dtml-var ZopeTime()
 fmt=fCommon
 input type=hidden name=name value=dtml-var name
 
 
table width=90% border=0 cellspacing=0 cellpadding=2
 align=center
 tr
td colspan=2 class=standard align=center
 bgcolor=#D6DBDFstrongSubmit Module Choices/strong/td
  /tr
 
 tr
td width=101 bgcolor=#D6DBDFnbsp;/td
   td width=419nbsp;/td/tr
 
 tr
td width=101 align=right bgcolor=#D6DBDF
 class=standardbChoice 1/b/td
   td width=419
  select name=choice1
   option value=APC101APC101 - Accounting, Planning and
 Control/option
   option value=BUS999BUS999 - Marketing  Business
 Enterprise/option
   option value=HRM121HRM121 - Human Resource
 Management/option
   option value=SIM222SIM222 - Strategy and International
 Management/option
   option value=PSY666PSY666 - Psychology/option
   option value=LAW421LAW421 - Law/option
   option value=ADM555ADM555 - Administration/option
   option value=TEC834TEC834 - Technical/option
 /select/td/tr
 
 tr
td width=101 align=right bgcolor=#D6DBDF
 class=standardbChoice 2/b/td
   td width=419
  select name=choice2
   option value=APC101APC101 - Accounting, Planning and
 Control/option
   option value=BUS999BUS999 - Marketing  Business
 Enterprise/option
   option value=HRM121HRM121 - Human Resource
 Management/option
   option value=SIM222SIM222 - Strategy and International
 Management/option
   option value=PSY666PSY666 - Psychology/option
   option value=LAW421LAW421 - Law/option
   option value=ADM555ADM555 - Administration/option
   option value=TEC834TEC834 - Technical/option
 /select/td/tr
 
 
td width=101 bgcolor=#D6DBDFnbsp;/td
   td width=419
  input type=submit name=Submit value=Submit
  input type=reset name=Submit2 value=Clear/td/tr
 
 /table
 /form/td
  /tr
 /table
 /div
 /body
 /html
 
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] (1 conflicts since startup at 2005-08-04T14:45:39)

2005-08-05 Thread Garito

Dieter Maurer escribió:


Garito wrote at 2005-8-4 14:11 +0200:
 

Our problem is we create some archetypes and in some parts of our 
structure if we try to create some object the computer cpu grows to 100% 
and raises


2005-08-04T15:01:02 INFO(0) ZODB conflict error at 
/VirtualHostBase/the url to the object/createObject (1 conflicts 
since startup at 2005-08-04T14:45:39)


Has someone any idea to solve these issue?
   



Not directly an idea but some hint:

 A long time ago (months, maybe even a year),
 I posted a patch that gives more informative error messages
 for ConflictError.

 Search the archive, apply the patch and come back with
 the better message.


A search for ConflictError will give you hundreds of posts.
Many of them explain that ConflictError are a normal
artefact of the ZODB. Nothing to worry about, unless
you get too many...

 


Hi Dieter and thank you again
The problem that produce these error was a method acquired by an 
archetype but the data to calculate de algorithm is not acquirable by 
these archetype (I hope I explain myself)


Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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

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


[Zope] Speed Problems with IE6 on German Version of Windows XP Pro SP2

2005-08-05 Thread Neil Vaidya
Hello All,

Has anyone come across any problems with their site or a site using Zope, 
specifically with Plone, when browsing using IE6?

Whenever someone from our German office tries to access our sites, the 
localized sites or the main .COM site they are running into a problem 
where it will take easily 1 minute or more to load the page, this is occuring 
about 50% of the time when they try to go to a page on our site. They are 
using the German version of Microsoft Windows XP Pro SP2 with IE6. This 
problem only seems to occur when using IE6 because they installed Firefox 
and their was no problem. They tried a Windows 2000 machine then with 
IE6 and it had no problems at all. It appears that somehow the German 
version of IE6 on XP Pro SP2 is having some sort of problem.

Sites Include:
http://www.keithley.com
http://www.keithley.de

I have tried to replicate the problem or issue here at our main office in 
Cleveland but on all of our computers installed with the standard US 
English version of XP Pro SP2, Windows 2000, Windows 98, and Mac OS X 
I can not come across the same problem.

Has anyone seenm heard of this problem before, or have an idea of what 
the cause or a solution might be?

Thanks in advance for any ideas or suggestions!

- Neil

___
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] Speed Problems with IE6 on German Version of Windows XP ProSP2

2005-08-05 Thread bobb
http://www.daniweb.com/techtalkforums/thread25199.html

about 1/2 way down... similar (possibly)  They mention firefox also, but
maybe it will lead you down a path.

hth

bobb

- Original Message -
From: Neil Vaidya [EMAIL PROTECTED]
To: zope@zope.org
Sent: Friday, August 05, 2005 10:05 AM
Subject: [Zope] Speed Problems with IE6 on German Version of Windows XP
ProSP2


 Hello All,

 Has anyone come across any problems with their site or a site using Zope,
 specifically with Plone, when browsing using IE6?

 Whenever someone from our German office tries to access our sites, the
 localized sites or the main .COM site they are running into a problem
 where it will take easily 1 minute or more to load the page, this is
occuring
 about 50% of the time when they try to go to a page on our site. They are
 using the German version of Microsoft Windows XP Pro SP2 with IE6. This
 problem only seems to occur when using IE6 because they installed Firefox
 and their was no problem. They tried a Windows 2000 machine then with
 IE6 and it had no problems at all. It appears that somehow the German
 version of IE6 on XP Pro SP2 is having some sort of problem.

 Sites Include:
 http://www.keithley.com
 http://www.keithley.de

 I have tried to replicate the problem or issue here at our main office in
 Cleveland but on all of our computers installed with the standard US
 English version of XP Pro SP2, Windows 2000, Windows 98, and Mac OS X
 I can not come across the same problem.

 Has anyone seenm heard of this problem before, or have an idea of what
 the cause or a solution might be?

 Thanks in advance for any ideas or suggestions!

 - Neil

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

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


Re: [Zope] ZSyncer and Zope-2.8.0

2005-08-05 Thread Dieter Maurer
Thierry FLORAC wrote at 2005-8-5 09:16 +0200:
 ...
I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page
templates...) between a Zope-2.7.6 source database and a Zope-2.8.0
destination database (both on Solaris with Python 2.3.4).
I'm using a user which have a Manager role on both sides, but I can't
manage ZSyncer to work : an Unauthorized exception is always raised !
I can't even manage to see a listing of the different folders.

Any help would be great !!

Reconfigure your error_log object not to ignore Unauthorized.
Try again and see what the traceback tells you...

-- 
Dieter
___
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] Zope 2.8 and conflict errors

2005-08-05 Thread Dieter Maurer
Maciej Wisniowski wrote at 2005-8-5 09:23 +0200:
 ...
li  Module ZEO.ClientStorage, line 877, in _check_serials/li
/ulConflictError: database conflict error (oid 0x0299de, class
Products.DCOracle2.DA.Procedure, serial this txn started
with 0x035f181b76214155 2005-08-04 08:59:27.686696, serial
currently committed 0x035f181b79752811 2005-08-04 08:59:28.466635)

Do you see a reason why your requests modify Procedure instances?

I find this strange: I would expect that they are rarely modified
(just once to set them up).

-- 
Dieter
___
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] AttributeError in DocFinder 1.0.3

2005-08-05 Thread Kate Legere
I've installed DocFinder 1.0.3 but I'm getting an error when I try to
instantiate.

I'm running 

(Zope 2.6.2 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2)
Python Version

2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)]

I also found standard_template.pt on my local installation and copied it to
the same directory on the server but that doesn't help either.
 
What do I need to add?

Kate

Exception Type  AttributeError
Exception Value standard_template.pt

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.PageTemplateFile, line 96, in _exec
* Module Products.PageTemplates.PageTemplate, line 95, in pt_render
  PageTemplateFile at /
* Module TAL.TALInterpreter, line 200, in __call__
* Module TAL.TALInterpreter, line 244, in interpret
* Module TAL.TALInterpreter, line 689, in do_useMacro
* Module Products.PageTemplates.TALES, line 220, in evaluate
  URL: addForm
  Line 1, Column 0
  Expression: standard:'here/standard_template.pt/macros/page'
  Names:

{'container': __FactoryDispatcher__ instance at 8f47fb8,
 'default': Products.PageTemplates.TALES.Default instance at 0x867d0f4,
 'here': __FactoryDispatcher__ instance at 8f47fb8,
 'loop': SafeMapping instance at 8e453e0,
 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x867cdec,
 'nothing': None,
 'options': {'args': ()},
 'repeat': SafeMapping instance at 8e453e0,
 'request': HTTPRequest,
URL=http://www2.kfpl.ca:8080/manage_addProduct/DocFinder/addForm,
 'root': Application instance at 8df00f0,
 'template': PageTemplateFile at /,
 'traverse_subpath': [],
 'user': zope}

* Module Products.PageTemplates.Expressions, line 206, in __call__
* Module Products.PageTemplates.Expressions, line 194, in _eval
* Module Products.PageTemplates.Expressions, line 150, in _eval
  __traceback_info__: here
* Module Products.PageTemplates.Expressions, line 360, in
restrictedTraverse
  __traceback_info__: {'path': ['standard_template.pt', 'macros',
'page'], 'TraversalRequestNameStack': ['page', 'macros']}

AttributeError: standard_template.pt

___
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] Zope 2.8 and conflict errors

2005-08-05 Thread Maciej Wisniowski

Do you see a reason why your requests modify Procedure instances?
I find this strange: I would expect that they are rarely modified
(just once to set them up).
It's possibly because of _connect method in DCOracle2 SP.py. It 
assigns to self _v_proc, connection, and errors count.


Yes, it's a bit strange and possibly unnecessary. I've already 
looked at this but had no time to try doing changes in DCO2 
code - I stared testing other branch of DCO2 from its CVS and 
SQLRelay.


DCOracle2 is far more complicated than SQLRelayDA or
PsycopgDA. I've crated my own OracleStoredProcedure product
for SQLRelay which behaves just like Procedure from DCO2
but has a bit more complicated usage. It's written in
far more simple way and thanks to this more stable 
I think :)



Thanks to pointing this, I'll try to take closer look.
Maybe assigning self._v_proc during initialization will
do the thing... but I'm afraid it's not so simple ;)


One more question - am I correct that _p_resolveConflict 
is not used anymore in Zope 2.8.x?


--
Maciej Wisniowski

___
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] Zope 2.8 and conflict errors

2005-08-05 Thread Tim Peters
[Maciej Wisniowski]
 ...
 One more question - am I correct that _p_resolveConflict
 is not used anymore in Zope 2.8.x?

Not correct.  _p_resolveConflict is used in Zope 2.8.x (and in Zope 3)
exactly the same way it was used in 2.7.x.  If it's not working, there
may be a new bug in 2.8.x, but there's been report of that yet.
___
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] Data.fs Windows to Linux?

2005-08-05 Thread Marc Schnapp

I thought that I would back up my data.fs by copyting the entire Linux
/var directory to a Windows machine with spare disk space and then
creating a ZIP file on the Windows machine.

There was a problem on the Linux machine, so I figured there'd be no
problem by simply copying the data.fs (via a Samba share) back from
Windows - Linux.

It seems that when Zope starts back up, it keeps attempting to deal with
the alien database and then shuts down.

The Same Database File Works Perfectly With A Windows Plone/Zope
Installation
-
I installed a Windows version of Plone (with Zope of course) and that
same data.fs file works just fine in the Windows environment.

Questions:

1) Am I without hope of ever running the database under Linux again?
2) What is the reason that the database goes from Linux - Windows OK
but not in the other direction?
3) MOST IMPORTANT:
   Is there a technique I can use to tweak the database file or recover
it so that it is Linux-friendly?

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