Re: [Zope-dev] ZODB3 3.9.0-dev-r77011 egg?!

2008-08-19 Thread Chris Withers
Philipp von Weitershausen wrote: and why does buildout pick it over a stable release? Because buildout, like easy_install, will pick the newest available version for a distribution. Fortunately, buildout has a prefer-stable option so that you can tell it to prefer stable over

Re: [Zope-dev] [zopeproject] ZODB3 specified, but ZODB3 3.9.0-dev-r77011 egg still attempted?!

2008-08-19 Thread Chris Withers
Wichert Akkerman wrote: You are missing a line here: versions = versions Good catch! Seems to be working now... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev

[Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-19 Thread Chris Withers
From a user's perspective, this makes no sense: from zope.interface import implements,Interface from zope.component import queryAdapter class ISomething(Interface): pass ... class MyClass: implements(ISomething) ... m = MyClass() Right, so this does make sense: ISomething(m)

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-19 Thread Chris Withers
Philipp von Weitershausen wrote: No, it's not a bug. This is in fact a feature (like it or not). Well, assuming enough people *don't* like it, and I think that's the case here, then it should probably change... {query|get}Adapter will always try to look up an adapter, whether or not the

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-19 Thread Chris Withers
Jim Fulton wrote: No, it's not a bug. This is in fact a feature (like it or not). While I respect that this feature may have been chosen carefully, it nevertheless seems more like a misfeature. Chris' expectation was reasonable and ought not to be violated without a good cause.

[Zope-dev] is this how we fix test breakage in tests? :-S

2008-08-18 Thread Chris Withers
Hi Benji, Was a bit shocked to see your name against the rather disappointing commenting out of a doctest in doctest.py (lines 2214-2218). What gives? So if tests don't pass now we just comment them out? Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] zope.testrunner test failures, remaining ones not windows specific ; -)

2008-08-16 Thread Chris Withers
Marius Gedminas wrote: On Tue, Aug 12, 2008 at 09:17:39PM +0100, Chris Withers wrote: I could have sworn I reported this before but couldn't find anything in the archives so apologies if I have posted this before... I have a feeling of deja vu about this... Indeed ;-) File zope.testing

Re: [Zope] Trying ZODB with a background in RDBMS

2008-08-16 Thread Chris Withers
Phillip B Oldham wrote: Hi all. I'm playing with standalone ZODB at the moment trying to get a better understanding of its use in applications. I come from a PHP/MySQL background, and I'm taking my first steps with Python at the same time. Heh, and just when people are moving more and more to

Re: [Zope] Script (Python) insecure ?

2008-08-16 Thread Chris Withers
Andreas Jung wrote: BTW: The reason why I had a look at these was that Chris Withers mentioned at EuroPython that they are currently causing delays in the Python 2.5 adoption (or at least are one of the reasons for them). Is Chris' talk somewhere online? Sorry, they were just quick

[Zope-dev] zope.testrunner test failures on windows

2008-08-12 Thread Chris Withers
Hi All, I could have sworn I reported this before but couldn't find anything in the archives so apologies if I have posted this before... Anyway, running zope.testrunner's trunk's tests on windows seems to have some problems. These don't occur when running them on Linux. cheers, Chris The

Re: [Zope-dev] zc.zope3recipes : set offline tests everywhere

2008-08-11 Thread Chris Withers
Christophe Combelles wrote: Is this change ok? It seems to solve the previous failures in the 3.4 kgs, and speeds up the test. I don't have a problem with the change, but this damages the usefulness of README.txt as documentation. As someone who's never used zope3recipes, I'm going to read

Re: [Zope-dev] Re: bad zope.size to remove from PyPI

2008-08-11 Thread Chris Withers
Aaron Lehmann wrote: If the buildout is nailed to that version or above, and there is none, it breaks. Well, breaks is good, but hopefully that means gives an error message along the lines of '''you specified version 'x.y.z' which could not be found'''. Is that what happens or do you just

[Zope-dev] failures in zope.testing trunk r89432 on windows

2008-08-06 Thread Chris Withers
Hi All, Is anyone else seeing these: C:\LocalSVN\zope.testingbin\test.exe Running zope.testing.testrunner.layer.UnitTests tests: Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds. Failure in test c:\localsvn\zope.testing\src\zope\testing\testrunner\testrunner-

[Zope-dev] configuring global utilities in zcml

2008-08-05 Thread Chris Withers
Hi All, Am I right in thinking there's no generic way to provide global utilities that require configuration using zcml? If I'm wrong, can someone please tell me how ;-) Otherwise, would it be possible to get the following to work: utility factory=blah paramabc/param param

Re: [Zope-dev] configuring global utilities in zcml

2008-08-05 Thread Chris Withers
Nikolay Kim wrote: you can create utility in python file and then use component= for example utility.py: class Utility(object): pass myUtility = Utility() configure.zcml: utility name=myUtility component=.utility.myUtility / I'm aware of this but it kind of defeats the idea of

Re: [Zope-dev] configuring global utilities in zcml

2008-08-05 Thread Chris Withers
Nikolay Kim wrote: I'm aware of this but it kind of defeats the idea of seperating code and configuration... So, other ideas? create new zcml directive. That seems pretty heavyweight :-/ Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] configuring global utilities in zcml

2008-08-05 Thread Chris Withers
Robert Niederreiter wrote: Hi, Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers: Nikolay Kim wrote: I'm aware of this but it kind of defeats the idea of seperating code and configuration... So, other ideas? create new zcml directive. That seems pretty heavyweight

Re: [Zope-dev] zope.app.authentication and zope.app.container broken doctests

2008-08-05 Thread Chris Withers
Marius Gedminas wrote: Ideas? Eggs built on Windows? Missing svn:eol-style=native properties? Mixed \n and \r\n line endings? Probably mixed line endings. It's a shame doctest is so fragile to this... Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope-dev] what happens when the latest release on pypi is removed?

2008-08-03 Thread Chris Withers
Philipp von Weitershausen wrote: This is silly. Mistakes happen. Buildout and/or setuptools should be tolerant of accidental releases that are then removed from PyPI. What currently happens in cases like this? Nothing. Well, that wouldn't be good... In what situations would buildout or

Re: [Zope-dev] Re: bad zope.size to remove from PyPI

2008-08-02 Thread Chris Withers
Benji York wrote: In case anybody's wondering how this complies with our no removal of any release whatsoever policy [1], be assured that a 3.4dev-r73090 thing isn't a release by our standards. This version number not only contains the 'dev' marker, meaning it must have come from a development

Re: [Zope-dev] Re: Deprecation Warning

2008-08-01 Thread Chris Withers
vyshakh, vyshakh krishnan wrote: Many of the the warnings in other modules are found similar to this warning. Please enumerate them. Please read and respond to all points raised in mails. Unless I missed something, we're still waiting to see the full list of the warnings in other modules.

Re: [Zope] Mouting + Logging Errors after Zope Upgrade 2.7.4 -- 2.11.1

2008-08-01 Thread Chris Withers
Wolfgang Lausenhammer wrote: LockError: Couldn't lock 'D:\\workspace_zope\\xla-2008/var/Stdcontainer_o.fs.lock' Can the user the zope process is running as write to this file? (or create it, since it likely doesn't exist?) TypeError: not all arguments converted during string formatting

Re: [Zope-dev] New zope.interface 3.4.2 release

2008-07-31 Thread Chris Withers
Andreas Jung wrote: offtopic wishlist for=pypi group accounts /wishlist /offtopic whydontyou Hassle the sig type=catalog/ for this? /whydontyou cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Re: SVN: zope.component/ Merge wichert-utility-factories branch to trunk

2008-07-25 Thread Chris Withers
Wichert Akkerman wrote: -if (self._utility_registrations.get((provided, name)) +if (self._utility_registrations.get((provided, name)[:2]) Excellent catch, fixed. With a test I hope? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Re: SVN: zope.component/ Merge wichert-utility-factories branch to trunk

2008-07-25 Thread Chris Withers
Christian Theune wrote: To me this looks like an inefficiency that's gonna be hard to test from the outside. Or did I miss anything? That's not the impression I got, which is why a test would be good... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Chris Withers
Christian Scholz wrote: Ok, except that this does not run under windows and it still needs to have easy_install installed. But if there is no existing script, maybe I write one then. I have my custom bootstrap for using the development version of setuptools now already anway. Ignas may have

Re: [Zope] Timeout on server when python script is running

2008-07-25 Thread Chris Withers
[EMAIL PROTECTED] wrote: I have a python script running from a plone site..it takes a lot of time (1 hour maybe more) Sounds like this shouldn't be done using a web request. Maybe try stepper? http://www.simplistix.co.uk/software/zope/stepper cheers, Chris -- Simplistix - Content

Re: [Zope] Re: Unrestricted threads

2008-07-25 Thread Chris Withers
Tres Seaver wrote: Note that you can write scripts designed to use the ZODB, but be run from a crontab. E.g.: $ cat Products/foo/scripts/send_report.py mailnost = app.site.MailHost catalog = app.site.portal_catalog() $ crontab -l 55 0 * * * /home/tseaver/instance/bin/zopectl

[ZWeb] weird cache behaviour?

2008-07-21 Thread Chris Withers
Is it just me or is the cache behaviour still pretty weird? I'm trying to upload the windows build for 2.11.1 and have had to log in 2 or 3 times... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [ZWeb] weird cache behaviour?

2008-07-21 Thread Chris Withers
Jens Vagelpohl wrote: It is still weird and it will probably remain that way. The caching tier is independent and not under our control. How long is it going to be before we can move zope.org to some kind of sane hosting environment? cheers, Chris -- Simplistix - Content Management,

Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases

2008-07-18 Thread Chris Withers
Martijn Faassen wrote: Okay, so we can safely add Chris (and also Philipp) to the list of people maintaining our windows binary eggs. Awesome! Chris, do you think you can take it from here in getting an environment set up? Would be rgeat to have a bullet point list for how to get a suitable

Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases

2008-07-18 Thread Chris Withers
Sidnei da Silva wrote: On Fri, Jul 18, 2008 at 1:23 PM, Chris Withers [EMAIL PROTECTED] wrote: Would be rgeat to have a bullet point list for how to get a suitable environment set up given that I don't have mingw32 and have never used it before in my life :-S Like this? http://plone.org

[Zope] PyCon UK Approaching...

2008-07-16 Thread Chris Withers
Hi All, Apologies for what might be seen as spam but I wasn't even aware this conference took place last year and I live in the UK! So, hopefully you won't mind me letting you know that it's taking place again this year ;-) PyCon UK 2008 is an independent, community-run, community-controlled

Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases

2008-07-15 Thread Chris Withers
Stephan Richter wrote: On Saturday 12 July 2008, Martijn Faassen wrote: Chris wants to do them, he just wants some documentation on how to get started, I suspect. I use Philipp's blog entry from ages ago:

Re: [Zope-dev] RestrictedPython

2008-07-15 Thread Chris Withers
Martijn Faassen wrote: It's good to know we have some eyes on this particular topic. Thanks Stephan! I talked to Chris about this at the EuroPython conference after Chris started offering free beer and even bottles of champagne for people who could point out flaws (beer) and submit fixes with

Re: [Zope-dev] Re: Zope 3 on Python 2.5, Zope 3 releases

2008-07-15 Thread Chris Withers
Martin Aspeli wrote: Certainly, running Python 2.4 and Zope 2.10 compiled with mingw32 on Windows as per http://plone.org/documentation/tutorial/buildout has not given us any problems after a few months of using it. I'm not sure if you're deliberately missing my point here ;-) I would expect

[Zope-dev] how many checkin lists?!

2008-07-15 Thread Chris Withers
Hi All, Just me, or is it excessive that we have: http://mail.zope.org/pipermail/zope3-checkins/ http://mail.zope.org/pipermail/zope-checkins/ http://mail.zope.org/pipermail/checkins/ ...and maybe more I don't know about? Surely one list would suffice? cheers, Chris -- Simplistix - Content

Re: [Zope] getting post data from a webcam

2008-07-15 Thread Chris Withers
William Heymann wrote: ('__aca', '/36gevRRS99FhE%2BrH6GVLeSzXzA%3D%0A'), ('traverse_subpath', [])] there is nothing in REQUEST.form I wonder if your webcam is doing something weird like putting the image in the body of the post rather than in the form data? I had to admit to never having

Re: [Zope-dev] Zope 2.11.1

2008-07-14 Thread Chris Withers
Andreas Jung wrote: If there are no objections I plan to release a bug-fix release of Zope 2.11.1 on Wednesday. Any chance you could make sure Zope itself doesn't issue any deprecation warnings as part of this? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting

[Zope-dev] Deprecation warnings from 2.11.0

2008-07-04 Thread Chris Withers
Sidnei da Silva wrote: On 6/25/08, Chris Withers [EMAIL PROTECTED] wrote: Cool. Are the deprecation warning common to Zope 2.11 across all platforms? I don't see a reason why not, specially if coming from that module. Did we as a community really release a stable version that emits

Re: [Zope-dev] Zope 3 on Python 2.5, Zope 3 releases

2008-07-04 Thread Chris Withers
Martijn Faassen wrote: Hi there, I'm curious about the plans of Zope 3 on Python 2.5. Me too, and I have been for ages, but I've gotten nowhere :-( * Are people using Zope 3 with Python 2.5 already? What are your experiences? Apparently, it's all good to go, even RestrictedPython. The

Re: [Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-04 Thread Chris Withers
Hi Benji, I've read the whole thread to date but thought I'd reply here... Benji York wrote: I'm working on making the zope.testing test runner run tests in parallelized subprocesses. The option will likely be spelled -j N, where N is the maximum number of processes. Cool :-) But please

[Zope-dev] Re: buildout on Windows

2008-06-24 Thread Chris Withers
Tres Seaver wrote: Chris McDonough did exactly that (rolle one big Zope2 egg) to support repoze.zope2: - http://dist.repoze.org/zope2/2.10/zopelib-2.10.6.0.tar.gz - http://dist.repoze.org/zope2/2.9/zopelib-2.9.8.2.tar.gz Great. So why don't we just: - get the instructions for making these

Re: [Zope-dev] Re: buildout on Windows

2008-06-23 Thread Chris Withers
Sidnei da Silva wrote: This one is used to pre-build everything, and then we run Inno Setup to build the installer: https://svn.plone.org/svn/plone/Installers/Windows/trunk/buildout/installer.cfg Which buildout.cfg is this extending? Also, related, would you be up for building binary

Re: [Zope-dev] Re: buildout on Windows

2008-06-23 Thread Chris Withers
Sidnei da Silva wrote: On Sun, Jun 22, 2008 at 1:10 PM, Philipp von Weitershausen [EMAIL PROTECTED] wrote: b) or extend the plone.recipe.zope2install recipe to get the binary Zope installer and execute it (if that's even possible) on Windows, rather than trying to get the source tarball and

Re: [Zope-dev] Re: buildout on Windows

2008-06-21 Thread Chris Withers
Philipp von Weitershausen wrote: This isn't a matter of a binary zope.proxy egg. If you look at the 'zope2' part of your buildout.cfg, you'll see it's actually trying to compile Zope 2 itself (which happens to contain the zope.proxy package as part of the Zope 3 libraries that it ships with).

Re: [Zope-dev] Re: buildout on Windows

2008-06-21 Thread Chris Withers
Hey Sidnei, Sidnei da Silva wrote: Depending on how 'plone-ish' your buildout is, you can start from the newly-created, experimental buildout-based Plone Installer for Windows: https://launchpad.net/plone/3.1/3.1.2/ So how does this work? Where's the buildout.cfg that gets used and what

Re: [Zope-dev] Re: buildout on Windows

2008-06-21 Thread Chris Withers
Martin Aspeli wrote: - if you really are installing zope2, then I wonder why it's trying to download zope.proxy. This is possibly a case of egg dependencies gone wrong, and you may want to look at plone.recipe.zope2install and its fake eggs optoin Hmmm :-S Can you explain this more? - you

[Zope-dev] buildout on Windows

2008-06-20 Thread Chris Withers
Hey All, I'm trying to run a plone-ish buildout on Windows for a customer, currently getting this: creating zope.proxy copying zope/proxy\proxy.h - zope.proxy error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries.

Re: [Zope] Re: record count in catalog

2008-06-20 Thread Chris Withers
Dieter Maurer wrote: Tres Seaver wrote at 2008-6-15 16:18 -0400: ... The Catalog tab in my catalog says this: The catalog mycatalog contains 30,345 record(s) in the path /. But when I sort and return a list of cataloged objects I only have 19,881. Here is the script call to retrieve the

Re: [Zope] Context in a view doesn't see marker interface

2008-06-20 Thread Chris Withers
Eric Steele wrote: If I include something along the lines of tal:block tal:replace=structure context / in my view template, someObject renders in the browser. The problem is that none of what's in there appears to recognize the interface that my view provides. It's not at all clear what you

Re: [Zope] Zope on CD

2008-06-08 Thread Chris Withers
Ulla Theiss wrote: Then we a custom_zodb.py in %INSTANCE_HOME% I don't think this is the right way to go anymore... Everything should be done in zope.conf... Sometimes Zope starts and sometimes it alerts Permission denied - Data.fs.lock Hmm, the read-only-database should have stopped

Re: [Zope-dev] zope 3 component binaries for Python 2.5 on Windows

2008-05-31 Thread Chris Withers
Lennart Regebro wrote: On Tue, May 20, 2008 at 8:03 AM, Chris Withers [EMAIL PROTECTED] wrote: Where do I go to get windows binaries installers or similar for these? (ie: the C-components) Well, what I did for Zope 2 was to use Tareks buildout for Windows package. It's for Python 2.4

[Zope-dev] Re: [Repoze-dev] Somebody needs to talk at EuropPython.

2008-05-31 Thread Chris Withers
Godefroid Chapelle wrote: I think Lennart is really hitting a nail here. We need to advertize about our great efforts. I wont be in EuroPython even if I would have spoken about it with pleasure. I am planning on going and would be happy to talk but I'm not sure I know enough on these

Re: [Zope-DB] DCOracle2 installation, I'm missing header files

2008-05-31 Thread Chris Withers
M.-A. Lemburg wrote: Oh, ok. Is there a Zope DB adapter for cxOracle? If you're looking for a stable Zope DA interface to Oracle, you might want to try our mxODBC Zope DA: http://www.egenix.com/products/zope/mxODBCZopeDA/ cxOracle is pretty stable, and doesn't require you going near

Re: [Zope-dev] sad news about Joachim Schmitz

2008-05-21 Thread Chris Withers
Martijn Faassen wrote: Joachim Schmitz, long-standing member of the Zope community, died last weekend. Please see the following: http://faassen.n--tree.net/blog/view/weblog/2008/05/14/0 I couldn't find how to leave a comment on the above blog so a quick note here: I remember meeting

[Zope-dev] zope 3 component binaries for Python 2.5 on Windows

2008-05-20 Thread Chris Withers
Hey Guys, So, we now have all the Zope 3 components and RestrictedPython working on Python 2.5. Where do I go to get windows binaries installers or similar for these? (ie: the C-components) If they don't exist yet, how do we go about getting them to exist? cheers, Chris -- Simplistix -

Re: [Zope-dev] Zope2 monitoring

2008-05-01 Thread Chris Withers
Jens Vagelpohl wrote: If you're missing any probes/values, just tell me. Is it possible to determine process size/memory consumption? I know Andrew has done this for Cacti, I'd imagine these would port to Nagios... cheers, Chris -- Simplistix - Content Management, Zope Python

[Zope-dev] svn.zope.org down?

2008-04-29 Thread Chris Withers
Hey All, Can't contact svn.zope.org, it dead? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org

[Zope-dev] Zope(2|3) on Python 2.5

2008-04-28 Thread Chris Withers
Hi All, Since it appears everything Zope-ish now runs on Python 2.5, what's still stopping a release of Zope 2 and Zope 3 which recommends or support Python 2.5? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

[Zope-dev] registering adapters and subscribers for string labels

2008-04-25 Thread Chris Withers
Hi All, I bumped into hurry.workflow yesterday and was reminded again that we often have the need to register components against string labels. As an example, I want to register a subscriber to a particular workflow transition. Now, the hurry.workflow examples I've seen seem to revolve around

[Zope] anyone heard of Zamasing?

2008-04-16 Thread Chris Withers
...I certainly never had until someone threw a press release my way... http://zamasing.com Any ideas/comments/etc? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist -

Re: [Zope-dev] A permanent log for buildouts

2008-04-15 Thread Chris Withers
Jim Fulton wrote: configuration. IMO, it would be enough to provide an option to name a logger config file as described in: http://docs.python.org/lib/logging-config-fileformat.html This stuff is an annoying dead end in that it only lets you use log handlers defined inside the logging

Re: [Zope] type checking

2008-04-15 Thread Chris Withers
Jaroslav Lukesh wrote: dtml-try dtml-if _.int(variable) = variable Variable is integer dtml-else Variable is not integer /dtml-if dtml-except Variable is not number /dtml-try Argggh! My eyes! They bleed! Please dear god just use a python script or external method... Chris --

Re: [Zope] try clause in external method

2008-04-15 Thread Chris Withers
Jonathan wrote: A couple of things... 1) Have bare try/except clauses may cause you grief ;-)19 Specifically, in this case, I'll bet an unexpected exception is being raised and swallowed... 2) When an error is trapped by the 'try' statement the transaction is not committed (ie. nothing

Re: [Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-14 Thread Chris Withers
Josef Meile wrote: Well, I guess I will do an external method on my own server and then try to convince the people owning the machine where the page is hosted to include it. You could do a lot worse that using MailTemplates: http://www.simplistix.co.uk/software/zope/mailtemplates It's a

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: How is dtml more error-prone than python? I'd imagine that all depends on who's authoring it. In this particular example, python's email package has a very OO approach to generating emails. The DTML approach relies on you remembering to put in the right statements

Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread Chris Withers
rishi pathak wrote: We have a portal using which users use our compute resources. In zope we use NIS authentication for validating a user.We have many things that requires root/logged in user privledeges.One example is of a 'file system explorer'.In this I have used

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: The email library should be available to use with a Script (Python) and can be done all within the ZMI. Yes, I wish it was. I believe that was one of the things I did in the MailTemplates product: just make the standard python email package bits available in Zope

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Chris Withers
Andreas Jung wrote: I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to write such ugly and error-prone DTML code.

Re: [Zope] Help writing test where bobobase_modification_time changes

2008-04-10 Thread Chris Withers
Peter Bengtsson wrote: How can I solve this? Make one big transaction two without having to use transaction.get().commit() which I don't think I can use in unit tests as per Dieter's advice. I'd suggest monkeypatching bobobase_modification_time on the objects you're testing with. You're

Re: [Zope-dev] Re: Let's fix the damned website

2008-04-08 Thread Chris Withers
Martin Aspeli wrote: Yes. That's the point. It's vanilla Plone (well, one custom content type for the feature that fronts each section, but it's trivial) with a simple skin, not the FrankePlone that runs the old site. As a case in point, Wichert upgraded it from 3.0 to 3.1rc in about ten

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread Chris Withers
rishi pathak wrote: I dont have a need to run all the external method as root, only some of them. You seem to be carefully ignoring the fact that Dieter is pointing out that this isn't possible ;-) Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope-Checkins] SVN: Zope/trunk/skel/etc/zope.conf.in Note on full mount point syntax.

2008-04-07 Thread Chris Withers
Log message for revision 85144: Note on full mount point syntax. Changed: U Zope/trunk/skel/etc/zope.conf.in -=- Modified: Zope/trunk/skel/etc/zope.conf.in === --- Zope/trunk/skel/etc/zope.conf.in2008-04-07 06:55:17 UTC

Re: [Zope-dev] Status of zam packages

2008-04-07 Thread Chris Withers
David Pratt wrote: I am hoping I can get a bit of an update on zam packages on zope svn. Many thanks. What is zam? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist -

Re: [Zope-dev] Re: GSoC proposal

2008-04-07 Thread Chris Withers
Malthe Borch wrote: On 04/04/2008, Chris Withers [EMAIL PROTECTED] wrote: zope.security uses RestrictedPython, iirc... For untrusted python, yes –– but is anyone using this (in Zope 3)? Given that Ranjith's post was specifically about Zope 2, I think it'd kindof relevent to his project

Re: [Zope-dev] Re: GSoC proposal

2008-04-07 Thread Chris Withers
Tino Wildenhain wrote: Btw, it would also be nice to have RestrictedPython outside of Zope for example to use in pl/python (postgres pluggable function language) Of course this smells like another GSoC project... I don't think RestrictedPython has (m)any dependencies, and it may even be

Re: [Zope-dev] Re: GSoC proposal

2008-04-07 Thread Chris Withers
Malthe Borch wrote: On 07/04/2008, Chris Withers [EMAIL PROTECTED] wrote: I'd certainly be up for championing making RestrictedPython available as a seperate project. Has anyone done any work towards this or should I go ahead and get a project / bug tracker / etc set up at Launchpad

Re: [Zope-dev] Re: Let's fix the damned website

2008-04-07 Thread Chris Withers
Martijn Faassen wrote: Yeah, I know this is really a me too post, but I think we should err on the side of conventional for our website. We can't go from out-of-date boring to cutting edge hip in one giant leap; it won't be believable. Let's stick with what people know from other sites, and

Re: [Zope] merging zodb's

2008-04-07 Thread Chris Withers
Dieter Maurer wrote: The mount-point syntax is: mount-point localpath[:remotepath] where localpath is the path where the storage is mounted in this instance and remotepath is the path to the object to be mounted in the storage. If not given remotepath defaults to localpath. I've checked

Re: [Zope] step by step going from single zope to zeo

2008-04-07 Thread Chris Withers
David Bear wrote: On Wednesday 02 April 2008 01:31, Chris Withers wrote: David Bear wrote: Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb's

Re: [Zope] External Method in Zope

2008-04-07 Thread Chris Withers
Jens Vagelpohl wrote: - doing Perl methods or external methods in Zope has been deprecated years and years ago. You will have a hard time finding anyone to support that. I'm guessing you mean perl external methods rather than all external methods in general? ;-) Chris -- Simplistix -

Re: [Zope] ZServer uncaptured python exception

2008-04-07 Thread Chris Withers
Thomas Bennett wrote: I have had similar instances with GSA on my Zope server in that it would try to index something like /mydir/mydir/mydir/mydir/somefile.html Often I've found the case is an href that references ../somethingelse.html Yes, that's bad coding on your part. cheers, Chris

Re: [Zope-dev] Re: GSoC proposal

2008-04-03 Thread Chris Withers
Malthe Borch wrote: (Asking to the room), is it out of reach to simply migrate to zope.security (which already runs on Python 2.5)? Obviously there are differences between the two to the extent that some features simply can't be implemented. zope.security uses RestrictedPython, iirc...

Re: [Zope-DB] DCOracle2 installation, I'm missing header files

2008-04-03 Thread Chris Withers
David Durham, Jr. wrote: Anyone spot what I'm doing wrong? You're using DCOracle2 instead of cxOracle ;-) http://sourceforge.net/projects/cx-oracle/ Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Allen Schmidt Sr. wrote: Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel

Re: [Zope] merging zodb's

2008-04-02 Thread Chris Withers
David Bear wrote: zodb_db support # ssw file store filestorage path $INSTANCE/var/srvx-Data.fs /filestorage mount-point /support /zodb_db This will try and mount an object with the id of 'support' off the root of the zodb in srvx-Data.fs. You need to find the right

Re: [Zope] step by step going from single zope to zeo

2008-04-02 Thread Chris Withers
David Bear wrote: Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb's. I would like to take that single instance and turn it in to a zeo

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Allen Schmidt Sr. wrote: Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Chris Withers
Jens Vagelpohl wrote: Trusting that bots actually care about or respect robots.txt won't get you very far. If all else fails I suggest you look at your logs to find out what IPs or IP ranges those bots come from and block them at the firewall level, using e.g. iptables if you're on Linux.

Re: [Zope-dev] Re: zope.sendmail grantma-retryfixes branch review

2008-03-26 Thread Chris Withers
Matthew Grant wrote: FYI - Test coverage in zope.sendmail was originally pretty thin. Hmmm, apply some svn blame, find the culprite and lets arrange some burning at the stake... Seriously, am I right in remembering Zope 3 and all things related to have been test first from day 1? Zope3

Re: [Zope] zope on google file system

2008-03-26 Thread Chris Withers
Tim Nash wrote: I don't have the skills but I think it would be cool if some student ported Zope to utilize features of the google file system or libferris. Libferris is a virtual file system that mounts just about everything including postgres, xml and OpenOffice docs. Where are you thinking

Re: [Zope] Running multiple transactions during single request

2008-03-26 Thread Chris Withers
Charl Coetzee wrote: if everyFifthPass: transaction.commit() transaction.begin() # end of while loop really does have the desired effect, where also ConflictError handling etc continue to work as expected, without nasty side effects etc. No, this does not

Re: [Zope] Running multiple transactions during single request

2008-03-26 Thread Chris Withers
Charl Coetzee wrote: What was originally going to be small imports, now has the potential to have each single import request run for several hours just creating the data (e.g. saw a 2h one this morning). Sounds like you want Stepper ;-) http://www.simplistix.co.uk/software/zope/stepper (I

Re: [Zope-dev] Re: zope.sendmail grantma-retryfixes branch review

2008-03-25 Thread Chris Withers
Matthew Grant wrote: Just done edits you suggested. Some Unit tests still to be written. If you wrote the tests first *AS YOU SHOULD* this wouldn't be a problem. Tests written after the case have a tendency to omit edge cases... Won't be doing one for that /1000 as tehre are more important

Re: [Zope-dev] zope.sendmail grantma-retryfixes branch review

2008-03-20 Thread Chris Withers
Marius Gedminas wrote: +Process results of an SMTP error + returns True to indicate break needed The standard docstring convention is to do this: Process results of an SMTP error. Returns True to indicate break needed. This standard

Re: [Zope] For the record

2008-03-20 Thread Chris Withers
Peter Bengtsson wrote: So, to rewrite my benchmark I'd have to flush the cache between each fetch? I don't mind because the app itself has little traffic but individual pages are slow. If this is the case, you're looking in the wrong place for the source of the slowness ;-) Chris --

Re: [Zope] ZopeTestCase and Selenium RC? Anybody?

2008-03-20 Thread Chris Withers
Peter Bengtsson wrote: I don't know how/if the zope testrunner starts a server that can be reached with a browser or not. If it does start a server that can be used in Firefox I'd be able to run som Selenium scripts (Remote Controlled or manually) and when I'm happy with the browser stuff

Re: [Zope] zip files corrupted with IE when opened, fine when downloaded

2008-03-18 Thread Chris Withers
robert rottermann wrote: Hi there, when users using IE want to open a zip file from the intranet by using the open option from the download dialog they get winzip complaining that the file is corrupted. if they select save from the same dialog they can open the zip archive without problem.

Re: [Zope] zope starts in foreground but not normaly

2008-03-11 Thread Chris Withers
robert rottermann wrote: [EMAIL PROTECTED]:~ instances/kanneweb3/bin/zopectl status daemon manager running; daemon process not running [EMAIL PROTECTED]:~ I see no entries in the logs, so I have no idea where to look. Check the ownership of the log files. When this happens to me, it's

<    2   3   4   5   6   7   8   9   10   11   >