[Zope-Annce] Zope 3 Boot Camp and Sprint registration open

2007-01-18 Thread Chris Calloway
The Triangle (NC) Zope and Python Users Group invites you to register 
for Camp 5 and the BBQ Sprint:


http://trizpug.org/boot-camp/camp5/

This is a Zope 3 boot camp followed by a Plone 3 sprint. The boot camp 
is taught by Philipp von Weitershausen, author of Web Component 
Development with Zope 3. The training has previously only been offered 
in Europe and is now available in North America for the first time. The 
sprint includes several sponsored and invited sprinters.


TriZPUG hopes you will participate in Camp 5 in Chapel Hill, NC.

Camp 5: Saturday March 10 - Tuesday March 13, 2007
BBQ Sprint: Wednesday March 14 - Saturday March 17, 2007

--
Sincerely,

Chris Calloway
http://www.seacoos.org
office: 332 Chapman Hall   phone: (919) 962-4323
mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599



___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

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


[Zope-dev] synonym for getMultiAdapter

2007-01-18 Thread Chris Withers

Hi All,

I'd love to see:

IWhatever(multi=(obj1,obj2,obj3))

...as a sysnonym for

getMultiAdapter((obj1,obj2,obj3),IWhatever)

What do people feel about this?

cheers,

Chris

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

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


[Zope-dev] Zope Tests: 7 OK

2007-01-18 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Jan 17 12:00:00 2007 UTC to Thu Jan 18 12:00:00 2007 UTC.
There were 7 messages: 7 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:08:37 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007062.html

Subject: OK : Zope-2.6 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:10:08 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007063.html

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:11:38 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007064.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:13:08 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007065.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:14:39 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007066.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:16:09 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007067.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Wed Jan 17 21:17:39 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-January/007068.html

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


[Zope-dev] Re: ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-18 Thread Hanno Schlichting
Martijn Faassen wrote:
 Hey,
 
 Just some feedback in case you haven't gotten this already: I have 
 problem running bin/buildout as it seems to fail getting workingenv.py 
 from the cheeseshop:
 
 zc.buildout.easy_install: Getting new distribution for workingenv.py=0.3
 Page at http://www.python.org/pypi/workingenv.py/ links to .py file(s) 
 without version info; an index scan is required.
 error: Couldn't find a setup script in /tmp/tmpDRKwglget_dist/workingenv.py
 Traceback (most recent call last):

Ah I had that problem with buildout as well. I could install it using my
global easy_install though.

Probably we need to append some '#egg=project-version' here according to
http://peak.telecommunity.com/DevCenter/setuptools#dependencies-that-aren-t-in-pypi
as workingenv is distributed as a single Python script rather than a
package.

Hanno

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


[Zope-dev] small catalog cleanup

2007-01-18 Thread yuppie

Hi!


Just want to make sure I'm not missing something:


1. IPluggableIndex
--

Products.PluginIndexes.interfaces.IPluggableIndex has this method:

def _apply_index(request, cid=''):
Apply the index to query parameters given in 'request'.

[...]


Some implementations have an additional 'type' argument. Neither 'cid' 
nor 'type' are used anywhere in Zope core.


The Catalog calls '_apply_index' just with the 'request' argument. 
That's the only place where '_apply_index' is used.


Looks like 'cid' and 'type' can be safely removed from interface and 
implementations.



2. parseIndexRequest


The 'get' method of Products.PluginIndexes.common.util.parseIndexRequest 
returns the default value if the value is not true. This changes values 
like 0 or False to the default value.


Looks like a bug to me. But fixing this changes the behavior.


If there are no objections, I'll resolve these two issues on the Zope trunk.


Cheers,

Yuppie


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

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


[Zope-dev] Re: ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-18 Thread Hanno Schlichting
Martin Aspeli wrote:
 I just emailed Hanno a few questions, but I thought I'd post them here 
 as well for further discussion:
 
   - Is it so that I should check out ploneout, run boostrap.py, then
 ../bin/buildout.sh for each project? Or can I somehow use the same
 checkout of ploneout for multiple projects?

This works against the way buildout works. You could create a seperate
instance (just copy the instance part in the buildout.cfg and rename it
to instance2) and specify a different list of products or eggs that
instance should include.

What we really would want here instead, is being able to reuse the same
Zope checkout or Zope installation in general and potentially also the
bundle checkouts. For the later part this is already possible, as the
instance recipes takes any local folder and symlinks the products found
in there into the instance.

   - How does that offline I-already-have-a-bundle-checkout-thank-you 
 thing work?

It checks whether or not the offline option is either set for the part
or globally. If one is set and the part directory is in place, the
recipe won't do anything.

   - I notice that the recipie puts slugs into etc/package-includes; I
 don't think they hurt (once we fix KSS, which ree is doing right
 now!), but they're not really necessary as far as Plone is concerned
 because Products/CMFPlone pulls them in. I'm guessing we should make
 it possible to disable this behaviour?

The slugs are not necessary, I just put them in there to show how the
Zope3instance recipe handles these things and show us an alternative way
of managing those.

   - I had to easy_install elementtree for openid to be happy; guess we
 should add that as a dependency somewhere?

Yep, as noted in another mail, even Archetypes depends on it.

   - In my workingenv (i.e. when I've done source bin/activate) I had
 some trouble using 'paster', because it couldn't find various eggs,
 e.g. ZopeSkel, Paste, PasteScript, PasteDeploy and Cheetah. What's
 annoying is that I had to do each one of these manually, i.e. I ran
 'easy_install ZopeSkel' and it found the egg (without any trip to the
 cheese shop), but then it complained about PasteScript, so I did
 'easy_install PasteScript', but then it complained about PasteDeploy
 etc. This is while I'm running 'paster create'. Did I do something
 wrong? I think I read somewhere that workingenv can re-use my system
 PYTHONPATH which may or may not be useful

I did not include the global Python site packages, we might want to
change that as Daniel pointed out. I have no idea why easy_install
behaves in those strange ways though.

   - Once I got it up, I used 'paster create -t plone' to create a new
 project in parts/instance/src/my.package. Is this good practice?

Nope, as Martijn and Daniel already pointed out, don't ever do anything
manually in parts. Everything in there should be managed by recipes and
buildout.cfg. Put those things in the ploneout/src folder instead and
include them from there (probably using buildout's develop option as
said in another mail as well).

   - I did 'python setup.py develop' in my new package to create a
 development egg. I could then run tests with './bin/zopectl test -m
 my.package --test-path src/my.package'. Is this good practice?

We really need to get the testrunner recipe back into ploneout (I tried
it, but ended up having problems finding the right combination of paths
to be able to run tests). This should give you a test.py in ploneout/bin
which you could use to run all tests and it should include all needed
paths in order for you not having to specify the test path yourself.

Look at
http://dev.plone.org/plone/browser/ploneout/trunk/buildout.cfg?rev=11950
for my last attempt of defining this test script. Something similar
should probably work for all eggs that are managed by buildout. But this
of course doesn't play nicely with workingenv.

   - Am I supposed to add my own eggs (even if they're not in svn
 anywhere) to the buildout for my project?

If they are not in SVN they should have a release somewhere ;) If you
are in an early stage you could put them into ploneout/src or directly
under ploneout. In the end both the buildout way as well as my
workingenv recipe only need a local path to include them, so you could
manage them outside ploneout completely as well.

   - How am I meant to update my plone bundles? I tried running
 ../bin/buildout -v again, but that wiped my parts/instance directory!
 It came back, but lacking things like Products/ ...

That's odd. I had no troubles running ./bin/buildout again. This is what
currently should update all Plone specific bundles. Even if the instance
would be recreated it should contain all those products :(

Hanno

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

[Zope-dev] Re: [Plone-developers] ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-18 Thread Sidnei da Silva

On 1/18/07, Martijn Faassen [EMAIL PROTECTED] wrote:
snip

Considering installation of Products we're in new territory anyway -
they're not eggs, after all. I see in the result of ploneout that they
get symlinked into the Products directory - will that work on Windows?

snip

* we can say something is a develop-Product. This means that you need a
Product checkout that you refer to. This checkout is somehow linked so
that Zope picks it up. (similar to the way develop-eggs has links to
development packages). All entries in your bundle would be such a
develop product.


'zope.conf' has a 'products' directive that you can use to point to
other 'Products' directories other than the default in the
INSTANCE_HOME. I believe you can add multiple 'products' directives to
list multiple directories. Then you don't need to do any symlink or
copying around.

--
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope-dev] Re: [Plone-developers] ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-18 Thread Martijn Faassen

Sidnei da Silva wrote:

On 1/18/07, Martijn Faassen [EMAIL PROTECTED] wrote:
snip

Considering installation of Products we're in new territory anyway -
they're not eggs, after all. I see in the result of ploneout that they
get symlinked into the Products directory - will that work on Windows?

snip

* we can say something is a develop-Product. This means that you need a
Product checkout that you refer to. This checkout is somehow linked so
that Zope picks it up. (similar to the way develop-eggs has links to
development packages). All entries in your bundle would be such a
develop product.


'zope.conf' has a 'products' directive that you can use to point to
other 'Products' directories other than the default in the
INSTANCE_HOME. I believe you can add multiple 'products' directives to
list multiple directories. Then you don't need to do any symlink or
copying around.


Great idea! We should try this. Hanno? :)

I guess we can disregard most of my 'Products as eggs' mail and simply 
allowing us to point to products directories in the Zope 2 instance 
recipe. I think a good pattern would be to simply have a 'Products' 
directory directly in the buildout directory.


Regards,

Martijn

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

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


[Zope-dev] Re: [Plone-developers] ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-18 Thread Hanno Schlichting
Martijn Faassen wrote:
 Sidnei da Silva wrote:
 On 1/18/07, Martijn Faassen [EMAIL PROTECTED] wrote:
 snip
 Considering installation of Products we're in new territory anyway -
 they're not eggs, after all. I see in the result of ploneout that they
 get symlinked into the Products directory - will that work on Windows?
 snip
 * we can say something is a develop-Product. This means that you need a
 Product checkout that you refer to. This checkout is somehow linked so
 that Zope picks it up. (similar to the way develop-eggs has links to
 development packages). All entries in your bundle would be such a
 develop product.

 'zope.conf' has a 'products' directive that you can use to point to
 other 'Products' directories other than the default in the
 INSTANCE_HOME. I believe you can add multiple 'products' directives to
 list multiple directories. Then you don't need to do any symlink or
 copying around.
 
 Great idea! We should try this. Hanno? :)

Yep, we can try that one too. I thought I remembered people reporting
bugs about the multiple Products directories at some point, but I cannot
remember where that was exactly. I only did go for the symlink approach
as that has been the way I did it on Windows, at the time I developed on
Windows (see http://en.wikipedia.org/wiki/NTFS_junction_point for some
explanation of Windows symlink support).

 I guess we can disregard most of my 'Products as eggs' mail and simply
 allowing us to point to products directories in the Zope 2 instance
 recipe. I think a good pattern would be to simply have a 'Products'
 directory directly in the buildout directory.

Shouldn't we have the same distinction between products and development
products as we have it with eggs and development eggs?

If you develop a set of products based on CMF for example, you might
want to have an unpacked tarball of the latest CMF release lying around
and have it included in the Zope instance, plus your own products that
probably come directly from a SVN checkout.

This would give us both a products and develop-products directory, which
you could both include in an instance's zope.conf.

Hanno

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


[Zope] Re: Zope hangs and Python eats all memory

2007-01-18 Thread Nico Grubert



Have you tried to enable the trace logger in the zope.conf file?
Look for the stanza beginning with logger trace.

You need to have your server in debug-mode. This will produce a
trace.log file that can be analyzed with requestprofiler.py.

This will give you the offending requests that caused Zope to hang.


Now, I run the Zope server in debug now and I have enabled the trace 
logger. Hope to see more details. I let you know as soon as the Zope 
server hangs again and I get some more information.

Thank you!

Nico
___
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 pretends to receive and send XMLRPC data, but strace sees nothing !

2007-01-18 Thread yacine chaouche

Hi,
I have an ajax application that is composed by :
1) An ajax client which is a web page with a button that calls a zope
object's method, say toutCompter.
2) An ajax server (zope), with a zope object that has the method
toutCompter (all zope object methods are XMLRPC callable right ?).

I use two browsers on two separate machines. I call the methode on the two
browsers, and compares the zope trace and strace output of the network
activity. The problem is that zope says he sends data but strace don't, and
zope says he receives data and again strace don't.

This is the zope/python code that prints to the console :
zope/python
   def toutCompter(self):
   
   this method is called via XMLRPC.
   
   IPAdresse  = self.REQUEST[REMOTE_ADDR]
   print ip:,IPAdresse,requests counting of lines,self.getForm
('min'),to,self.getForm('max')
   ... #some processing here. creation of XMLData
   print sending results to +IPAdresse
   return XMLData
/zope/python


Zope says :

zope traces to the console
ip: 10.75.49.155 requests counting of lines 10 to 20
ip: 10.75.49.51 requests counting of lines 10 to 20
sending results to 10.75.49.155
sending results to 10.75.49.51
ip: 10.75.49.51 requests counting of lines 10 to 20
sending results to 10.75.49.51
/zope trace

while strace says (SIGRTMIN were stripped out, are they of any use here ?):

strace
recv(24, 0x8d1e7e4, 4096, 0)= -1 ECONNRESET (Connection reset by
peer)
recv(24, POST /aef/rechercheMultiligne/to..., 4096, 0) = 686
recv(28, POST /aef/rechercheMultiligne/to..., 4096, 0) = 649
recv(28, requete_11=%2410%20and%20ptel%20..., 4096, 0) = 445
send(24, HTTP/1.1 200 OK\r\nServer: Zope/(Z..., 666, 0) = 666
recv(24, 0x8ebac04, 4096, 0)= -1 ECONNRESET (Connection reset by
peer)
send(28, HTTP/1.1 200 OK\r\nServer: Zope/(Z..., 643, 0) = 643
/strace

As you can see, the first part of the zope trace:

ip: 10.75.49.155 requests counting of lines 10 to 20
ip: 10.75.49.51 requests counting of lines 10 to 20

corresponds to this part of the strace :
recv(24, 0x8d1e7e4, 4096, 0)= -1 ECONNRESET (Connection reset by
peer)
recv(24, POST /aef/rechercheMultiligne/to..., 4096, 0) = 686
comment WHERE IS POST DATA FOR SOCKET 24??? /comment
recv(28, POST /aef/rechercheMultiligne/to..., 4096, 0) = 649
recv(28, requete_11=%2410%20and%20ptel%20..., 4096, 0) = 445

This part is ok. XMLHTTPRequest data is sent, saying :hello ! i request the
toutCompter methode. This is the post-data that you need to process my
query. Thanks folk, seeya !.

Now the second part is wierd, because the zope trace and strace DO NOT MATCH
:

zope trace part II, sending data back to XMLHTTPRequest
sending results to 10.75.49.155
sending results to 10.75.49.51
ip: 10.75.49.51 requests counting of lines 10 to 20
sending results to 10.75.49.51
/zope trace

strace part II, data sent only to one machine !
send(24, HTTP/1.1 200 OK\r\nServer: Zope/(Z..., 666, 0) = 666
recv(24, 0x8ebac04, 4096, 0)= -1 ECONNRESET (Connection reset by
peer)
send(28, HTTP/1.1 200 OK\r\nServer: Zope/(Z..., 643, 0) = 643
/strace

let's match line by line :
=

zope   strace
=


sending results to 10.75.49.155 = send(24, HTTP/1.1
200 OK\r\nServer: Zope/(Z..., 666, 0) = 666
sending results to 10.75.49.51  = you are such a liar !
no data was really sent !
ip: 10.75.49.51 requests counting of lines 10 to 20 = WHAT ? there's no
recv at all !! except for the reset !
sending results to 10.75.49.51 = send(28, HTTP/1.1 200
OK\r\nServer: Zope/(Z..., 643, 0) = 643
=


This behaviour is repeated every time i use two browsers, be it on the same
machine or on two separate machines.
It all seems like zope would save the xmlrpc requests in a buffer and
process on of the requests many times (sometimes more than twice !), or
something alike.
I would like to notice here that I use Zope 2.9.0 in single thread mode and
python 2.4.2
I would really appreciate anybody's comment on this strange brehaviour.

Thank you.
Y.Chaouche
___
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 pretends to receive and send XMLRPC data, but strace sees nothing !

2007-01-18 Thread Patrick Gerken

On 1/18/07, yacine chaouche [EMAIL PROTECTED] wrote:


Hi,
I have an ajax application that is composed by :
1) An ajax client which is a web page with a button that calls a zope
object's method, say toutCompter.
2) An ajax server (zope), with a zope object that has the method
toutCompter (all zope object methods are XMLRPC callable right ?).

I use two browsers on two separate machines. I call the methode on the two
browsers, and compares the zope trace and strace output of the network
activity. The problem is that zope says he sends data but strace don't, and
zope says he receives data and again strace don't.

This is the zope/python code that prints to the console :
zope/python
def toutCompter(self):

this method is called via XMLRPC.

IPAdresse  = self.REQUEST[REMOTE_ADDR]
print ip:,IPAdresse,requests counting of lines,self.getForm
('min'),to,self.getForm('max')
... #some processing here. creation of XMLData
print sending results to +IPAdresse
return XMLData
/zope/python


Zope says :

zope traces to the console
ip: 10.75.49.155 requests counting of lines 10 to 20
ip: 10.75.49.51 requests counting of lines 10 to 20
sending results to 10.75.49.155
sending results to 10.75.49.51
ip: 10.75.49.51 requests counting of lines 10 to 20
sending results to 10.75.49.51
/zope trace



instead of strace try tcpdump, much more helpful:
tcpdump -i INTERFACE -s 0 -A HOST HOST AND PORT PORT
should show the reality

Best regards,

   Patrick
___
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 pretends to receive and send XMLRPC data, but strace sees nothing !

2007-01-18 Thread Andreas Jung



--On 18. Januar 2007 16:40:02 +0100 Patrick Gerken 
[EMAIL PROTECTED] w


instead of strace try tcpdump, much more helpful:
tcpdump -i INTERFACE -s 0 -A HOST HOST AND PORT PORT
should show the reality



tcpflow is much nicer and show the HTTP traffic in a decoded way.

-aj

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


[Zope] Zope 3 Boot Camp and Sprint registration open

2007-01-18 Thread Chris Calloway
The Triangle (NC) Zope and Python Users Group invites you to register for Camp 5
and the BBQ Sprint:

http://trizpug.org/boot-camp/camp5/

This is a Zope 3 boot camp followed by a Plone 3 sprint. The boot camp is taught
by Philipp von Weitershausen, author of Web Component Development with Zope 3.
The training has previously only been offered in Europe and is now available in
North America for the first time. The sprint includes several sponsored and
invited sprinters.

TriZPUG hopes you will participate in Camp 5 in Chapel Hill, NC.

Camp 5: Saturday March 10 - Tuesday March 13, 2007
BBQ Sprint: Wednesday March 14 - Saturday March 17, 2007

-- 
Sincerely,

Chris Calloway
http://www.seacoos.org
office: 332 Chapman Hall   phone: (919) 962-4323
mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599

___
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] Giving access to error_log.showEntry to non-Manager users

2007-01-18 Thread martin.gfeller

Stuff that starts with 'manage_' always requires the Manager role.

It seems that this is declared in App.Management.Navigation as:
security.declareProtected(view_management_screens,
'manage_page_header')

However, I found a way around: Using the call error_log/getLogEntryById
instead of the error_log/showEntry that is returned by error_log_url, I
get
the same information outside of the management screens (it only needs 
'Log Site Errors' permission.

Best regards,
Martin Gfeller

___
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 pretends to receive and send XMLRPC data, but strace sees nothing ! (fwd)

2007-01-18 Thread Andreas Jung

Please keep the discussion on the list and don't try to address helpdesk
requests to individuals.

-aj

 Forwarded Message 
Date: 18. Januar 2007 19:05:28 +0100
From: yacine chaouche [EMAIL PROTECTED]
To: Andreas Jung [EMAIL PROTECTED]
Subject: Re: [Zope] Zope pretends to receive and send XMLRPC data, but 
strace sees nothing !


2007/1/18, Andreas Jung [EMAIL PROTECTED]:




--On 18. Januar 2007 16:40:02 +0100 Patrick Gerken
[EMAIL PROTECTED] w

 instead of strace try tcpdump, much more helpful:
 tcpdump -i INTERFACE -s 0 -A HOST HOST AND PORT PORT
 should show the reality


tcpflow is much nicer and show the HTTP traffic in a decoded way.

-aj



Thank you Andreas for showing me this nice tool which is tcpflow.

Thanks to it, I am now sure that the probleme is coming from zope.


Would you take a look at this :
[EMAIL PROTECTED]:~/HTTPCONNECTIONS# tcpflow host 10.75.49.100 and port 8081
tcpflow[20104]: listening on eth0

The tcpflow is run on the 10.75.49.51 machine, the one that zope thinks it
sends two times the XMLRPC query.
10.75.49.100 is the server that runs zope.

Now i click on the button, on both browsers (remember they are on different
machines), invoking the method toutCompter via xmlhttprequest, and wait
for zope to complete the requests :

zope trace to the console
ip: 10.75.49.155 requests counting of lines 1 to 11
ip: 10.75.49.51 requests counting of lines 1 to 11
sending results to 10.75.49.155
sending results to 10.75.49.51
ip: 10.75.49.51 requests counting of lines 1 to 11
sending results to 10.75.49.51
/zope trace


Zope says he got 2 requests form 10.75.49.51 and sent it the results 2
times. Ok, let's check the tcpflow then for these supposed connections :
[EMAIL PROTECTED]:~/HTTPCONNECTIONS# ls
total 8,0K
-rw-r--r-- 1 root root 873 2007-01-18 18:52
010.075.049.051.41131-010.075.049.100.08081
-rw-r--r-- 1 root root 607 2007-01-18 18:53
010.075.049.100.08081-010.075.049.051.41131

Allright, first file (machine to server):

[EMAIL PROTECTED]:~/HTTPCONNECTIONS# cat 
010.075.049.051.41131-010.075.049.100.08081
POST /aef/rechercheMultiligne/toutCompter HTTP/1.1
Host: 10.75.49.100:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1) Gecko/20061010
Firefox/2.0
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: fr,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Referer: http://10.75.49.100:8081/aef/rechercheMultiligne
Content-Length: 224
Cookie: _ZopeId=58653529A2r8NuahgXc
Pragma: no-cache
Cache-Control: no-cache

requete_1=ape%2012*requete_2=ape%2012*requete_3=ape%2012*requete_4=ape%2
012*requete_5=ape%2012*requete_6=ape%2012*requete_7=ape%2012*requete_8=
ape%2012*requete_9=ape%2012*requete_10=ape%2012*borneInf=0borneSup=
10[EMAIL PROTECTED]:~/HTTPCONNECTIONS#


Allright, there is only ONE POST request. So zope didnt really got two
requests. Now let's see if it sent the data two times as it presumes :

[EMAIL PROTECTED]:~/HTTPCONNECTIONS# cat 
010.075.049.100.08081-010.075.049.051.41131
HTTP/1.1 200 OK
Server: Zope/(Zope 2.9.0-, python 2.4.2, linux2) ZServer/1.1
Date: Thu, 18 Jan 2007 17:51:42 GMT
Content-Length: 413
Charset: utf-8
Content-Type: text/xml; charset=utf-8

?xml version=1.0 encoding=utf-8 ?comptagescomptage
numLigne=13/comptagecomptage numLigne=23/comptagecomptage
numLigne=33/comptagecomptage numLigne=43/comptagecomptage
numLigne=53/comptagecomptage numLigne=63/comptagecomptage
numLigne=73/comptagecomptage numLigne=83/comptagecomptage
numLigne=93/comptagecomptage numLigne=103/comptage/comptages
[EMAIL PROTECTED]:~/HTTPCONNECTIONS#

The results were sent just one time, not two.

What is going on here ?

Any comment would be really appreciated.

Thanks,
Y.Chaouche

-- End Forwarded Message --



--
ZOPYX Ltd.  Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope  Plone development, Consulting


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


Re: [Zope] FW: Problem Starting Zope after Installation

2007-01-18 Thread Jonathan
What version of python are you running? (you need 2.3.4 or better)


Jonathan
  - Original Message - 
  From: Ken Winter 
  To: Zope List 
  Sent: Thursday, January 18, 2007 2:40 PM
  Subject: [Zope] FW: Problem Starting Zope after Installation


  Hi Zope ~



  I just installed Zope 2.8.8 (version selected to match a server I'm 
developing for) on my Windows XP machine, using the instructions in the Zope 
Book (http://www.plope.com/Books/2_7Edition/InstallingZope.stx#0-0), and 
electing not to run it as a service.  I can't get it to start - see the 
attached screen shot for the failure messages.



  ~ TIA

  ~ Ken



--


  ___
  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] FW: Problem Starting Zope after Installation

2007-01-18 Thread rawsystems
your datetime directory should be named DateTime...
Case matters.

hth
bobb


  - Original Message - 
  From: Ken Winter 
  To: Zope List 
  Sent: Thursday, January 18, 2007 2:40 PM
  Subject: [Zope] FW: Problem Starting Zope after Installation


  Hi Zope ~



  I just installed Zope 2.8.8 (version selected to match a server I'm 
developing for) on my Windows XP machine, using the instructions in the Zope 
Book (http://www.plope.com/Books/2_7Edition/InstallingZope.stx#0-0), and 
electing not to run it as a service.  I can't get it to start - see the 
attached screen shot for the failure messages.



  ~ TIA

  ~ Ken



--


  ___
  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] FW: Problem Starting Zope after Installation

2007-01-18 Thread Ken Winter
I searched my C: drive for everything with datetime (any case) in the
title.  

 

The only relevant datetime (any case) *folder* is C:\Program
Files\Zope-2.8.8-final\lib\python\DateTime\, and it is correctly cased.  

 

There are lots of *files* with datetime (various cases) in their names,
e.g. C:\Program Files\Zope-2.8.8-final\lib\python\DateTime\DateTuime.py and
C:\Program Files\Zope-2.8.8-final\bin\DLLs\datetime.pyd.  

 

Could any of these be relevant?

 

~ Thanks 

~ Ken

 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 18, 2007 7:44 PM
To: Ken Winter; Zope List
Subject: Re: [Zope] FW: Problem Starting Zope after Installation

 

your datetime directory should be named DateTime...

Case matters.

 

hth

bobb

 

 

- Original Message - 

From: Ken Winter mailto:[EMAIL PROTECTED]  

To: Zope List mailto:zope@zope.org  

Sent: Thursday, January 18, 2007 2:40 PM

Subject: [Zope] FW: Problem Starting Zope after Installation

 

Hi Zope ~

 

I just installed Zope 2.8.8 (version selected to match a server I'm
developing for) on my Windows XP machine, using the instructions in the Zope
Book (http://www.plope.com/Books/2_7Edition/InstallingZope.stx#0-0), and
electing not to run it as a service.  I can't get it to start - see the
attached screen shot for the failure messages.

 

~ TIA

~ Ken


  _  


___
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] FW: Problem Starting Zope after Installation

2007-01-18 Thread rawsystems
I wonder why it was not cased in the output in your first message.  This is 
strange.
Which batch file do you start it with? can you post it here?
Which version of python are you using? (just for giggles)

Bobb

PS: If you're early in the installation... which you are it looks like you may 
want to punt and try it again.
PSS: I assume your ...ateTime\DateTuime.py  below is a typeo, otherwise, that's 
your problem.

- Original Message - 
  From: Ken Winter 
  To: [EMAIL PROTECTED] ; 'Zope List' 
  Sent: Thursday, January 18, 2007 8:05 PM
  Subject: RE: [Zope] FW: Problem Starting Zope after Installation


  I searched my C: drive for everything with datetime (any case) in the 
title.  



  The only relevant datetime (any case) *folder* is C:\Program 
Files\Zope-2.8.8-final\lib\python\DateTime\, and it is correctly cased.  



  There are lots of *files* with datetime (various cases) in their names, 
e.g. C:\Program Files\Zope-2.8.8-final\lib\python\DateTime\DateTuime.py and 
C:\Program Files\Zope-2.8.8-final\bin\DLLs\datetime.pyd.  



  Could any of these be relevant?



  ~ Thanks 

  ~ Ken





  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, January 18, 2007 7:44 PM
  To: Ken Winter; Zope List
  Subject: Re: [Zope] FW: Problem Starting Zope after Installation



  your datetime directory should be named DateTime...

  Case matters.



  hth

  bobb





- Original Message - 

From: Ken Winter 

To: Zope List 

Sent: Thursday, January 18, 2007 2:40 PM

Subject: [Zope] FW: Problem Starting Zope after Installation



Hi Zope ~



I just installed Zope 2.8.8 (version selected to match a server I'm 
developing for) on my Windows XP machine, using the instructions in the Zope 
Book (http://www.plope.com/Books/2_7Edition/InstallingZope.stx#0-0), and 
electing not to run it as a service.  I can't get it to start - see the 
attached screen shot for the failure messages.



~ TIA

~ Ken




___
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 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 pretends to receive and send XMLRPC data, but strace sees nothing ! (fwd)

2007-01-18 Thread Gabriel Genellina

At Thursday 18/1/2007 16:30, Andreas Jung wrote:



zope trace to the console
ip: 10.75.49.155 requests counting of lines 1 to 11
ip: 10.75.49.51 requests counting of lines 1 to 11
sending results to 10.75.49.155
sending results to 10.75.49.51
ip: 10.75.49.51 requests counting of lines 1 to 11
sending results to 10.75.49.51
/zope trace


Zope says he got 2 requests form 10.75.49.51 and sent it the results 2
times. Ok, let's check the tcpflow then for these supposed connections :
[...]
Allright, there is only ONE POST request. So zope didnt really got two
requests. Now let's see if it sent the data two times as it presumes :
[...]
The results were sent just one time, not two.

What is going on here ?


What does the toutCompter method really does? Does it modify some 
object state? That might provoke a ConflictError, forcing a 
transaction abort and the request to be re-tried (up to three times, 
silently, then it goes logged).



--
Gabriel Genellina
Softlab SRL 







__ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 


___
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-DB] How lunch SQL request from python script ?

2007-01-18 Thread Charlie Clark

Am 18.01.2007, 11:52 Uhr, schrieb CERETTO Thierry [EMAIL PROTECTED]:


select distinct c.id_risque, c.libelle_risque, c.id_fiche, c.id_portee,
c.url_info
from (mots a join amotrisque b on a.id_mot = b.id_mot )
join risques c on b.id_risque = c.id_risque
where a.mot_MAJ like '%@@CRITERE1@@%'
union
select distinct c.id_risque, c.libelle_risque, c.id_fiche, c.id_portee,
c.url_info
from (mots a join amotrisque b on a.id_mot = b.id_mot )
join risques c on b.id_risque = c.id_risque
where a.mot_MAJ like '%@@CRITERE2@@%'
union

***
where  %@@CRITERE1@@' , %@@CRITERE2@@, ...,  are words filled in
textfield (separate by a space).



If you are simply adding results of the same query but different results  
then do not use UNION!!!
Run the same query three times with different parameters and simply add  
the results together in a script.


Your ZSQL should look something like this

select distinct c.id_risque, c.libelle_risque, c.id_fiche, c.id_portee,
c.url_info

from (mots a join amotrisque b on a.id_mot = b.id_mot )

 join risques c on b.id_risque = c.id_risque

where a.mot_MAJ like dtml-sqlvar '%@@' + CRITERE + '@@%' # or use  
dtml-sqltest if you prefer


call this from a PythonScript

criteria = ['n'import quoi', 'depardieu', 'segolene', 'sarko']

results = []
for c in criteria:
 results = context.ZSQLMethod(CRITERE=c)

This will work for fairly simple SQL but if you want to create your SQL  
dynamically (and I don't think this is such a good idea) then you should  
use a different template than ZSQL. With our mxODBC Zope DA you can pass  
your SQL directly into the execute method of a DA connection object.


Charlie
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB]found reason: sql query works in database connector but not in ZSQL method

2007-01-18 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi there,

I think I found the reason, for my problems with stored procedures.
it seems that on can not call a stored MySQL 5.0x procedure from zope
that returns a data set.
when I call the body of the stored procedure everything works fine.

what I now do as an interim solution, I call the read only procedures
directly from python.
procedures that alter data i call from a zope connector.

I would be glad to here of any reason not to do this.

thanks for your help.

robert
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFr6c9GaryJ0T9kUYRAlkiAJ9TZ3rKw3iiTHuZ1fiQuJE6Sdoa0wCfZr63
uNOpVr8pc+rYV6jwbZ9l6sI=
=p3jD
-END PGP SIGNATURE-
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB]found reason: sql query works in database connector but not in ZSQL method

2007-01-18 Thread Charlie Clark

Am 18.01.2007, 17:58 Uhr, schrieb robert rottermann [EMAIL PROTECTED]:


I think I found the reason, for my problems with stored procedures.
it seems that on can not call a stored MySQL 5.0x procedure from zope
that returns a data set.


If you use the mxODBC Zope DA callproc() method then you can read the last  
result set returned by a procedure.



when I call the body of the stored procedure everything works fine.
what I now do as an interim solution, I call the read only procedures
directly from python.
procedures that alter data i call from a zope connector.
I would be glad to here of any reason not to do this.


Yes, if you really do something outside of Zope then you are compromising  
your transactional integrity.


Charlie


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