Re: [Zope-dev] Re: Custom class: cut,copy,rename?

2004-03-02 Thread Chris Withers
Ian Beatty wrote: I presume you mean for cut, paste, rename, etc. If I remove PropertyManager, my 'Properties' ZMI tab disappears. That's odd, I could have sworn ObjectManager used that. Hmmm, maybe use Folder instead of ObjectManager ;-) Okay. This is bizarre. I've got a containment hierarchy

Re: [Zope-dev] running test.py with instance_home products.

2004-03-02 Thread Chris Withers
Chris McDonough wrote: Has anyone found a reasonable strategy for using Zope's test.py to test products that are installed outside the Zope software home? I try running it from the software home and using the --dir option to point it to where my product is, but it tells me it can't find any

Re: [Zope-dev] Zope 2.7 date international configuration

2004-03-02 Thread Chris Withers
Santi Camps wrote: But the result is that with :date fields, us format is always used, not following the instruction in zope.conf. Perhaps there is some problem in Zope configuration machinery. Yep, sounds like a bug, stick it in the collector :-) cheers, Chris -- Simplistix - Content

Re: [Zope-dev] Custom class: cut,copy,rename?

2004-03-01 Thread Chris Withers
Ian Beatty wrote: OFS.ObjectManager.ObjectManager Products.ZCatalog.CatalogPathAwareness.CatalogAware OFS.PropertyManager.PropertyManager OFS.SimpleItem.SimpleItem I'm pretty sure all you should actually need is: OFS.ObjectManager.ObjectManager

Re: [Zope-dev] Maybe Corrupted ZCatalog but ...

2004-02-27 Thread Chris Withers
Eric Brun wrote: An idea for fix it ? Have you tried updating the catalog from it's advanced tab? Not sure how that'd pan out on 200,000 objects though... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] server for new protocol?

2004-02-26 Thread Chris Withers
Nikolay Kim wrote: is there any way create server for new protocol without changing ZServer module? Nope, have you looked at Twisted? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] read-only ZPublisher.Publish

2004-02-25 Thread Chris Withers
Jeremy Tammik wrote: when i try to view a specific page, i get an error * Module ZPublisher.Publish, line 104, in publish * Module Zope.App.startup, line 221, in commit * Module ZODB.Transaction, line 232, in commit * Module ZODB.Transaction, line 340, in _commit_begin * Module

Re: [Zope-dev] Making a custom class addable to another class in product, but not to Zope

2004-02-25 Thread Chris Withers
Ian Beatty wrote: manage_addProduct['MyProduct'] accesses. Is there a way around this? I'd think what I'm trying to do is pretty standard, but I can't find anything enlightening. Have a look at the code in the PlugginIndexes product tha tships with Zope, since it works in exactly the way you

Re: [Zope-dev] Security validation issue

2004-01-30 Thread Chris Withers
Herman Geldenhuys wrote: I've written a Zope product that exposes a MenuItem. I add a menuItem in a Zope folder, and I have no difficulty accessing and editing it via the ZMI. I've written an xml-rpc-like protocol for Zope, that basically validates the security manually. What do you mean by

Re: [Zope-dev] cPickleCache endless loop...

2004-01-27 Thread Chris Withers
Paul Winkler wrote: I don't know what your intention is there, but fwiw, if what you're *really* interested in is the object being marked for deletion in the ZODB, you can use: I'm pretty sure that only works in Zope, so? the O.P. was about zope, and this IS the zope-dev list... Yup, but ZODB !=

Re: [Zope-dev] ConflictError in BTreeFolder2

2004-01-27 Thread Chris Withers
Are these patches available anywhere? Have you let Shane know? Chris Florent Guillaume wrote: FYI: I've fixed BTreeFolder2 to properly re-raise ConflictError in _delObject and not swallow it during beforeDelete cleanups. This is the same fix that was done in ObjectManager. Florent

Re: [Zope-dev] ZODB load state error

2004-01-26 Thread Chris Withers
Thyb wrote: The error message: 2004-01-25T02:55:21 ERROR(200) ZODB Couldn't load state for 3ef2 Traceback (most recent call last): File /opt/freeware/zope/lib/python/ZODB/Connection.py, line 564, in setstate self._set_ghost_state(obj, p) File

[Zope-dev] Zope - SecurityFocus Newsletter #232 (fwd)

2004-01-21 Thread Chris Withers
Hi, Can anyone shed light on all of these? I know about some of them, but this is quite a disturbingly long list... cheers, Chris -- Forwarded Message -- Date: Tuesday, January 20, 2004 2:45 PM -0700 From: Kelly Martin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

[Zope-dev] ThreadLock module?

2003-10-31 Thread Chris Withers
Hi all, Anyone know what the difference is between Zope's ThreadLock module and the standard python Lock objects from the threading module? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross

[Zope-dev] New Zope Database Adapter Test Suite available

2003-10-31 Thread Chris Withers
Hi All, I've just finished writing a test suite for Zope DA's in general, based on what I saw in Shared.DC.ZRDB.Connection and Shared.DC.ZRDB.DA. This is available from: http://cvs.zope.org/*checkout*/Products/DCOracle2/test/test_zopeda.py An example of how to use it (for ZOracleDA in this

Re: [Zope-dev] _v_ variables and cache garbage collection

2003-10-29 Thread Chris Withers
Dieter Maurer wrote: What in the ZODB cache or other ZODB code could be causing _v_ variables to stick around after they've been set to None in their containing objects? Nothing. When you assign None to the _v_variable, then this reference will go away. There may be others, which you did not

Re: [Zope-dev] Controlling start en finish of a request

2003-10-29 Thread Chris Withers
You could look at Steve A's TransactionAgents if you're brave... Chris Dario Lopez-Kästen wrote: Hello, I need help with ideas on how to solve my little problem here. I need to sort of be more in control of a request, meaning that at the beggining of a request I want to set some variables and

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-23 Thread Chris Withers
Toby Dickenson wrote: Apart from the most trivial cases, it would allow _v_ attributes to disappear at random. Its a similar problem to the one that makes it hard to write an optimiser for python code, and I am unconvinced that this is sane. Which, unfortunately, then leaves us with the problem

[Zope-dev] _v_ variables and cache garbage collection

2003-10-23 Thread Chris Withers
Toby Dickenson wrote: No, we just exclude objects with _v_ attribute from mid-transaction deactivation. There arent many objects in that category, but they do need protection. This is slightly OT but reminded me of something important I need to ask. ZOracleDA stores its database connections in

Re: [Zope-dev] Zope RAM usage, _v_ variables and the ZODB cache

2003-10-23 Thread Chris Withers
Toby Dickenson wrote: Which, unfortunately, then leaves us with the problem of how to stop Zope using up an undeterminable amount of memory... No, we just exclude objects with _v_ attribute from mid-transaction deactivation. There arent many objects in that category, but they do need

Re: [Zope-dev] Zope and chunked Transfer-Encoding problem

2003-10-21 Thread Chris Withers
Anton Zubenko wrote: I get Bad Request error with response code 400. I am pretty confident about the request correctness itself. Then I guess you have your answer :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-15 Thread Chris Withers
Casey Duncan wrote: I would argue that a better plan would be to only use _v_ vars for completely disposable data only. The application should expect that this values will be gone at any random time, not just at transaction boundaries. Agreed. Are there any situations, apart from the already

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-15 Thread Chris Withers
Dieter Maurer wrote: Chris Withers wrote at 2003-10-8 21:22 +0100: Casey Duncan wrote: I would argue that a better plan would be to only use _v_ vars for completely disposable data only. The application should expect that this values will be gone at any random time, not just

Re: [Zope-dev] Very fast requests beating ZODB commits...

2003-10-15 Thread Chris Withers
Tres Seaver wrote: Its funny nonetheless that you should report such a thing: we have a customer who reports similar issues in a bit of their CMS, where a popup submits its form (in Javascript) and then refreshes its parent window; if the commit takes long enough (e.g., it hits a conflict), the

Re: [Zope-CMF] Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-15 Thread Chris Withers
Toby Dickenson wrote: Today we have the 'transaction participant' interface. That would be a better place to hold these things, allowing the DA object itself to be deactivated if necessary. What's the 'transaction participant interface' and where can I find otu mroe about it? Chris

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-15 Thread Chris Withers
Seb Bacon wrote: Agreed. Are there any situations, apart from the already discussed CMF skindata, where this currently isn't the case? I'm a bit puzzled - of what use is a variable which may disappear at any random time? For caching things... Chris

Re: [Zope-dev] Initial ZODB permissions

2003-10-09 Thread Chris Withers
Andy McKay wrote: Yeah, wrong but toothless. Feel free to fix on appropriate branches I guess :-) Well yeah but Im betting its there for a reason, I just dont know what it is yet. Changing that is sure to break something... Well, do it and I'm sur we'll soon find out :-) Chris

Re: [Zope-dev] Re: catalogObject changes (Zope-2_6-branch)

2003-10-08 Thread Chris Withers
Leonardo Rochael Almeida wrote: Cool! Can we get some form of 2.6.3 beta out to encourage people not to migrate to 2.6.2? Or maybe a HotFix? This isn't hotfix-related so I'd say no. Would be cool to crank out a 2.6.3 though... Chris ___ Zope-Dev

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-10-08 Thread Chris Withers
Casey Duncan wrote: I would argue that a better plan would be to only use _v_ vars for completely disposable data only. The application should expect that this values will be gone at any random time, not just at transaction boundaries. I agree with this. How do we go about find code that uses

Re: [Zope-dev] Re: CVS: Zope/doc/PLATFORMS - BSD.txt:1.1.2.1

2003-10-08 Thread Chris Withers
Jochen Knuth wrote: Way #1: In your Python source directory: Way #2: In your Python source directory: Way #3: Use Python from the ports system (the fixes are there since 06 Feb 2003 ) This might be worth chucking in the collector... Chris ___

Re: [Zope-dev] Initial ZODB permissions

2003-10-08 Thread Chris Withers
Andy McKay wrote: Of course you need to be able to paste... so may not be a huge problem, just looks wrong :) Yeah, wrong but toothless. Feel free to fix on appropriate branches I guess :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-26 Thread Chris Withers
Tres Seaver wrote: Where and how are they implemented? Products.CMFCore.CachingPolicyManager.createCPContext. Cool, thanks :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] _p_deactivate() and _v_ variables?

2003-09-26 Thread Chris Withers
Toby Dickenson wrote: On Thursday 25 September 2003 11:51, Chris Withers wrote: Hmmm, does _p_deactivate() clear the contents of the object's _v_ variables? Yes Then given your earlier comment that _v_ variables are supposed to last at least teh length of the request, John's idea of using

Re: [Zope-dev] VOcabulary stop words

2003-09-26 Thread Chris Withers
Paulo Lobo wrote: I need to changer my stop words in my vocabulary!! I've tryed to change that file, Lexicon.py, where the stop words are stores, but it doesnt works When i re-index all the data my customized stop words are indexed too! What version of Zope are you using? What kind of text

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-25 Thread Chris Withers
Tres Seaver wrote: I have wanted to add a binding to the TALES namespace to allow access to the skin object for some time: the current values in the namespace are: 'content' -- the skin object's aq_parent 'view' -- the skin object's name (a really bad choice for the key) 'keywords'

[Zope-dev] _p_deactivate() and _v_ variables?

2003-09-25 Thread Chris Withers
def traverseTree(self): ''' Traverse the tree and do something. ''' was_ghost = self._p_changed is None for ob in self.objectValues(): traverseTree(ob) # XXX Do something with self here : self.doSomething() if was_ghost:self._p_deactivate() Hmmm, does

Re: [Zope-dev] Problems with ZODB and persistence

2003-09-25 Thread Chris Withers
Emiliano Marmonti wrote: class Autores: def __init__( self, file='dcAuthor.fs' ): self.file= file self.db = ZODB.DB( FileStorage( file ) ) This is BAD. The level you're writing stuff at, let Zope take care of the storages, you just stick to writing application code ;-) If

Re: [Zope-dev] Can anyone help to work with Xron on Linux?

2003-09-25 Thread Chris Withers
I-Ling Lin wrote: I really don't know how to continue... Can anyone help me, please, pls Hmmm, well, inititally: - stop posting HTML to a non-HTML list - post to the correct list: [EMAIL PROTECTED] [EMAIL PROTECTED] is for the development of, not development with, Zope... - stop using

[Zope-dev] Re: error_log missing things?

2003-09-25 Thread Chris Withers
Shane Hathaway wrote: Presumably, some error occurred that led to ZPublisher aborting the transaction. Since transaction abort is never supposed to fail, perhaps ZPublisher doesn't use the same mechanism to report transaction abort failures. Yeah, that makes sense but... It looks like DCOracle2

[Zope-dev] error_log missing things?

2003-09-24 Thread Chris Withers
Hi Shane, I see from the CVS logs that you originated the error_log tool so I thought I'd try you for ideas, and CC zope-dev in case anyone there can help... I've been having some fun'n'games with Oracle: http://mail.zope.org/pipermail/zope-db/2003-September/002149.html The weird thing, that's

[Zope-dev] Re: Still i18n:attributes DeprecationWarning on Zope head!

2003-09-17 Thread Chris Withers
Godefroid Chapelle wrote: Sidnei and I have corrected branch 2.7. Currently, DeprecationWarnings are meant to stay on HEAD. Indeed, this is a good thing... Those Deprecation Warnings are emitted from TAL/TALGenerator.py. Feel free to replace the message by something more explicit to you. I

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Chris Withers
Fred Yankowski wrote: python: content.meta_type == 'Filesystem Image' Do you have any content with this metatype? There is nothing in the portal_catalog with that meta_type. But there are lots of objects with that type: most everything in portal_skins/plone_images/, for example. Oh, I getcha

Re: [Zope-dev] Etag support in page templates

2003-09-17 Thread Chris Withers
Jens Vagelpohl wrote: +1 Along with that the MS Author Via header garbage should at least be governed by some configuration flag. + as many things as I'm allowed ;-) Then I can finally stop patching production servers that serve up MS office files for download... Chris

Re: [Zope-dev] Etag support in page templates

2003-09-17 Thread Chris Withers
Jamie Heilman wrote: Solution A) Solution B) The correct answer, of course, is to do both... Sorry, but not everyone fronts Zope with a proxy (yes, of coruse they should Jamie, but you have to understand not everyone is qutie as godlike as wants to get going as quickly as possible so they

Re: [Zope-dev] Cache growing during single REQUEST

2003-09-15 Thread Chris Withers
Tim Peters wrote: Probably none for many apps. You'll be working with possibly non-current data, so think of ways your apps could possibly be damaged by that. For example, you're Bill Gates, using ZODB to track all your assets. A summary report takes hours to generate, and by the time you get

Re: [Zope-dev] Communication between Zserver and ZPublisher

2003-09-15 Thread Chris Withers
Alexander Schad wrote: Hi all, I'd like to understand how the communication between the ZServer and the ZODB works. As far as i know the ZServer (Web server) talks to the ZPublisher (ORB) to get the Requested Object. But do they communicate via tcpip sockets or unix sockets? Neither, AFAIK. I

Re: [Zope-dev] Communication between Zserver and ZPublisher

2003-09-15 Thread Chris Withers
Alexander Schad wrote: Yes an oracle DB and i'm using an external session service to store and retrieve session data using the httplib. I think using httplib to return session data is risk to put it mildly. I'd put money on the fact that it's either that or your ORacle query that's hanging...

Re: [Zope-dev] Catalog performance

2003-09-12 Thread Chris Withers
John Barratt wrote: Chris Withers wrote: John Barratt wrote: docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.aq_parent.unrestrictedTraverse(doc.getPath()) was_ghost = obj._p_changed is None value = obj.attr if was_ghost:obj._p_deactivate

Re: [Zope-dev] Cache growing during single REQUEST

2003-09-12 Thread Chris Withers
Tim Peters wrote: Multiversion concurrency control (MVCC for short) is the next step. If no other crises intervene, Jeremy and I will start implementing that on the ZODB3 3.2 branch (most likely that branch -- can't swear to it) soon (ditto). From Jeremy's recent notes, I think it'll be the Zope

[Zope-dev] Still i18n:attributes DeprecationWarning on Zope head!

2003-09-11 Thread Chris Withers
Chris Withers wrote: /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes=value title). Please use semicolon to separate attributes (i18n:attributes=value; title). Come

Re: [Zope-dev] Still i18n:attributes DeprecationWarning on Zope head!

2003-09-11 Thread Chris Withers
Stephan Richter wrote: What does it mean and what should it be changed to? I think the test must be updated. Arg! I know that! From what to what?! As usual with deprecation warnings, the error is next to useless... File None at row, column (1, 0) ...very helpful. Anyone have any idea where

Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-11 Thread Chris Withers
Michael Long wrote: After some further investigation I have found that a product that I am developing is causing the error to appear. The product appears to work fine in zope. I can add it, create objects with it and the objects are persistent. Can someone give me some advice on how to go about

[Zope-dev] Zope HEAD test.py --dir doesn't work...

2003-09-11 Thread Chris Withers
...can anyone else confirm this? It doesn't appear to ever find any tests. How should it be used? (just to check I'm doing the right thing...) cheers, Chris PS: CC'ing Jeremy in since he's the last person to touch test.py... ___ Zope-Dev maillist

Re: [Zope-dev] Cache growing during single REQUEST

2003-09-10 Thread Chris Withers
Toby Dickenson wrote: On Friday 05 September 2003 14:21, Chris Withers wrote: [pickle size = memory usage] Yes, I hope its close enough for most purposes. It would be nice to have a way for the object to override that in the cases where it is badly wrong. Good call, that sounds like an excellent

Re: [Zope-dev] Strange bug(?) accessing File objects

2003-09-10 Thread Chris Withers
Bjorn Stabell wrote: When accessing File objects that are not accessible to Anonymous (HTTP and WebDAV View permissions not given), the Basic HTTP Auth window pops up repeatedly even after the user has logged in using the cookie crumbler method, and the user has permissions to view the file.

Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-10 Thread Chris Withers
Michael Long wrote: I have recently installed Zope 2.7.0-b2 on windows XP and am getting the same error message as 2.7.0-b1 when starting zope. Is this truly an error message or just informational? 2003-09-05T11:37:23 BLATHER(-100) ZODB Commiting subtransaction of size 5382 Traceback (most recent

[Zope-dev] i18n:attributes DeprecationWarning on Zope head? Space separated attributes in i18n:attributes are deprecated (i18n:attributes=value title)

2003-09-10 Thread Chris Withers
The message makes sense, what should they be replaced with? [EMAIL PROTECTED] wrote: == Python Version:2.2.3 (#1, Jun 10 2003, 13:52:48) [GCC 2.95.2 2220 (Debian GNU/Linux)] Modules included: Zope (HEAD) Running unit tests

Re: [Zope-dev] Cache growing during single REQUEST

2003-09-05 Thread Chris Withers
Toby Dickenson wrote: On Wednesday 03 September 2003 12:15, Chris Withers wrote: If the object load would cause the cache to go above it's maximum number, *Number* isnt the the right parameter to control here. We need to limit the total amount of RAM. Objects are of variable size

Re: [Zope-dev] Cache growing during single REQUEST

2003-09-04 Thread Chris Withers
Leonardo Rochael Almeida wrote: as a lower bound. (Note that the cache is still allowed to grow indefinitely within the scope of a request, however.) This is the single biggest cause of Zope becoming unresponsive for me: people doing silly things that drag hordes of objects into memory i na

Re: [Zope-dev] Cache growing during single REQUEST

2003-08-29 Thread Chris Withers
Shane Hathaway wrote: as a lower bound. (Note that the cache is still allowed to grow indefinitely within the scope of a request, however.) Which is still pretty broken IMHO :-( This is the single biggest cause of Zope becoming unresponsive for me: people doing silly things that drag hordes of

Re: [Zope-dev] Re: tal i18n and ZopeStarter test failures

2003-08-29 Thread Chris Withers
Fred L. Drake, Jr. wrote: Chris Withers writes: I see these tests fail on both Windows and Linux. What gives? Who checked in this code without running the tests?! As I've indicated previously, I don't see these tests failing on Linux at all. Well, I see an identical set of tests fail

Re: [Zope-dev] Re: tal i18n and ZopeStarter test failures

2003-08-29 Thread Chris Withers
Fred L. Drake, Jr. wrote: Chris Withers writes: Can I take a peak at the config.xml you're using for autotester.py? I'm running make ftest test from the command line. Never heard of that, what does it do? What versions of Zope does it work with? On Linux I'm using: build locationZope

[Zope-dev] Re: tal i18n and ZopeStarter test failures

2003-08-28 Thread Chris Withers
Hi, I see these tests fail on both Windows and Linux. What gives? Who checked in this code without running the tests?! Chris PS: Does anyone know why there's that SearchIndex warning appearing, but on Linux only? [EMAIL PROTECTED] wrote:

[Zope-dev] Re: [Zope] CacheManager missing in 2.6.2b4 :-(

2003-08-14 Thread Chris Withers
[moving to Zope-Dev] Jamie Heilman wrote: That depends on the cache replacement policy you need. If you're not tied to LFU then you can just switch to using my MemoryCache product. (With all the various caveats surrounding it, of course, python 2.2, patching Zope, etc.) Why Python 2.2? What's

Re: [Zope-dev] Zope.app() dance with 2.7

2003-08-14 Thread Chris Withers
Chris McDonough wrote: What about when you're not debugging? What about scripts that pump stuff into Zope and the like? That would be zopectl run. Hmmm... for trivialities sake, say what I had before was a script called x.py: import Zope app = Zope.app()

Re: [Zope-dev] Zope.app() dance with 2.7

2003-08-14 Thread Chris Withers
Chris McDonough wrote: You can use zopectl debug to do this. What about when you're not debugging? What about scripts that pump stuff into Zope and the like? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Re: [Zope] CacheManager missing in 2.6.2b4 :-(

2003-08-08 Thread Chris Withers
Jamie Heilman wrote: 2.2 because 2.1 lacks ruthless efficiency. That, on its own, is not a very helpful statement ;-) What are the differences between 2.1 and 2.2 that you care about? The stock OFS/Cache.py is insecure, and lacking features I want, thus, I rewrote it and included patches to adapt

[Zope-dev] Re: TALES idea: tuple unpacking

2003-08-02 Thread Chris Withers
Evan Simpson wrote: It wouldn't -- this is a Zope 2 implementation. OK, I know what you mean, but I don't know enough about the Zope 3 implementation to make an informed response. Wouldn't Zope 2's lack of the whole component framework make this really hard? Don't think so, the stuff we

Re: ZEO caching, was Re: [Zope-dev] more Zope2.6 fun: ZEO clientdeath.

2003-08-02 Thread Chris Withers
Paul Winkler wrote: snip This is clearly problematic. At what point is client 2 supposed to see the new object?? I've seen this too. Where are we supposed to report these kinds of bugs now? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Re: TALES idea: tuple unpacking

2003-07-31 Thread Chris Withers
Evan Simpson wrote: OK, I've checked in a sample implementation on evan-pathprefix-branch. It allows for registering prefixes with: from Products.PageTemplates.PathPrefixes import registerSubPathPrefix registerSubPathPrefix('call', call_compiler, call_handler) How would this interact with the

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-31 Thread Chris Withers
Shane Hathaway wrote: Guys, that line of thinking is a distraction. ZPT authors ought to learn Python. I dunno about that, I would really like to see simple ZPT require no understanding of python... language again. If DTML used TALES expressions, it would be just as clean as ZPT. I actually

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-31 Thread Chris Withers
Jim Penny wrote: Ahh, OK. The damned here/context semantic trap again. It is too late to revisit, it is a done deed, it was a really good idea to call the concept context, self, and here, depending on what kind of object you are using, etc. But here suggests container more strongly to my mind

Re: [Zope-dev] ZCatalog Indexes tab crawls...

2003-07-29 Thread Chris Withers
Dieter Maurer wrote: But overall, unless you have special (non DC derived) indexes, That can well be the case... Anyway, what are we going to do about this crawling tab? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Object Type Assocation And Death To index_html

2003-07-29 Thread Chris Withers
Christopher N. Deckard wrote: Can you put us to the underlying code and I'll take a look at what needs to be done? This is something that is going to be very useful to us. Have a trawl through the list archives, I'm afraid I can't remember where the code is... cheers, Chris

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-29 Thread Chris Withers
Shane Hathaway wrote: Literally, user_files/int:0 says get item 0 of user_files, interpreting '0' as an integer. Technically, this could be interpreted as get the attribute named 0 or item 0, but an attribute name must be a string, so implicitly it really just says get item 0. We've come up

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-29 Thread Chris Withers
Philipp von Weitershausen wrote: AFAIK, Jim wants this for Zope3 for some time now. The idea is to implement this with named adapters. The framework is implemented, as are one or two examples, IIRC... The question remains how to implement this in Zope2 as we don't have adapters there. The

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-29 Thread Chris Withers
Evan Simpson wrote: 'key:' -- use item access with the prefixed string. 'index:' -- use item access with the prefixed integer. 'attr:' -- use attribute access with the prefixed string. In each case, the path traversal fails if the specified access method fails, rather than trying other access

Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-29 Thread Chris Withers
Paul Winkler wrote: On Wed, Jul 23, 2003 at 11:07:20AM -0500, Evan Simpson wrote: ... This would allow options/a_mapping/key:items/index:0 rather than python:options['a_mapping']['items'][0]. Why is that an improvement? Personally, I find it much easier to read... I wonder what

Re: [Zope-dev] TALES wish : the thistemplate variable

2003-07-29 Thread Chris Withers
Shane Hathaway wrote: We recently had a discussion about this: http://dev.zope.org/Wikis/DevSite/Proposals/MacroParameters The conclusion we came to is that we need a new kind of construct, tentatively called a subtemplate. Subtemplates accept parameters and have full control over the

Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-25 Thread Chris Withers
Fred L. Drake, Jr. wrote: - Use a Python-like sequence unpacking syntax. This is probably most comfortable to template authors who are Python programmers first, and web guys (or gals!) second. -0 for feature creap - Use the namespace qualifiers to get an adapter to handle converting

Re: [Zope-dev] ZCatalog Indexes tab crawls...

2003-07-21 Thread Chris Withers
Dieter Maurer wrote: #objects suggests that it is the number of objects indexed by this index. Who is interested in this information? Well, it's been useful to be on several occasions when I've seen one index has less objects in than another... Unless one has inhomogeous objects, almost all

Re: [Zope-dev] Object Type Assocation And Death To index_html

2003-07-21 Thread Chris Withers
Brian Brinegar wrote: There is a proposal in the Zope 2.6 plan called Object Type Assocation and Death To index_html the status listed is incomplete. Is this still on the table for future versions of Zope? If part of the proposal was implemented what parts?

Re: [Zope-dev] ZCatalog Indexes tab crawls...

2003-07-18 Thread Chris Withers
Casey Duncan wrote: Actually I regard the current behavior as a feature. Using a stopwatch and a slide-rule I can estimate to within 100 objects, how many values are indexed in a catalog by measuring the time it takes to draw the indexes page. Please do not remove this most valued feature! I

Re: [Zope-dev] ZCatalog Indexes tab crawls...

2003-07-18 Thread Chris Withers
Dieter Maurer wrote: I suggest to change the title to # index terms and revert for the indexes to the old behaviour. If that'll make it quicker, cool :-) Others pointed out, that also the size determination for an index may be expensive. However, it is at most linear in the number (rather than

Re: [Zope-dev] ZCatalog Indexes tab crawls...

2003-07-18 Thread Chris Withers
Anthony Baxter wrote: if there's no counter present: create one, do a count of the docs, initialise the counter display counter Sounds good, what needs to happen to make this happen? Since this is a bug fix, can it go on the 2.6 branch? cheers, Chris

[Zope-dev] ZCatalog Indexes tab crawls...

2003-07-17 Thread Chris Withers
Hi, Has anyone noticed that the ZCatalog Indexes tab crawls if you have loads of objects indexed. My guess is that some types of index take way too long to figure out how many objects are indexed. Anyone know which index types those could be? BTW, would anyone object if I removed that object

[Zope-dev] ZCatalog Indexes tab crawl reason confirmed

2003-07-17 Thread Chris Withers
Chris Withers wrote: My guess is that some types of index take way too long to figure out how many objects are indexed. This was confirmed by commenting out: dtml-var numObjects missing=n/a ...in catalogIndexes.dtml BTW, would anyone object if I removed that object count, since it's not often

[Zope-dev] ZCatalog indexes tab - which Index Types are guilty?

2003-07-17 Thread Chris Withers
The problem is caused by calling len() on the indexes btrees. Instead a counter implemented btree.Length should be used in the future. Which Index types are currently guilty of this? How about re-naming the column to Number of Documents Indexed and making sure this is actually what the indexes

Re: [Zope-dev] version status

2003-06-17 Thread Chris Withers
Jamie Heilman wrote: 100% correct. Frankly I'm not entirely convinced anonymous users should ever be able to open a zodb connection, Well, without that, they would never be able to view a page from a Zope site. That would make it tricky to log in ;-) Chris

Re: [Zope-dev] storing passwords

2003-06-16 Thread Chris Withers
Markus Bengts wrote: I want to use the same usernames and passwords in Zope and some other servers. The usernames and password digests are stored in a PostgreSQL database, and a given username and password -pair can be checked with a simple SQL-query. SimpleUserFolder will let you do this with

Re: [Zope-dev] storing passwords

2003-06-16 Thread Chris Withers
[EMAIL PROTECTED] wrote: Or SimpleUserFolder: create a user folder class in a Zope product that subclasses both SimpleUserFolder and OFS.Folder. Then put ZSQL methods and a few TTW python scripts in the folder contents of an instance of this class to make it work. I've done something similar to

Re: [Zope-dev] RE: DBtab and BDBStorage

2003-06-12 Thread Chris Withers
Andrew R. Halko wrote: Well, currently I cannot get python 2.2.3 to work with Plone. What do you need Python 2.2.3 for? 2.2.3 will support up to 4TB, which would solve all my problems, but it doesn't work. I have LFS in 2.1.3, have you tried recompiling Python 2.1.3 with LFS? cheers, Chris

Re: [Zope-dev] RE: DBtab and BDBStorage

2003-06-12 Thread Chris Withers
(keep it on the list please) Andrew R. Halko wrote: Are you running Windows or Linux? Windows and python do not support LFS Why are you trying to run a production system on Windows? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: small summary and big plea was:(Re: [Zope-dev] Versions: shouldthey die?)

2003-06-10 Thread Chris Withers
Shane Hathaway wrote: My opinion on this is a little different. It's quite easy for anyone to make mischief on any Zope server that lets people make even minor changes to the site, such as giving feedback, posting a discussion item, etc. All you have to do is include a Zope-Version cookie in

[Zope-dev] Post-authentication hook

2003-06-10 Thread Chris Withers
Dieter Maurer wrote: When we had a post-authentication hook (a hook called by ZPublisher after authentication has been done), then we could check in this hook that the user has the right to enter the version. When did we have one? Where did it go? Such a hook would be extremely

Re: [Zope-dev] RE: DBtab and BDBStorage

2003-06-10 Thread Chris Withers
Andrew R. Halko wrote: Plone/Members/ - BerkleyDB to allow a large number of users a large DB to create whatever they need in their areas I don't see why you're using BDB here. If you have a 4GB Data.fs in another part of your setup, what's the problem with just using a FileStorage for this?

[Zope-dev] Image.py:File._upload_data

2003-06-10 Thread Chris Withers
It would appear that _read_data only returns a single Pdata object if you chuck it a large string rather than the linked list of Pdata objects it would if you chucked it a FileUpload instance. Surely it should return a linekd list of Pdata objects in either case?

Re: [Zope-dev] Versions: should they die?

2003-06-07 Thread Chris Withers
Dieter Maurer wrote: If we really think, they were evil (I do not), we should make them a separate product which can be downloaded and installed by people who want it (like I do). That seems like a good idea :-) Chris ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Conflict Errors; how to track them down?

2003-06-04 Thread Chris Withers
Dieter Maurer wrote: The attached patch to Zope/App/startup.py provides this additional information. Where's the patch? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] Versions: should they die?

2003-06-04 Thread Chris Withers
Paul Winkler wrote: Comments? They really should die. They cause nothing but pain and suffering. Could we get at least some warnings in the ZMI before 2.6.2 final? I do hope so. I'd also like to see them becoming an explicit configuration option in 2.7 and not appear in any UI's unless they

<    6   7   8   9   10   11   12   13   14   15   >