[Zope] Re: error installing zope from source

2005-12-22 Thread Maurits van Rees
Op 2005-12-20, adeline nombre schreef <[EMAIL PROTECTED]>:
>   the problem now is that when I do "make" there is this error
> message:" does not find file /usr/lib/python2.3/config/Makefile
> . And when I look in /usr/lib/python2.3/ , there is no directory
> "config".
>   I have python2.3.
>   my OS is debian sarge.
>   Do u have an idea about what I should do?
> thank you very much

I also have Debian Sarge and I *do* have a file
/usr/lib/python2.3/config/Makefile.  I see this file belongs to the
python2.3-dev package.  So you need to install that. ('aptitude install
python2.3-dev' or similar.)

When you install Zope from source, you may want to install python from
source too.  At least that's what I see recommended often.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
   GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
"Do only what only you can do." --- Edsger Wybe Dijkstra

___
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] ANN: ZSyncer 0.7.1-beta1 released

2005-12-22 Thread Paul Winkler
ZSyncer 0.7.1-beta1 Released

ZSyncer is a Zope 2 product that allows you to synchronize and compare
objects from one zope (source) to another (destination). It is a lot
more convenient than the old manual export / transfer / import
procedure.

Version 0.7.1-beta1 (2005/12/22) is available for download from
sourceforge: 
http://sourceforge.net/project/showfiles.php?group_id=28073


This is a beta of a minor bugfix release. The fixes are all UI-related,
and thus 0.7.1 should interoperate well with 0.7.0.

I encourage everybody using (or thinking of using) 0.7.0 to upgrade to
0.7.1 so we can get some feedback and get another stable release out
soon.

Thanks!

-- 

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


Re: [Zope] apache open proxy configuration problem

2005-12-22 Thread Tino Wildenhain
Ed Colmar schrieb:
> 
> Hmm...
> 
> Ok the 404 thing I understand, but they are coming in at such a high
> rate it makes me nervous...  Maybe this is some form of distributed DOS
> attack?

Try to get another IP if this is possible. But else you dont
have any way to avoid it - we all have such in the logs when
we run public servers.

> On Closer inspection I do see some 200 codes in there as well, like:
> 
> 69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT
> 208.146.35.106:6667 HTTP/1.0" 200 82
> 69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT
> 208.146.35.106:6667 HTTP/1.0" 200 82
> 69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT
> 208.146.35.106:6667 HTTP/1.0" 200 82
> 69.70.140.130 - - [22/Dec/2005:13:41:00 -0800] "CONNECT
> 208.146.35.106:6667 HTTP/1.0" 200 82
> 
> Should I be worried about this one?

CONNECT is ssl, did you set up SSL for your site?

If not you can just disallow CONNECT in apache.

___
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] apache open proxy configuration problem

2005-12-22 Thread Ed Colmar


Hmm...

Ok the 404 thing I understand, but they are coming in at such a high 
rate it makes me nervous...  Maybe this is some form of distributed DOS 
attack?


On Closer inspection I do see some 200 codes in there as well, like:

69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT 
208.146.35.106:6667 HTTP/1.0" 200 82
69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT 
208.146.35.106:6667 HTTP/1.0" 200 82
69.70.140.130 - - [22/Dec/2005:13:40:59 -0800] "CONNECT 
208.146.35.106:6667 HTTP/1.0" 200 82
69.70.140.130 - - [22/Dec/2005:13:41:00 -0800] "CONNECT 
208.146.35.106:6667 HTTP/1.0" 200 82


Should I be worried about this one?

Thanks for the help again guys!

Maybe I should migrate this thread over to apache forum instead, since 
it does not really have much to do with zope...???


-e-

Tino Wildenhain wrote:


Ed Colmar schrieb:
 


Hey Tino

Well, my access log fills up with lines like:

61.54.11.222 - - [21/Dec/2005:14:36:56 -0800] "GET
http://media.fastclick.net/w/get.media?sid=19765&m=3&tp=7&d=s&c=1
HTTP/1.1" 404 927
   



404 is fine. We all have that in our logs. There is nothing to worry.
Its just the usual internet business.

See: http://www.faqs.org/rfcs/rfc2616.html

404 Not Found


 



___
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] apache open proxy configuration problem

2005-12-22 Thread Tino Wildenhain
Ed Colmar schrieb:
> Hey Tino
> 
> Well, my access log fills up with lines like:
> 
> 61.54.11.222 - - [21/Dec/2005:14:36:56 -0800] "GET
> http://media.fastclick.net/w/get.media?sid=19765&m=3&tp=7&d=s&c=1
> HTTP/1.1" 404 927

404 is fine. We all have that in our logs. There is nothing to worry.
Its just the usual internet business.

See: http://www.faqs.org/rfcs/rfc2616.html

404 Not Found

___
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] where to put openflow in Zope3.1.0

2005-12-22 Thread Martijn Pieters
On 12/22/05, adeline nombre <[EMAIL PROTECTED]> wrote:
> Can somebody tell me where I have to put my openflow directory . I use
> Zope3.0.1.
> In the readme.txt file, it is said I have to put it in  lib/python/Products
> of my zope installation. but this directory does not exist. so where do I
> have to put it?

OpenFlow is a Zope 2 Product and I doubt it'll work with Zope 3. Zope
3 indeed does not have a Products directory.

--
Martijn Pieters
___
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] where to put openflow in Zope3.1.0

2005-12-22 Thread adeline nombre
HI  Can somebody tell me where I have to put my openflow directory . I use Zope3.0.1.  In the readme.txt file, it is said I have to put it in  lib/python/Products of my zope installation. but this directory does not exist. so where do I have to put it?  tanx.
		 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez la version beta.___
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] apache open proxy configuration problem

2005-12-22 Thread Ed Colmar

Ok...  So these are failed attempts.

good good. 

The key factor for me getting the RewriteRule to work without using 
ProxyPass was to make apache run as user zope and group zope.  In case 
anyone else runs into a similar situation.


Thanks for all the help and guidance!

-e-

Martijn Pieters wrote:


On 12/22/05, Ed Colmar <[EMAIL PROTECTED]> wrote:
 


Well, my access log fills up with lines like:

61.54.11.222 - - [21/Dec/2005:14:36:56 -0800] "GET
http://media.fastclick.net/w/get.media?sid=19765&m=3&tp=7&d=s&c=1
HTTP/1.1" 404 927
   



Yeah so? They got a 404 response, a Not Found error. No proxying happening here!

--
Martijn Pieters
 



___
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] apache open proxy configuration problem

2005-12-22 Thread Martijn Pieters
On 12/22/05, Ed Colmar <[EMAIL PROTECTED]> wrote:
> Well, my access log fills up with lines like:
>
> 61.54.11.222 - - [21/Dec/2005:14:36:56 -0800] "GET
> http://media.fastclick.net/w/get.media?sid=19765&m=3&tp=7&d=s&c=1
> HTTP/1.1" 404 927

Yeah so? They got a 404 response, a Not Found error. No proxying happening here!

--
Martijn Pieters
___
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] apache open proxy configuration problem

2005-12-22 Thread Ed Colmar

Hey Tino

Well, my access log fills up with lines like:

61.54.11.222 - - [21/Dec/2005:14:36:56 -0800] "GET 
http://media.fastclick.net/w/get.media?sid=19765&m=3&tp=7&d=s&c=1 
HTTP/1.1" 404 927
59.32.21.156 - - [21/Dec/2005:14:37:10 -0800] "GET 
http://www.searchvill.com/index.php?uid=1077&REQ=Poker%20Betting 
HTTP/1.0" 404 935
222.208.183.2 - - [21/Dec/2005:14:40:05 -0800] "GET 
http://adsence.sogou.com/index.html?pid=info-xa163&ww=120&dc=3&dir=0&num=6&color=1&charset=gb 
HTTP/1.0" 404 936
222.208.183.2 - - [21/Dec/2005:14:40:06 -0800] "GET 
http://log.cpc.sohu.com:90/?pv.png HTTP/1.0" 200 589
213.226.83.21 - - [21/Dec/2005:14:40:27 -0800] "GET 
http://www.ccet-server.com/cgi-bin/ip.cgi HTTP/1.0" 404 933
212.30.78.125 - - [21/Dec/2005:14:41:20 -0800] "GET 
http://test.anonproxies.com/azenv.php?80 HTTP/1.0" 404 935
203.88.51.59 - - [21/Dec/2005:14:42:07 -0800] "GET 
http://www.abcseek.info/cgi-bin/ip1.cgi HTTP/1.0" 404 933
213.156.221.126 - - [21/Dec/2005:14:42:29 -0800] "POST 
http://66.96.85.136:80/checkp/env/env.php HTTP/1.0" 404 932
218.71.245.157 - - [21/Dec/2005:14:42:51 -0800] "GET 
http://umsky.com/prx.php HTTP/1.0" 404 933
83.133.146.243 - - [21/Dec/2005:14:43:41 -0800] "GET 
http://clickingagent.com/proxycheck.php?ip=66.92.14.218&port=80&loc= 
HTTP/1.1" 404 940


-e-

Tino Wildenhain wrote:


Ed Colmar schrieb:
 


Hey All..

I'm following up on this thread after lots of different configuration
attempts, reinstalling apache2 from source, more configuration attempts,
banging my head against the wall, and endless troubleshooting.. 
Unfortuantely I am still failing to configure this correctly.


Thankfully the people using my apache as a open proxy are so relentless
I only need to start apache for a few seconds to determine if the proxy
is still open or not...

So...  I've made quite a bit of progress, but I am still at a loss to
understand what is going on here   Possibly this is a question for
the apache forum, but I figured some of my fellow zope users might be
able to help, since all I'm using apache for is to rewrite for zope, and
log access.

I have cleaned up my virtual host directive to only use a single Rewrite
Rule (which works):
RewriteRule ^/(.*)
http://192.168.1.32:8080/VirtualHostBase/http/www.myserver.net:80/myfolder/$1
[L,P]

Still the proxy was open and under attack.

   



I'm wondering where you get the impression you have an open proxy?
Given your configuration, no access can go outside your zope.

Sure people will try it all the time - but your apache still
delivers just your zope content.

Just try it out yourself!


 



___
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] Leave the ivory tower now!

2005-12-22 Thread Gert Thiel
Dear friends.

A few days ago the Ruby on Rails development team published the 1.0 release.
At that occasion the Zope fans are reminded how far Zope fell far behind in
terms of attention and recognized widespread.

Python has batteries included. Zope is a power plant. But still everyone
speaks of Django, Turbogears or Ruby on Rails. Even if they talk about the
shortcommings of J2EE.

Some of the best content management systems are build using Zope 2. CPS, ZMS
and my favourite: Plone. And Typo3 gets even more attention. Why?

Because we failed. We aren't marketing Zope at all. Have a look at zope.org.
Do you think, that any CEO will stay at that site more than 10 seconds? Have
a look at rubyonrails.org and cry. Zope 3.2 will be delivered soon. Have any
look at zope.org ‹ where isŠ You got it.

To a certain extent Zope 2 was attracting like a nuclear power plant.
Whenever I start programming with Zope 2, latest for Plone, I can feel its
power before even diving into it much, but I'm alarmed of its pitfalls at
the very same time. So all my hopes are with Zope 3 which enabled me without
hurting me yet. Will I get a truly powerful replacement for J2EE?

Here are my ideas to make Zope 3 the most successful framework ever:

Make them love Zope at the very first look:

* Make installing Zope a double-click or one-command-only experience and
* offer a 30 minutes tutorial of programming an useful application
  including an audiovisual show for an appetizer that offers a feeling
  of success.

Bribe the managers:

* Include Microsoft SQL-Server and Oracle relational database access.
* Include powerful XML processing facilities and
* include everything necessary and useful to build or use web services.

Enable the beginners:

* Easy to read and understand ‹ but still complete and current ‹
  documentation is a must.
* Avoid cluttering everything about Zope across articles, blogs, chats,
  mailing lists and wikis. Keep everything available and searchable at
  one central location.

Remember: The power of Ruby on Rails doesn't come from either Ruby or the
framework but from its community.

And ‹ of course ‹ make Zope 4 even better.

Regards,

  Gert

http://www.gertthiel.de/blog/drafts/ivory-tower/


___
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: [ANN] jsonserver 1.1.pre2 released (AJAX)

2005-12-22 Thread Balazs Ree
On Thu, 22 Dec 2005 14:19:25 + Martin Aspeli wrote:
>> Jsonserver provides an alternative way of AJAX client-server
>> communication on Zope.
> 
> This sounds quite interesting. Just wondering if you have any more
> specific demos, showing how it may be used in a real use case?

I agree that there would be need for more demos and I definitely want to
work more on them. I already have more use cases for Zope, Plone and
Archetypes to be implemented. If anyone has some ideas for good use cases,
please let me know. I would be especially happy to have some more "plain
Zope" use cases - since the technology is not limited to Plone.

I have also more ideas on how to extend this technology into various
directions but this exists only on a theoretical level.

-- 
Balazs Ree


___
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] [ANN] jsonserver 1.1.pre2 released (AJAX)

2005-12-22 Thread Balazs Ree
Jsonserver provides an alternative way of AJAX client-server
communication on Zope.

Jsonserver enables Zope to act as a JSON-RPC server. JSON-RPC is
an XML-RPC replacement. It is built on JSON, a javascript based
data interchange format. JSON has bindings for more languages. On
the client side, the "jsolait" javascript library contains both
JSON and JSON-RPC support, besides other utilities.

Characteristics of this approach are:

- You can bind methods in javascript to Zope methods, python
  scripts or page templates and call them up directly from
  javascript in a synchronous or asynchronous way (RPC).

- Both the call parameters and the return value can be strings,
  unicode strings, instances of any other builtin python data
  type, or structures built with the combination of tuples, lists
  and dicts. These get marshalled transparently with JSON.

- As a consequence there is no necessity to use XML to pass
  around structured data, you can just structure your data with
  python and pass it directly (but of course you also have the
  possibility to pass around XML).
  
- Passing of both positional and keyword parameters allows to
  call up page templates with request parameters.

- Full client compatibility with the Zope3 version of jsonserver,
  i.e.  the same client code will be able to run on Zope2 and
  Zope3 without a change.

This version, 1.1.pre2 is a pre-release and considered to be
beta. It works pretty well but there are things that might need
to change before the final release.

-- 
Balazs Ree, ree at ree.hu


___
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: [ANN] jsonserver 1.1.pre2 released (AJAX)

2005-12-22 Thread Martin Aspeli

Hi,


Jsonserver provides an alternative way of AJAX client-server
communication on Zope.


This sounds quite interesting. Just wondering if you have any more  
specific demos, showing how it may be used in a real use case?


Martin


--
(muted)

___
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 object list from python

2005-12-22 Thread Andreas Jung


By traversing the *whole* ZODB hierarchy (expensive!):

lst = context.ZopeFind(obj_metatypes=[zsql_metatype], search_sub=1)

or possibly

lst = context.superValues(zsql_metatype)

depending on your usecase...replace 'zsql_metatype' with the corresponding 
metatype for ZSQL method (look at the sources).


-aj

--On 22. Dezember 2005 14:05:19 +0100 Fabio <[EMAIL PROTECTED]> wrote:


Hi!
I need to get  all SQL Methods defined in Zope from python script. How
can I  do?

Thanks,
Fabio
--

Dott. Fabio Marcone

2T srl
Telefono+39 - 0871- 540154
Fax +39 - 0871- 571594
Email   [EMAIL PROTECTED]
Indirizzo   Viale B. Croce 573, 66013 Chieti Scalo (CH)
___
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 )






pgp6ykW93EsWD.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 object list from python

2005-12-22 Thread Fabio
Hi!
I need to get  all SQL Methods defined in Zope from python script. How can I 
do?

Thanks,
Fabio
-- 

Dott. Fabio Marcone

2T srl
Telefono+39 - 0871- 540154
Fax +39 - 0871- 571594
Email   [EMAIL PROTECTED]   
Indirizzo   Viale B. Croce 573, 66013 Chieti Scalo (CH)
___
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] question for anyone using apache on windows

2005-12-22 Thread michael nt milne
ok will do. Just that alot of people have apache experience on this list and I've got some really good help from it.On 12/21/05, Chris Withers <
[EMAIL PROTECTED]> wrote:I'm sure there's an Apache list you could be asking these questions,
this has nothing to do with Zope.#apache on irc.freenode.net is where I'd go ;-)Chrismichael nt milne wrote:> Hi>> Ok so I looked at this stuff but can't find anything listed for point 3.
> Also I had to set Plone to listen on 8080 within its config file and now get> Apache for my Plone domains. However they won't re-direct to the right site> within the Plone installation. I've achieved this on Unix with the virtual
> host stuff below.>>>1. Find the httpd.conf file (usually you will find it in a folder>called conf, config or something along those lines)>2. Inside the httpd.conf file uncomment the line *LoadModule
>rewrite_module modules/mod_rewrite.so* (remove the pound '#' sign from>in front of the line)>3. Also find the line *ClearModuleList* is uncommented then find and>make sure that the line *AddModule mod_rewrite.c* is not commented
>out.NameVirtualHost ip:80ServerName name>>RewriteEngine On>>RewriteRule ^/(.*)>>
http://ip:8080/VirtualHostBase/http/name:80/site/Virt>>ualHostRoot/$1 [L,P]>> On 12/19/05, michael nt milne <
[EMAIL PROTECTED]> wrote:>>>ok, i simply downloaded the Apache 2.0.55 release for Windoes from Apache.>>Thre RewriteEngine is set to on in the httpd.conf. God knows why the>>module wouldn't be available in the distribution. Do you know any
>>documentation on how to install on module at all? The unix version comes>>with it by default I think. **On 12/19/05, Andreas Jung <[EMAIL PROTECTED]
> wrote:>Likely the rewrite module isn't loaded (check the corresponding>>>LoadModule>>>statements of your configuration).>>-aj
>>--On 19. Dezember 2005 16:33:59 + michael nt milne>>>< [EMAIL PROTECTED]> wrote:>>Does RewriteEngine work on Apache for Windows 
2.0.5 ?I'm getting the following..Syntax error on line 960 of C:/Program Files/ApacheGroup/Apache2/conf/httpd.con
f:Invalid command 'RewriteEngine', perhaps mis-spelled or defined by amodule notincluded in the server configurationNote the errors or messages above, and press the  key to
>>exit.  22...>>>NameVirtualHost ip:80ServerName name
RewriteEngine OnRewriteRule ^/(.*)http://ip:8080/VirtualHostBase/http/name:80/site/VirtualHostRoot/$1 [L,P]
> 
>> ___> 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 )--Simplistix - Content Management, Zope & Python Consulting- http://www.simplistix.co.uk

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


Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers

Jan-Ole Esleben wrote:


That's my problem. Can you, from the ZOPE documentation, predict that
the example below will cause a ConflictError? 


Certainly, try and ask a simple version of these questions on 
zodb-dev@zope.org and let Tim or Dieter have some fun ;-)


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

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

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


Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers

Jan-Ole Esleben wrote:

1. In the example, just setting _p_changed=1 does _not_ lead to a
conflict error. 


I can assure you it will if any other connection to that ZODB does the 
same thing on the same object...



executed) it _does_. So there _is_ some implicit magical stuff going
on and ZOPE tries to take care that only subobjects change (but
incompletely)!


Rubbish. You're likely misunderstanding your own example, or not 
understanding the context in which it's executing...



2. You shouldn't use lists and dicts - it should say this "on the
front page". 


Why? You want us to rewrite all the docs just to cater for your weird 
use cases? Tell you what, how about you jost google for "zope conflict 
error" and have a read?!



3. It is especially confusing that ZOPE behaves differently when using
XML-RPC calls. 


It doesn't. It behaves exactly the same as for any other request, w.r.t. 
zodb transactions...



XML-RPC though! All the stuff that you claim as being obvious really
isn't all that obvious. 


Maybe for you ;-)


PersistentMapping etc., but I still don't know what _exactly_ to
expect from ZOPE in terms of behaviour with mutable objects that
aren't Persistent (because of the XML-RPC inconsistency 


There is NO xml-rpc inconsistency...


and the
self._p_changed inconsistency both mentioned above).


_p_changed is pretty hugely documented in all the zodb docs I've ever read.

I dunno, maybe you're stupid, lazy, or both, but please quite whining...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

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

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


Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers

Ole,

I'm getting pretty tired of this thread, even reading it is annoying. 
You're whining about stuff which isn't a problem, and making out like 
Zope/ZODB has all these big critical flaws, casting huge assertions 
without having enough understanding to make them...


Jan-Ole Esleben wrote:

  security.declareProtected("Use TestPChanged", "test_internal")
  def test_internal(self, args=None, args2=None):
"Called by test via XML-RPC"
if args2:
self.a.append(1)
self._p_changed = 1


What the hell are you doing that for?

If self.a is a simple python list, of course you're in trouble.
Make it a PersistentList, or better yet, an OOTreeSet, and you'll be 
much better off...


Zope obviously looks at the code, 


I can assure you Zope does ZERO code introspection...

Seriously, your examples are overcomplicated, your use cases are bizarre 
and your attitude of "it must be Zope's fault" is more than a little 
wearing.


No-one's forcing you to use Zope, I'd implore you to go and use another 
framework if you're so convinced Zope "does it wrong" ;-)


Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

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

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