Re: [Zope] 2.5.1 to 2.8.0

2005-06-27 Thread Paul Winkler
005-06-27T13:06:58 WARNING ZODB Could not import class 'SimpleLog' from > module 'Products.LDAPUserFolder.SimpleLog' It's pretty clear that Zope is having a major problem with LDAPUserFolder. Possibly you have an old version of LDAPUserFolder that is not compatible with Zope 2

Re: [Zope] loading an url from a restricted python script

2005-06-28 Thread Paul Winkler
d existing third-party code that does what you want. Have a look at KebasData. -PW -- 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 -

Re: [Zope] Checking for an Integer Argument

2005-06-30 Thread Paul Winkler
ue ... except (TypeError, ValueError): ... return False ... >>> looks_like_int(1) True >>> looks_like_int("1") True >>> looks_like_int(1.0) False >>> looks_like_int("1.0") False >>> looks_like_int(1.3) False >

Re: [Zope] Re: Re: Poll: Zope and Suse Linux

2005-07-08 Thread Paul Winkler
figure --with-python=/usr/local/bin/python2.3 --prefix=... make make install Does that not work? I don't see why this is any different from the usual case of the distro-provided python or zope being too old. -- Paul Winkler http://www.slinkp.com _

Re: [Zope] Re: Zope Foundation Update

2005-07-20 Thread Paul Winkler
> Everybody needs to calm down, stop insulting each other and stop > broadcasting this problem to the whole world on zope-announce (for > example). Its making us all look childish. +1. Please folks, remember that this is a public venue and your words will be archived for a long time. Let's have n

Re: [Zope] object acquisition via python scripts

2005-07-22 Thread Paul Winkler
e, the id becomes part of your API. Your script would become: attrobject = getattr(context, 'some_id', None) return attrobject -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] Suppressing dupes in a concatenated ZCatalog query.

2005-07-28 Thread Paul Winkler
't been able > to find it. I don't know if you can do that with ZCatalog alone. Try Dieter's AdvancedQuery product, it's been very helpful to me. http://www.dieter.handshake.de/pyprojects/zope/#AdvancedQuery -- Paul Winkler http://www.slinkp.com

Re: [Zope] Zsyncer issue

2005-07-31 Thread Paul Winkler
ication and cold failover" on dirstorage-users mailing list, find archives at dirstorage.sf.net). You could probably do something similar with Filestorage by using repozo to frequently make incremental backups, and rsync to copy them to your backup server. -- Paul Winkler http://www.slin

[Zope] When "Debug Spinning Zope" doesn't work

2005-08-01 Thread Paul Winkler
That's it, nothing. It used to work for me. Any clues? -- 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:/

Re: [Zope] When "Debug Spinning Zope" doesn't work

2005-08-01 Thread Paul Winkler
i! > > Have you tried DeadlockDebugger product? > Maybe it will tell you what is happening. So far it is working > perfectly for me. Good idea, thanks! Will do. Some googling suggests that "info threads" returns nothing when gdb is ru

Re: [Zope] Zope 2.8 and conflict errors

2005-08-02 Thread Paul Winkler
od of conflict errors. -- 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-

Re: [Zope] ZSyncer and Zope-2.8.0

2005-08-05 Thread Paul Winkler
Note, I have done zero testing of zsyncer with zope 2.8. It is not officially supported yet. If it works, lucky you ;-) -PW > Am Freitag, 5. August 2005 09:16 schrieb Thierry FLORAC: >> Hi, >> >> I'm trying to use ZSyncer 0.6.1 to synchronise simple objects (page >> templates...) between a Zope

Re: [Zope] How to set an object's last modification time

2005-08-09 Thread Paul Winkler
> On 9 Aug 2005, at 04:14, Gabriel Genellina wrote: >> >> Maybe I should not be playing with _p_serial, Correct, you should not be. All _p_ attributes are reserved for use by the ZODB and applications should never mess with them. >> but how can I set the >> object's last modification time? I wa

Re: [Zope] Re: ZSyncer and Zope-2.8.0

2005-08-14 Thread Paul Winkler
> Am Samstag, 13. August 2005 02:11 schrieb Simon Michael: >> If I try Sascha's username:password@ workaround, I get:: > > it may well be that the username:password thingy was introduced in the > CVS at some point, but not in any release so far. sad thing is, last > time I checked the HEAD wasn't

Re: [Zope] Re: ZSyncer and Zope-2.8.0

2005-08-14 Thread Paul Winkler
> Note, that we use a ZSyncer version which no longer uses XML-RPC > but "ZPublisher.Client" to make its remote requests. > When I remember right, Paul incorporated this change in some > recent "ZSyncer" version. correct. I don´t remember right now which was the first release to feature your zpub

Re: [Zope] Re: ZSyncer and Zope-2.8.0

2005-08-21 Thread Paul Winkler
> Paul Winkler wrote at 2005-8-14 18:07 -0500: >> >>Finally, Dieter, if you want to get your changes into zsyncer >>without working through an intermediary, I´d be happy to give you >> checkin privileges. Do you have a Sourceforge account? > > Yes: "d

Re: [Zope] Re: ZSyncer and Zope-2.8.0

2005-08-21 Thread Paul Winkler
> Am Montag, 15. August 2005 22:20 schrieb Sascha Ottolski: >> To make a long story short, i append a small diff against the trunk >> that seems to work for me (not thoroughly tested, though, and not >> perfect about authorization). > > sorry for replying to myself, just noticed that while browsing

Re: [Zope] Python editor in zope?

2005-09-02 Thread Paul Winkler
> ... there any pure > JavaScript/CSS code editors that can do search/replace, block indents, > and (this would be amazing) Python syntax highlighting? I don't know about that, but have you tried using ExternalEditor? -PW ___ Zope maillist - Zope@zo

Re: [Zope] please explain the difference...

2005-09-08 Thread Paul Winkler
> Hello, > > i have been reading about zope and plone for a few days now, and i have > a question that i could not find an answer to. > > i understand zope is a server, that is, it is a process in OS. from what > i could gather from the documentation, plone is a cms built on top of > zope. Right!

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
> To be honest, I'd expect something a little different, namely that each > instance would automatically pull in all the products in the site > installation (like [1] and [2] above), but that doesn't seem to be the > case. Is that a configuration issue, by design, or by accident? It's a configura

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
JCC wrote: > If you want your instances to use Products from some other directory, > name it here. The one possible "gotcha", dating back to the Zope 2.6.x / CMF 1.3.x days, is that CMF (and Plone) would not work properly if installed somewhere other than $INSTANCE_HOME/Products. The skins directo

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
> On Friday 09 September 2005 13:56, J Cameron Cooper wrote: > >> I don't know why, either. That simply says that there is a default >> Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get >> rid of it, and you shouldn't try to configure it here. > > The problem I'm having, though

Re: [Zope] how to programmatically control zope?

2005-09-16 Thread Paul Winkler
> akonsu wrote: >> hello, would someone please point me to the right direction? what is >> the preferred way to control a zope server programmatically? i need to >> be able to administer my zope instance from a script. add users, >> change permissions, create new sites, add objects to the sites. th

Re: [Zope] aquistion probleme

2005-09-16 Thread Paul Winkler
> > > hello > > I'm trying an acquisition, but I must be doing something wrong... > > I've got a setting like this : > > /dir1/dir2_1/dir3_1 > /dir1/dir2_2/dir3_2 > /dir1/dir2_2/img.jpg > /img.jpg > > I write somthing like : > context['img.jpg'].absolute_url() > > I expect to get /dir1/img.jpg, in

Re: [Zope] High Traffic Zope Portal

2005-09-16 Thread Paul Winkler
> Have someone experience in sites of great traffic using Zope? If so, > please give us some tip for tunning the system or discover the > bootleneck points. This is a FAQ* and has been discussed recently; the list archives might be helpful. I have a bunch of links to performance docs here: http:/

[Zope] Getting at third-party modules in dtml?

2005-09-19 Thread Paul Winkler
I've got an ancient DTMLFile UI that I need to add a feature to, and I really don't want to have to rewrite it all in ZPT today... I'd love to, just don't have time now... and there's something I just can't figure out: Say I have a function that I want to make callable in my UI. It needs to be glo

Re: [Zope] Re: Getting at third-party modules in dtml?

2005-09-20 Thread Paul Winkler
> Axel Straschil wrote at 2005-9-20 04:07 +: >>Hi! >> >>> Say I have a function that I want to make callable in >>> my UI. It needs to be globally available, i.e. it needs to >>> be callable *without* having an instance of my product yet. >>> (This has to do with listing information about all a

Re: [Zope] Title or ID question

2005-09-21 Thread Paul Winkler
> Try > > > 2005/9/21, Phil Beardmore <[EMAIL PROTECTED]>: >> Hi All, this may be a simple question, and I'm still trying to get to >> grips with Plone so I hope you can help. I want to add the page title >> into a Plone Document, and also a Zope Page Template. >> >> I know in DTML is just a case

Re: [Zope] How modify *path* of a 'zope instance home' ??

2005-09-23 Thread Paul Winkler
> I tried modifying paths to 'zope instance home' in > bin/runzope, bin/runzope.bat and etc/zope.conf. Note that runzope.bat is only relevant on windows, and runzip is only relevant on unix/linux/OSX. If you're on *nix, you also need to modify bin/zopectl if you use it. Also check the paths to a

Re: [Zope] filesystem directory view

2005-09-23 Thread Paul Winkler
> my second question is, .. is file system directory view what I want. > Again, I want to store files in the unix file system, expose those to > zope, then store meta data on each of those image in zodb. What metadata do you want to store? and, can you store that in the filesystem too? With FSDV'

[Zope] Log aggregator?

2005-09-23 Thread Paul Winkler
Anybody know of any software that will aggregate logs in a variety of formats and allow me to correlate events in one log with another? I'm getting really REALLY tired of eyeballing and grepping a multitude of logs on different servers, mentally translating incorrect timestamps, and trying to work

Re: [Zope] Log aggregator?

2005-09-25 Thread Paul Winkler
> Paul Winkler wrote at 2005-9-23 16:27 -0500: >>Anybody know of any software that will aggregate logs in a variety of >> formats and allow me to correlate events in one log with another? >> >>I'm getting really REALLY tired of eyeballing and grepping a multitude

Re: [Zope] Zope restart fails

2005-10-03 Thread Paul Winkler
2\Data\bin\runzope.bat file? > This will open a command prompt and show you startup messages, including > any errors that cannot be resolved. Or, if you're on linux / unix, the equivalent is: path_to_your_instance/bin/runzope or, equivalently: path_to_your_instance/bin/zopectl

[Zope] Testing products: pychecker running wild in the streets!

2005-10-04 Thread Paul Winkler
from cDocumentTemplate import InstanceDict, TemplateDict, \ File "/usr/local/lib/python2.3/site-packages/pychecker/checker.py", line 767, in __import__ pymodule = _orig__import__(name, globals, locals, fromlist) File "/usr/local/lib/python2.3/site-packages/pychecker/checker

[Zope] Testing products: Testing all in one batch

2005-10-04 Thread Paul Winkler
tests? - *Should* we expect that ./bin/zopectl test will run all installed Products tests, and if so, what can we do as a community to get authors to fix their products? p.s. you may notice a series of messages from me re. testing... i'm trying to sort out a bunch of issues at once, and want

Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Paul Winkler
Jens Vagelpohl said: > > On 4 Oct 2005, at 23:21, Paul Winkler wrote: > >> Has anybody set up a batch job to test all installed Products >> in a zope instance? > > bin/zopectl test --dir Products/ > > from the instance home will test all products in that instance

Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Paul Winkler
Chris Withers said: > Paul Winkler wrote: >> Seems like the only *useful* way I can get it to run is with a loop >> that does "bin/zopectl test" once for each subdirectory of Products >> that I actually care about, taking care to ignore problematic >> third

Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Paul Winkler
> namely bad cleanup in some unit tests. Indeed. Anybody have tips on troubleshooting this? I'm currently finding it really annoying to even find which tests are the culprit(s). All I've been doing is: - try every combination of products (ugh, combinatorial explosion) - run tes

Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Paul Winkler
Alan Milligan said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Paul Winkler wrote: > >> The problem is that tests seem to be run in alphabetical order, I >> don't know of a way to force another order, and so I'm left >> with adding and removi

Re: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Paul Winkler
roperties__ with the leading and trailing underscores? Might want to read the style guide at http://www.python.org/peps/pep-0008.html if you haven't lately... see the "Naming Conventions" section. -- Paul Winkler http://www.slinkp.com __

Re: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Paul Winkler
>>> class Foo: def __init__(self): self.__blech = 1 self.__blah__ = 1 self._bloop = 1 def do(self): print hasattr(self, "__blech") print hasattr(self, "_Foo__blech") print

Re: [Zope] Zope 2.8.2 released

2005-10-13 Thread Paul Winkler
.plope.com/Books/2_7Edition/InstallingZope.stx > > Please also keep in mind that Zope 2.8.2 requires Python 2.3.5. Zope > 2.8.2 is not certified for any Python 2.4.x versions. So using Python > 2.4 is neither recommended nor supported and any related questions or >

[Zope] Re: Zope 2.8.2 released

2005-10-13 Thread Paul Winkler
Tres Seaver said: > Paul Winkler wrote: (snip) >> Also, looking over the release notes, I see that there is one bugfix >> that made it into the 2.8 branch and the trunk, thanks to Andreas - >> the #1895 fix to test.py. >> But the fix does not seem to have been note

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread Paul Winkler
Dennis, if you're still using ZSyncer, I don't think it works with 2.8 yet. I'll be finally trying to fix that in a minute... -PW On 10/13/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote: > Dennis Allison wrote: > > We have been running on Zope 2.7.6 with a few patches. I am now planning > > to m

[Zope] ANN: ZSyncer 0.7-beta1

2005-10-13 Thread Paul Winkler
y who is using any of the following: Zope 2.8+, CMF 1.5+, and/or ZClasses. Changes from previous release can be read here: http://sourceforge.net/project/shownotes.php?release_id=363376 -- Paul Winkler http://www.slinkp.com ___ Zope maillist -

[Zope] Re: Zope 2.8.2 released

2005-10-14 Thread Paul Winkler
On 10/14/05, Andreas Jung <[EMAIL PROTECTED]> wrote: > > OK, done for 2.8 branch. But I'm leaving the trunk alone, as it looks > > like lots of stuff from 2.8 is not yet in the trunk CHANGES.txt, > > and I don't want to confuse things further - AFAICT the normal procedure > > is to let the release

[Zope] ANN: ZSyncer 0.7-beta2

2005-10-19 Thread Paul Winkler
that allows live zope objects to be synchronized from one Zope to another without doing the tedious export / transfer / import dance. It is very easy to use. ZSyncer also allows you to see at a glance which objects are out-of-sync, and view diffs for many types of objects. -PW On 10/14/05, Paul Wi

Re: [Zope] Serve large files efficiently from a pipe

2005-11-08 Thread Paul Winkler
On 11/8/05, Roman Suzi <[EMAIL PROTECTED]> wrote: > I don't know if writing to response one chunk at a time is proper > solution? Will Zope store response body or sent it right away? I am not > sure that it is the later... The classic way to do streaming data in Zope is like so: RESPONSE.setHead

Re: [Zope] Render a string as tal

2005-11-14 Thread Paul Winkler
k/1037762730 -- 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://m

Re: [Zope] Render a string as tal

2005-11-15 Thread Paul Winkler
On Tue, Nov 15, 2005 at 06:20:39PM -0700, Mark Gibson wrote: > On Mon, 2005-11-14 at 13:38, Paul Winkler wrote: > > On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: > > > I would like to be able to render an arbitrary string as tal, having the > > > tal sta

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread Paul Winkler
vide us with the complete traceback? -- 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/lis

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread Paul Winkler
len(self._v_func_defaults or ()) - 1 == len(args)) and self._v_func_code.co_varnames[0]=='self'): return f(self.aq_parent.this(), *args, **kw) I think the problem lies elsewhere. Traceback? -- Paul Winkler http://www.slinkp.com ___

[Zope] ZopeTestCase.Functional and sessions?

2005-11-16 Thread Paul Winkler
ESSION. But it would be nice if I didn't have to enforce that. #2 means that when I call publish() I am testing a code path that never actually comes up in production, so that doesn't seem like much of a real integration test. Am I missing something? -- Paul Wink

Re: [Zope] ZopeTestCase.Functional and sessions?

2005-11-16 Thread Paul Winkler
One correction: On Wed, Nov 16, 2005 at 01:12:37PM -0500, Paul Winkler wrote: > but if I create a test derived from ZopeTestCase.Functional, when I > call self.publish() the thread that handles the publishing (it is > another thread, right?) has its own app.REQUEST which doesn&#x

Re: [Zope] question about Zope capabilities

2005-11-17 Thread Paul Winkler
0% responsible for the content of those pages. So you'd have to balance the maintenance cost against the work of creating a "smarter" solution. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.o

Re: [Zope] Passing Parameters to External Methods

2005-11-17 Thread Paul Winkler
nt-Length', your_pdf_object.get_size()) response.setHeader('Content-Type', 'application/pdf') for data in your_pdf_object.read_data_by_chunks(): response.write(data) This will get data to the client faster, and maybe save memory on the server depending on

Re: [Zope] Zope 2.8.4 external methods do not autorefresh

2005-11-18 Thread Paul Winkler
n debug-mode for your 2.8 instance? -- 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/listinf

Re: [Zope] When is access.log written?

2005-11-24 Thread Paul Winkler
on at bin/requestprofiler.py , but I have also found it useful to eyeball the log from time to time. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] When is access.log written?

2005-11-24 Thread Paul Winkler
On Thu, Nov 24, 2005 at 06:37:36PM +0100, Andreas Jung wrote: > --On 24. November 2005 11:55:25 -0500 Paul Winkler <[EMAIL PROTECTED]> > wrote: > >In case it's not: access log is written to when the response > >is sent back. > > Which is basically close to the

Re: [Zope] When is access.log written?

2005-11-24 Thread Paul Winkler
On Thu, Nov 24, 2005 at 07:02:51PM +0100, Tino Wildenhain wrote: > Am Donnerstag, den 24.11.2005, 12:54 -0500 schrieb Paul Winkler: > > On Thu, Nov 24, 2005 at 06:37:36PM +0100, Andreas Jung wrote: > > > --On 24. November 2005 11:55:25 -0500 Paul Winkler <[EMAIL PROTECTED]>

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-27 Thread Paul Winkler
hing in the logs so far gives me any clue. I've bumped up our log levels to BLATHER and hopefully next time this happens I'll get some more to work with and see if there's anythign I can do about it. It may be network issues between our Zope and Zeo boxes, which are on different subnet

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-27 Thread Paul Winkler
You're reasonably unlikely to have my problem then :-) -- 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

Re: [Zope] Re: Zope's Webdav port for RESTful web service

2005-11-28 Thread Paul Winkler
Yeah, if POST and GET are desired to have semantic differences, your code will have to explicitly check request['REQUEST_METHOD']. On 11/28/05, Tres Seaver <[EMAIL PROTECTED]> wrote: > The trickiest thing about REST from Zope's point of view is that its > proponents seem to think POST (which is a

Re: [Zope] why will FastCGI not be supported in the Future.

2005-11-28 Thread Paul Winkler
t least* 2.7.3 and maybe 2.8. Heavy use of sessioning is still not perfect (see Dennis Allison's recent threads), but it is *much* better since 2.7.3. In addition, ReadConflictErrors are greatly reduced since the release of ZODB 3.3, which first shipped with Zope 2.8.

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-28 Thread Paul Winkler
On Mon, Nov 28, 2005 at 08:19:23PM +0100, Dieter Maurer wrote: > Paul Winkler wrote at 2005-11-27 21:17 -0500: > > ... > >I've seen the same symptoms a number of times recently with zope 2.7.x. > >In our case, it seems to be related to ZEO. Zope seems to have lost &g

Re: [Zope] Zope Version

2005-11-28 Thread Paul Winkler
.zope.org/mailman/listinfo/zope-dev ) > > > _______ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listi

Re: [Zope] Re: Zope 2.8.4 strange behavior

2005-11-30 Thread Paul Winkler
different > use case: to control the time between connection attempts. I see. Thanks very much for your suggestion, Dieter - I'll look into that. It certainly sounds like we have the same symptom. -- Paul Winkler http://www.slinkp.com ___ Zope

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Paul Winkler
#x27;index.html'). The former works strictly by local containment and does not use acquisition. The latter may use acquisition. I know Chris knows this, but maybe other people following along don't. p.s. "here" should be deprecated, use "context" instead. -- Paul Win

Re: [Zope] index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread Paul Winkler
re" means in this context. If you are asking whether it is possible to avoid changing bobobase_modification_time, the answer is no. ZODB updates bobobase_modification_time on any change to a persistent object, and there is nothing you can do to avoid this. -- Paul Winkler http://www.slinkp.com __

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Paul Winkler
nywhere actually run a site like that nowadays? It's kind of a bizarre idea. -- 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 - h

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Paul Winkler
helps if the class you feed it inherits from Acquisition.Implicit or Acquisition.Explicit, and has some security declarations in it. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** N

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Paul Winkler
s the method public *has no effect* unless your class participates in acquisition. Oh, and the instance needs to be given an acquisition context, too. e.g. foo = foo.__of__.some_parent -- Paul Winkler http://www.slinkp.com ___ Zope maillist -

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Paul Winkler
On Fri, Dec 02, 2005 at 09:49:25AM -0500, Paul Winkler wrote: > 2) in the wrapper class, use ClassSecurityInfo() to > declare the methods you need public or permission-protected, > or use allowAny(). Brain fart, sorry. There is no allowAny in ClassSecurityInfo or elsewhere. The quick

Re: [Zope] Re: Python Classes and Zope.

2005-12-03 Thread Paul Winkler
On Fri, Dec 02, 2005 at 11:57:16PM +0100, Florent Guillaume wrote: > Paul Winkler wrote: (snip) > >Well, the thing is, the declaration that makes the method public > >*has no effect* unless your class participates in acquisition. > > That's not true. The objects of th

Re: [Zope] Finding a match in a large dataset - btrees?

2005-12-05 Thread Paul Winkler
4113 > 15213 > > The string 6438 should return 11, 6421 14, 6422 15 and 6499 12. I stopped reading here because I couldn't make any sense of the example.

Re: [Zope] Zope refusing to serve our large files (180M+)

2005-12-08 Thread Paul Winkler
specific directories, before you voice concerns!) You're talking about Zope permissions and filesystem permissions in the same sentence, and the two have *nothing* to do with each other, so I can't quite parse the above. -- Paul Winkler http://www.slinkp.com __

Re: [Zope] Recursive Display Of All Folder Items

2005-12-13 Thread Paul Winkler
kes is one persistent object that doesn't and you can get an infinite recursion. Another option, if you don't have a catalog handy, is to use ZopeFind(). See lib/python/OFS/FindSupport.py. (The docstring is unhelpful, but the method signature should give you a clue what to pass to it; o

Re: [Zope] Zope workflow for change management

2005-12-13 Thread Paul Winkler
ugh you can ignore that and use other implementations such as Openflow. -- 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:

Re: [Zope] List within a list - how to use in a page template

2005-12-13 Thread Paul Winkler
quot;python:single[0]" but > that gives me an unsubscriptable object error. That's because, in your example, each time through the loop, single is an int. Try indexing m instead. -- Paul Winkler http://www.slinkp.com ___ Zope maillist -

Re: [Zope] Programmatically flushing entries from RAM cache?

2005-12-14 Thread Paul Winkler
tedTraverse(some_path) ob.ZCacheable_invalidate() But I think you need the "View management screens" permission. (I have no idea why that one was chosen.) -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail

[Zope] ANN: ZSyncer 0.7.0 released

2005-12-15 Thread Paul Winkler
RAM. * "delete" now deletes from both local and remote systems. * SSL connections using ConnectionMgr should now set timeout properly. * Lots of unit tests! For bugfixes and older changes, see CHANGES.txt. -- Paul Winkler http://www.slinkp.com _

Re: [Zope] zyncer 0.7.0?

2005-12-18 Thread Paul Winkler
When in doubt, look for docs first :-) This UI change was noted in both README.txt (in the "Upgrading from Earlier Version" section), and in changes.txt; and the new way of dealing with user/password is also explained in the online help screen. -- Paul Wink

[Zope] ANN: ZSyncer 0.7.1-beta1 released

2005-12-22 Thread Paul Winkler
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

Re: [Zope] Going to 3.0

2006-01-09 Thread Paul Winkler
patibility layer. (This is likely to be much harder if you have significant dependencies on third-party code.) 2) ??? 3) export your data from zope 2 somehow, and re-import into zope 3. You may have to write some of your own serialization code. Step 2 is not well defined at this point in time

Re: [Zope] Applying updates to zope site

2006-01-09 Thread Paul Winkler
changes you are concerned with are to data that lives in the ZODB. Is that true? -- 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

Re: [Zope] Applying updates to zope site

2006-01-09 Thread Paul Winkler
On Mon, Jan 09, 2006 at 10:39:01AM -0500, Brian Sullivan wrote: > On 1/9/06, Paul Winkler <[EMAIL PROTECTED]> wrote: > > On Mon, Jan 09, 2006 at 10:15:41AM -0500, Brian Sullivan wrote: > > > I am involved in maintaining a remote Zope site that is behind a > > >

Re: [Zope] Applying updates to zope site

2006-01-09 Thread Paul Winkler
made solution. Only you know which objects you're interested in. That's why I suggested that you may end up scripting something. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] import error

2006-01-13 Thread Paul Winkler
are > importing. If you wish the imported objects to retain their existing > ownership information, select "retain existing ownership information". > === > > does this mean I create a directory named 'import' at the instance home? It should be th

Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-14 Thread Paul Winkler
nts and server on different platforms, but I doubt that is the issue. Do the system clocks on client and server agree? It's best if they are as close as you can make them. You might also try adjusting the "fudge_secs" value in ZSyncer/Config.py. Read the comment

Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-15 Thread Paul Winkler
On Sun, Jan 15, 2006 at 09:24:35PM +0100, Dieter Maurer wrote: > Paul Winkler wrote at 2006-1-14 15:30 -0500: > >On Fri, Jan 13, 2006 at 09:08:26PM -0600, Carlos de la Guardia wrote: > >> we just installed Zsyncer 0.7.1-beta1 on a couple of our servers and have > >>

Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-16 Thread Paul Winkler
get) > that resulted from the synchronization. > A resynchronization is necessary when the "bobobase_modification_time" > moved away from the registered "sync_bobobase_time"s. Ahhh, now I see. Thank you, this is probably cheaper than most of my ideas. I could store th

Re: [Zope] Products for XML-RPC

2006-01-17 Thread Paul Winkler
ly this feature. You just prepare a dictionary identifying the remote path(s) and method(s) to call along with arguments, and you get back native python objects. (The response is sent back to you as pickles which are transparently unpickled.) There's no UI for using this, it's just prov

Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-17 Thread Paul Winkler
On Tue, Jan 17, 2006 at 07:13:53PM +0100, Dieter Maurer wrote: > Paul Winkler wrote at 2006-1-16 14:32 -0500: > >On Mon, Jan 16, 2006 at 07:48:45PM +0100, Dieter Maurer wrote: > >> Synchronization modifies "bobobase_modification_time" on the target. > > > &

Re: [Zope] Zope 2.9 and product installation

2006-01-20 Thread Paul Winkler
he warnings. Presumably the IssueTracker team will test it under 2.9 at some point and figure out how to avoid the warnings. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

Re: [Zope] Zope vs Plone: performance issues!

2006-01-24 Thread Paul Winkler
> >/Sasha > >Lovely Systems - www.lovelysystems.com > > > > > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTM

Re: [Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Paul Winkler
ere in between is good ;-) I prefer to err on the side of making it huge, and stop worrying about it. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML e

Re: [Zope] ZEO disconnects, Zope auto restarts (via zopectl)

2006-02-03 Thread Paul Winkler
ng the problem. Any advice would be > appreciated. > > Presumably the shotgun approach would work -- increase the cache sizes, > lengthen the invalidation-queue-size, and increase the backoff-limit but > it would be nice to have some guidance. > > 5~ > > > ___

Re: [Zope] inheritance and aqusition question

2006-02-03 Thread Paul Winkler
ontroller instance). This example assumes that your Controller is responsible for instantiating the importSingle instances. But having said that, I too wonder why use acquisition for this. Why not just pass in a reference to the Controller instance and call methods on it explicitly? -- Paul Wi

Re: [Zope] ZEO disconnects, Zope auto restarts (via zopectl)

2006-02-03 Thread Paul Winkler
eport on the effect. Well, as I said, it's very unlikely to have any impact on your problem. If I were in your shoes the first thing I'd do is bump up the log levels on both zope and zeo to BLATHER. Adds overhead I know, but you need to find the problem somehow

Re: [Zope] Zope=ZEO connection

2006-02-07 Thread Paul Winkler
hat's the > best approach to get more information to localize the failure. I really don't know. But I'd have a look at the trace log, if you've got that configured (I routinely do). Maybe you could spot some patterns right before the crashes? *shrug* -- Paul Winkler http:/

<    1   2   3   4   >