Re: [Zope] image processing site quidance...

2006-02-23 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I don't have any experience writing external products... should be easy if I finish the python programming part as a simple traditional python release and then to implement it as a Zope product ? Yeah, sure be easy enough... and we're to

[Zope] Re: CMFExternalFile and huge ZODB pickles

2006-02-23 Thread Pawel Lewicki
Chris Withers napisał(a): Pawel Lewicki wrote: Any clues? Products used: - ExternalFile 1.2.0 - CMFExternalFile 0.5 - Plone 2.0.5 None of these are products I'd trust. Use a ZODB analysis tool to find out the types of objects you have in your database and see which product is causing the

Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Thomas Bennett
I'm running Zope 2.8.1-final, python 2.3.5, linux2 and Zope 2.6.1 python 2.1.3, linux2 on the same server so I don't see why you cant' also run Zope 2.9. More than likely each of your configurations have the same path to the lock file. Edit zopefolder/etc/zope.conf where zopefolder is the

Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 06:53, Lennart Regebro wrote: Ah, not in Zope 2.9 it seems. Is this expected, or an I doing something wrong? I'm running the Five tests with bin/zopectl test --dir Products/Five as usual, and having a set_trace() in the doctests behaves exactly as with the old test

Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 08:13, Lennart Regebro wrote: As you see, I can't even step into that next line. And even if I could, the necessity of having to step through the doctestrunning would be a major pain in the ass. Ok, I have never needed this. And I can see why it does not work.

[Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Brian Sullivan
I was assuming that it would somehow be easy to do the equivalent to Javascript escape/unescape functions in a Python script but for some reason I just can't find out how to do it. Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with?

Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Jonathan
- Original Message - From: Brian Sullivan [EMAIL PROTECTED] To: zope list user zope@zope.org Sent: Thursday, February 23, 2006 10:45 AM Subject: [Zope] Python equivalent to Javascript escape/unescape I was assuming that it would somehow be easy to do the equivalent to Javascript

Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Brian Sullivan
I was assuming that it would somehow be easy to do the equivalent to Javascript escape/unescape functions in a Python script but for some reason I just can't find out how to do it. Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with? Try

Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Dan Fairs
On 2/23/06, Brian Sullivan [EMAIL PROTECTED] wrote: I was assuming that it would somehow be easy to do the equivalent to Javascript escape/unescape functions in a Python script but for some reason I just can't find out how to do it. from Products.PythonScripts.standard import url_quote,

[Zope] RESOLUTION: Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Mark, Jonathan (Integic)
Title: RESOLUTION: Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports? Thanks for the help everyone. I needed to make the $Instance/var and $Instance/log directories readable and writable to the user that Zope 2.9 ran as. Once I did that the problem went away.

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/23/06, Gary Poster [EMAIL PROTECTED] wrote: You effectively can't step through all the tests (with a single pdb). You can step through a single line in the test well. While it sounds limiting, that has proved quite sufficient for me in practice. YMMV, of course. Sigh. doctests really

[Zope] Re: Packing data.fs programmatically

2006-02-23 Thread Derrick Hudson
Chris, On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: | ZEO Stepper Is ZEO required to use Stepper? | Or if you don't like Stepper, then zopectl run... Does 'zopectl run' require exclusive access to the database? (IOW must the zope server be stopped before zopectl run can

Re: [Zope] Re: Packing data.fs programmatically

2006-02-23 Thread Paul Winkler
On Thu, Feb 23, 2006 at 11:27:59AM -0500, Derrick Hudson wrote: Does 'zopectl run' require exclusive access to the database? (IOW must the zope server be stopped before zopectl run can be used?) Yes, IFF you are not running zeo. That's another useful reason to use zeo :-) I just came

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
I dunno about sucking because they are quite good for documentation, but I tend to write plain-old unittests instead of doctests when I'm testing without any pretense towards writing documentation. If you test internals of a class in a doctest, the doctest body gets pretty cluttered,

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/23/06, Chris McDonough [EMAIL PROTECTED] wrote: I dunno about sucking because they are quite good for documentation, Oh, absolutely. but I tend to write plain-old unittests instead of doctests when I'm testing without any pretense towards writing documentation. Exactly my sentiments.

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
On Feb 23, 2006, at 1:17 PM, Benji York wrote: Chris McDonough wrote: I dunno about sucking because they are quite good for documentation, but I tend to write plain-old unittests instead of doctests when I'm testing without any pretense towards writing documentation. If you test

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
On Feb 23, 2006, at 1:57 PM, Benji York wrote: But it's of course a judgment call. Perhaps this is just one of those to-each-his-own things. shrug My own are doctests. ;) Sure. I actually really appreciate reading good doctests, they help a lot, and they beat not having any docs at all

Re: [Zope] Packing data.fs programmatically

2006-02-23 Thread Ron Bickers
On Tue January 31 2006 07:47, Chris Withers wrote: I do it though the webinterface with a wget from the crontab: Oh, ouch ouch bad fragile pain failure suffering... URL whacking is evil and must be punished... How is this different than clicking on the Pack button in the ZMI? What's the

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 13:37, Lennart Regebro wrote: Not to mention, doctests are not debuggable from WingIDE. Maybe we should have a WingIDE sprint in Boston at some point. This would be a good topic. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 14:16, Chris McDonough wrote: (e.g. high- level overview of purpose, how to install it, what other packages it   depends upon, which versions of Python/Zope it works with, who is   responsible for maintaining the package, where to report bugs, and so   on).  I

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
On Feb 23, 2006, at 4:51 PM, Stephan Richter wrote: So, I take it that you are a second voter in favor of not requiring all tests to be doctests. If the ZSCP thing takes off, I think test/doc req'ts should be somewhat looser than mandating a particular test/doc framework (something along

[Zope] Re: [Zope3-dev] The Zope Software Certification Program and Common Repository Proposal

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 20:29, Jim Fulton wrote: This is quite a document and vision.  I hope we can pull something like it off.  (Like many, I recognize the daunting size of the task.) I have already working parsers and writers for all file formats. I have also a preliminary (but tested)

Re: [Zope] Zope scheduling problem

2006-02-23 Thread Nicholas Watmough
Thanks for that. It worked perfectly. Out of interest, why am I unable to access the method from with my Zope python code? What is a private object, and why is it private? Thanks, Nick Martijn Pieters wrote: On 2/19/06, Nicholas Watmough [EMAIL PROTECTED] wrote: I tried using

[Zope] Using ReStructuredText instead of StructuredDocument inside ZPT

2006-02-23 Thread John Schinnerer
Hello, I have been using the Structured Document (SD) product with page templates (to provide some content sections that a client can edit using structured text). Now I would like to use ReStructuredText Document (RSTD) instead of SD. I have been using code like this in a page template to

[Zope-Checkins] SVN: Zope/branches/philikon-deprecate-interfaces/ Branch for deprecating Zope 2 interfaces.

2006-02-23 Thread Philipp von Weitershausen
Log message for revision 41768: Branch for deprecating Zope 2 interfaces. Changed: A Zope/branches/philikon-deprecate-interfaces/ -=- Copied: Zope/branches/philikon-deprecate-interfaces (from rev 41767, Zope/trunk) ___ Zope-Checkins maillist

Re: [Zope-dev] ImageFile weirdness?

2006-02-23 Thread Chris Withers
1. why the 3 posts? 2. Why on [EMAIL PROTECTED] This should be on zope@zope.org Jürgen Herrmann wrote: hi all! i have a class ImageContainer in a python product, that has an ImageFile attached, it's named 1.gif: ... image = ImageFile('1.gif', '/some/where') setattr(self.__class__,

Re: [Zope-dev] Re: Deprecating Zope 2 interfaces?

2006-02-23 Thread Chris Withers
Philipp von Weitershausen wrote: That's a bold assumption. It's a bold assumption based on the fact that I'm pretty sure there's about 1 person on the planet who's ever used that code. I believe his name's Andreas. I might be wrong of course, but I don't think it's much more than that...

Re: [Zope-dev] ImageFile weirdness?

2006-02-23 Thread Jürgen Herrmann
On Thu, February 23, 2006 09:02, Chris Withers wrote: 1. why the 3 posts? sorry, there was a long delay before my messages appeared, so i thought i had problems with my subscription. sorry for the triple post! 2. Why on [EMAIL PROTECTED] This should be on zope@zope.org well, actually i have a

[Zope-dev] Re: Deprecating Zope 2 interfaces?

2006-02-23 Thread yuppie
Chris Withers wrote: Philipp von Weitershausen wrote: That's a bold assumption. It's a bold assumption based on the fact that I'm pretty sure there's about 1 person on the planet who's ever used that code. I believe his name's Andreas. I might be wrong of course, but I don't think it's much

[Zope-dev] Re: [Zope3-dev] The Zope Software Certification Program and Common Repository Proposal

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 20:29, Jim Fulton wrote: This is quite a document and vision.  I hope we can pull something like it off.  (Like many, I recognize the daunting size of the task.) I have already working parsers and writers for all file formats. I have also a preliminary (but tested)

Re: [Zope-PAS] PAS and PluginRegistry releases

2006-02-23 Thread Jens Vagelpohl
On 23 Feb 2006, at 08:29, Wichert Akkerman wrote: Hi, Starting from 2.5 Plone will use PAS, and Plone 2.5-alpha2 is about to hit the streets. For a release we would like to use released versions of all products used, which includes PluggableAuthService and PluginRegistry. The latest PAS

Re: [Zope-PAS] Re: PAS and PluginRegistry releases

2006-02-23 Thread Jens Vagelpohl
On 23 Feb 2006, at 12:16, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: Hi, Starting from 2.5 Plone will use PAS, and Plone 2.5-alpha2 is about to hit the streets. For a release we would like to use released versions of all products used,

Re: [Zope-PAS] Re: PAS and PluginRegistry releases

2006-02-23 Thread Wichert Akkerman
Previously Jens Vagelpohl wrote: I'm traveling for the rest of the day and can only commit to cutting a release on Saturday if that's OK. I'll take whatever I can get :). If you can cut PluginRegistry and PAS releases on Saturday that will certainly work for us. If you can drop me an email

[Zope-DB] psycopg in python script

2006-02-23 Thread garry
How can I access a Psycopg_database_connection within a python script. So far I have this which only returns a connection instance, but I want to pass the connection a query string. query1=context.Psycopg_database_connection('select * from studentdetails') return query1 Regards Garry