Re: [Zope] Monkey Patching Grief with Zope 2.9.4

2006-09-28 Thread Stefan H. Holek
Zope and ZODB switched to new-style classes. Stefan On 26. Sep 2006, at 22:52, Mark Wilson wrote: I'd be interested to hear if anyone has any info about why and how this change was made to Zope. -- Anything that, in happening, causes itself to happen again, happens again. --Douglas

Re: [Zope] automated object exporting

2006-09-28 Thread Chris Withers
Jonathan wrote: If you are in a *nix environment i would suggest investigating 'cron' and using the 'manage_exportObject' method (google away!) If this is for backup, I wouldn't bother. Just use repozo like you're supposed to ;-) Chris -- Simplistix - Content Management, Zope Python

Re: [Zope] Dictionary in ZPT

2006-09-28 Thread Chris Withers
Pascal Peregrina wrote: Hi, I am not sure about your use case, but this should work: ... tal:define=global count python: 0; global data python: {} ... tal:define=null python: data.update({'jname':jname}); ... ...and anyone writing code like that should be taken out back and loudly shot...

Re: [Zope] Dictionary in ZPT

2006-09-28 Thread Pascal Peregrina
100% agree... Just answered the specific question ;) De : Chris Withers [EMAIL PROTECTED] Date : Thu, 28 Sep 2006 09:07:33 +0100 À : Pascal Peregrina [EMAIL PROTECTED] Cc : Alan [EMAIL PROTECTED], zope@zope.org Objet : Re: [Zope] Dictionary in ZPT Pascal Peregrina wrote: Hi, I am not

[Zope] Re: automated object exporting

2006-09-28 Thread Josef Meile
Hi Sascha, I have a Zope object (a Plone site, to be specific) that I would like to have exported on a regular basis so I can back it up to another server. While I am familiar with Python, I'm not familiar with the specific methods involved in interacting with Zope for this. How would I go

[Zope] POST from Zope to external server and receive RESPONSE

2006-09-28 Thread [EMAIL PROTECTED]
Hello folks, I'm sure this question has been answered before but bear with me - Zope isn't my forte and I couldn't see anything like the problem I'd like to solve on the Zope list. I've inherited a project that now needs to post an XML packet to an ecommerce gateway, ie a user submits, via a

[Zope] Re: POST from Zope to external server and receive RESPONSE

2006-09-28 Thread Michael Haubenwallner
[EMAIL PROTECTED] wrote: Hello folks, I'm sure this question has been answered before but bear with me - Zope isn't my forte and I couldn't see anything like the problem I'd like to solve on the Zope list. I've inherited a project that now needs to post an XML packet to an ecommerce

Re: [Zope] POST from Zope to external server and receive RESPONSE

2006-09-28 Thread Paul Winkler
On Thu, Sep 28, 2006 at 10:42:18PM +1000, [EMAIL PROTECTED] wrote: I've inherited a project that now needs to post an XML packet to an ecommerce gateway, ie a user submits, via a form, credit card details which are posted to a Zope server. The Zope server then builds an XML packet and wants

Re: [Zope] User management messed up?

2006-09-28 Thread Fabian Scheler
Turning on verbose-security (and setting the associated security-policy-implementation python) in zope.conf may provide some clues. thanks for the hint - apparently some checkmarks were missing for 'Authenticated' now the problem seems to be solved Ciao, Fabian

[Zope] Re: A Quick Event-based Cataloging How-to for Zope 2

2006-09-28 Thread whit
thanks Chris! -w Chris Withers wrote: Hi All, Just been playing with this and found it remarkably easy, so thought I'd pass it on. If anyone can think of a better place than the mailing list archives for this, please let me know! Anyway, so I'm building a Zope 2 app where I need to index

[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/ updated externals to Zope 3.3.0 branch

2006-09-28 Thread Andreas Jung
Log message for revision 70408: updated externals to Zope 3.3.0 branch Changed: _U Zope/branches/2.10/lib/python/ _U Zope/branches/2.10/lib/python/zope/app/ -=- Property changes on: Zope/branches/2.10/lib/python ___

[Zope-Checkins] SVN: Zope/branches/2.10/ update for Zope 2.10.0 final

2006-09-28 Thread Andreas Jung
Log message for revision 70409: update for Zope 2.10.0 final Changed: U Zope/branches/2.10/doc/CHANGES.txt U Zope/branches/2.10/inst/WinBuilders/mk/zope.mk U Zope/branches/2.10/inst/versions.py -=- Modified: Zope/branches/2.10/doc/CHANGES.txt

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-09-28 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7897 Blamelist:

[Zope-dev] buildbot failure in Zope trunk 2.4 Windows 2000 zc-bbwin6

2006-09-28 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 zc-bbwin6. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7897 Blamelist:

[Zope-dev] buildbot failure in Zope branches 2.10 2.4 Linux zc-buildbot

2006-09-28 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7900 Blamelist:

[Zope-dev] buildbot failure in Zope branches 2.10 2.4 Windows 2000 zc-bbwin2

2006-09-28 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Windows 2000 zc-bbwin2. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 7900 Blamelist:

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Chris Withers
Jonathan wrote: BTW - nothing beats ZClasses and DTML for quick-and-dirty demos, one-time applications, and rapid-prototyping! I prefer to use page templates, python scripts and PropertyManagers for this ;-) Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] In Defense of ZClasses

2006-09-28 Thread Martijn Faassen
Christopher Lozinski wrote: At the risk of going down in history (and Google Searches) as the man who supports ZClasses, I think that someone deserves to come to their defense. I think that there is a different tool for every job. Sometimes I think Plone is the best solution, sometimes Zope

Re: [Zope-dev] In Defense of ZClasses

2006-09-28 Thread Lennart Regebro
My 0.02 EUR: I like the idea and aim of ZClasses. However: I think the implementation makes them more difficult to create than disk-based classes, which defeats the purpose. I also think that without exact knowledge of the limitations of ZClasses they have a high risk of programming yourself

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Lennart Regebro
On 9/27/06, Andreas Jung [EMAIL PROTECTED] wrote: It's definitely time to work on a replacement. Yes. And here is my short vision of that. Comments are appreciated. 1. We have a base content class used to create content objects. This has the concept of type, pretty much like CMFs portal_type.

[Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread Philipp von Weitershausen
Christopher Lozinski wrote: I think that there is a different tool for every job. Sometimes I think Plone is the best solution, sometimes Zope 2 is the best solution. Sometimes Zope 3is the best solution, and sometimes ZClasses are the best solution. Yes, you're right about different

[Zope-dev] Re: Future of ZClasses

2006-09-28 Thread Philipp von Weitershausen
Lennart Regebro wrote: On 9/27/06, Andreas Jung [EMAIL PROTECTED] wrote: It's definitely time to work on a replacement. Yes. And here is my short vision of that. Comments are appreciated. Have you looked at zope.app.schemacontent, Sidnei's prototype for TTW-schemas and content based on

[Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread Rocky Burt
On Thu, 2006-28-09 at 14:13 +0200, Philipp von Weitershausen wrote: The problem is the lack of an exit strategy. If you only need a simpel web app, fine. If you're creating a prototype, ZClasses are hard to get out of without rewriting a whole lot of code. In the words of The Pragmatic

Re: [Zope-dev] In Defense of ZClasses

2006-09-28 Thread Anthony Baxter
On 9/28/06, Lennart Regebro [EMAIL PROTECTED] wrote: My 0.02 EUR: I like the idea and aim of ZClasses. However: I think the implementation makes them more difficult to create than disk-based classes, which defeats the purpose. I also think that without exact knowledge of the limitations of

[Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread Christopher Lozinski
Philipp von weitershausen wrote: For these use cases it is not necessary to use a complex machinery like ZClasses. The objects we're talking about here could be very very dull, to the point where we don't need something like a dynamically constructed class. I appreciate all your comments.

Re: [Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread Jim Fulton
Philipp von Weitershausen wrote: Christopher Lozinski wrote: I think that there is a different tool for every job. Sometimes I think Plone is the best solution, sometimes Zope 2 is the best solution. Sometimes Zope 3is the best solution, and sometimes ZClasses are the best solution. I

[Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread Christopher Lozinski
Jim Fulton asked Chris, have you tried ArchGenXML? I did do a project in Archetypes, in Plone. If I recall correctly, Archetypes requires CMF. And that is way too much code to add to my application. My workflow requirements are trivial. I think that Archetypes is quite brilliant at

[Zope-dev] Re: PYTHONPATH

2006-09-28 Thread whit
Paul Winkler wrote: On Wed, Sep 27, 2006 at 06:26:49PM -0500, whit wrote: It seems like if you've set your PYTHONPATH and start zope, you would expect that path to be available. Indeed. Anyone object to this going forward? Anyone think this is a bug that should be fixed(on older versions)?

[Zope-dev] Re: In Defense of ZClasses

2006-09-28 Thread whit
if zclasses(and some of the niceties that depended on them like ZPatterns) could reliably roundtrip to the filesystem, would we be having this conversation? I don't know...it seems like if you tackled the less sexy problem of making zclasses play with normal developer tool chain, the divide

[Zope-dev] Re: Future of ZClasses

2006-09-28 Thread Lennart Regebro
Thanks for the comments. For all the things you wrote that I deleted, I would just say Exactly! :-) Here are the things that are not exactly!: On 9/28/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Have you looked at zope.app.schemacontent, Sidnei's prototype for TTW-schemas and content

[Zope-dev] Re: ZClass Maintenance

2006-09-28 Thread whit
ZClasses don't get better from writing long postings. Ah, yes but I can write much faster than I can code. What am I doing on this list!?! All I have to do is to motivate someone else to do the work! programmers are generally motivated by concrete contributions ie money, code, beer, or

[Zope-dev] Distributed Object Use Case for Zope 3 developers.

2006-09-28 Thread Christopher Lozinski
Martijn Faasen makes the point that it is important for the Zope 3 developers to have good use cases. So here we go. Here is my distributed Object use case for Zope 3 developers. Can I do this in Zope 3? I run a job board for each technology. I have one job board for zope/plone

[Zope-dev] wsgi/paste pipelines in Zope 2 or 3?

2006-09-28 Thread Brad Clements
I've been doing a lot of work with Paste in the past year, cutting down on my deployments of Zope. Now I'm taking a new look at Zope 3 and Zope 2, and wondering if it's possible to use paste pipeline/filter in either version of Zope. I've looked at

Re: [Zope-dev] wsgi/paste pipelines in Zope 2 or 3?

2006-09-28 Thread Sidnei da Silva
On Thu, Sep 28, 2006 at 01:11:05PM -0400, Brad Clements wrote: | I've been doing a lot of work with Paste in the past year, cutting down on my | deployments of Zope. | | Now I'm taking a new look at Zope 3 and Zope 2, and wondering if it's possible to | use paste pipeline/filter in either

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Dieter Maurer
Jonathan wrote at 2006-9-27 12:42 -0400: I found a thread (from March 2006) discussing the future of zclasses, but i could not determine if a 'final' decision had been made. According to Changes.txt for Zope 2.10.0: ZClasses are deprecated and should no longer be used. In addition any code

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: zope-dev@zope.org Sent: Thursday, September 28, 2006 2:49 PM Subject: Re: [Zope-dev] Future of ZClasses Jonathan wrote at 2006-9-27 12:42 -0400: I found a thread (from March 2006)

Re: [Zope-dev] Re: Future of ZClasses

2006-09-28 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2006-9-28 14:23 +0200: ... Why not set marker interfaces directly on the objects? That whole type thing is unnecessary. Just use interfaces. Usually, a type is seen as a set of objects, its type instances. It is quite nice to be able to work on a object set

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Dieter Maurer
Jonathan wrote at 2006-9-28 15:11 -0400: ... For internal applications I would rather leave the ZClasses in place and try to fix whatever breaks when zope is upgraded, however the application that caused my initial question is for an external client (with no in-house zope expertise of their

Re: [Zope-dev] Future of ZClasses

2006-09-28 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: zope-dev@zope.org Sent: Thursday, September 28, 2006 4:21 PM Subject: Re: [Zope-dev] Future of ZClasses Jonathan wrote at 2006-9-28 15:11 -0400: ... For internal applications I would

[Zope-dev] Re: wsgi/paste pipelines in Zope 2 or 3?

2006-09-28 Thread Rob Miller
Sidnei da Silva wrote: On Thu, Sep 28, 2006 at 01:11:05PM -0400, Brad Clements wrote: | I've been doing a lot of work with Paste in the past year, cutting down on my | deployments of Zope. | | Now I'm taking a new look at Zope 3 and Zope 2, and wondering if it's possible to | use paste

Re: [Zope-dev] Re: Future of ZClasses

2006-09-28 Thread Philipp von Weitershausen
Dieter Maurer wrote: Philipp von Weitershausen wrote at 2006-9-28 14:23 +0200: ... Why not set marker interfaces directly on the objects? That whole type thing is unnecessary. Just use interfaces. Usually, a type is seen as a set of objects, its type instances. It is quite nice to be able

[Zope-dev] Re: Future of ZClasses

2006-09-28 Thread Philipp von Weitershausen
Dieter Maurer wrote: Also the thread that ZClass (re)distribution code will be removed need not worry you too much. Fortunately, Zope is open source and you can simply combine the new release with pieces of an older release to retain features essential to you. I see no problem in making the

Re: [ZWeb] serving up static files from www.zope.org

2006-09-28 Thread Martijn Faassen
Chris Withers wrote: Justizin wrote: I don't want to take all the cookies, but like I said, I already own a bunch of apaches, including siggraph.org and turing.acm.org, as a volunteer. I'd prefer the stuff we're talking about to live ideally on ZC's hardware... I don't think Justizin was

Re: [ZWeb] serving up static files from www.zope.org

2006-09-28 Thread Justizin
On 9/28/06, Martijn Faassen [EMAIL PROTECTED] wrote: Chris Withers wrote: Justizin wrote: I don't want to take all the cookies, but like I said, I already own a bunch of apaches, including siggraph.org and turing.acm.org, as a volunteer. I'd prefer the stuff we're talking about to live

Re: [Zope-DB] Getting a cursor?

2006-09-28 Thread Charlie Clark
Am 28.09.2006, 00:26 Uhr, schrieb Paul Winkler [EMAIL PROTECTED]: I'll be writing product code, and am currently just experimenting via zopectl debug, so I have full access to everything. But I still can't see how to get a cursor or anything else that will let me retrieve multiple record sets

Re: [Zope-DB] free database adapters ,...

2006-09-28 Thread Jonathan
- Original Message - From: shahrzad khorrami [EMAIL PROTECTED] To: zope-db@zope.org Sent: Thursday, September 28, 2006 3:44 AM Subject: [Zope-DB] free database adapters ,... hi all, I noticed mxODBC is not a free download. Are there any database adapters and drivers that are free

Re: [Zope-DB] Getting a cursor?

2006-09-28 Thread Paul Winkler
On Thu, Sep 28, 2006 at 06:11:01PM +0200, Charlie Clark wrote: Am 28.09.2006, 17:30 Uhr, schrieb Paul Winkler [EMAIL PROTECTED]: conn.callproc(procedure_name, params) while True: rset = conn.fetchone() No dice, it barfs on that line: Traceback (most recent call last): File stdin,

Re: [Zope-DB] Getting a cursor?

2006-09-28 Thread Charlie Clark
Am 28.09.2006, 18:33 Uhr, schrieb Paul Winkler [EMAIL PROTECTED]: Yes! Thank you very much. Somehow I failed to notice that the connection had a connection attribute. Not surprising really. Most people are quite happy with ZopeDA's the way they are and so we only very rarely get questions

Re: [Zope-DB] Zope database connectivity

2006-09-28 Thread Dieter . Maurer
Maciej Wisniowski wrote at 2006-9-27 21:38 +0200: ... To be able to finish whole transaction for the relational DB... No. There are two reasons: 1. that later operations see the effects of earlier operations in the same request and more importantly 2. to avoid deadlocks.

Re: [Zope-DB] Zope database connectivity

2006-09-28 Thread Dieter Maurer
Maciej Wisniowski wrote at 2006-9-27 22:40 +0200: ... It can lead to nasty, apparently non-deterministic effects. You may lose your database connection mid transaction and part of what you think is a transaction (i.e. atomical) can be lost. What are the circumstances under which this

Re: [Zope-DB] Getting a cursor?

2006-09-28 Thread Dieter Maurer
Paul Winkler wrote at 2006-9-27 17:44 -0400: I have the impression that there is no standard way to get access to a cursor from a Zope DA. Is that true? True. But you can get at a cursor for each DA using DA specific implementation details, as the DA needs a cursor itself. And as most Zope

Re: [Zope-DB] Zope database connectivity

2006-09-28 Thread Maciej Wisniowski
If these conditions are met, you will lose your connection. Still nothing bad happens as the transaction still holds a reference to it and may eventually commit/abort it at transaction end time. (...) And as they are very rare and apparently non-deterministic, they are almost impossible to