Re: [Zope-dev] Re: simpler TALES. (was Re: TALES idea: tupleunpacking)

2003-08-14 Thread Paul Winkler
blargh, sorry about the .htm extension and resulting MIME confusion... i forgot to rename it when i was done playing with it, even though it was only really an html file for the first 5 minutes. -- Paul Winkler http://www.slinkp.com ___ Zope-Dev

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

2003-08-14 Thread Erik A . Dahl
Chris, I took the code from zopectl that is uses to do the debug thing and scripts now work. Here is the code... import os if (os.environ.has_key('ZOPEVERSION') and os.environ['ZOPEVERSION'] == '2.7'): from Zope.Startup.options import ZopeOptions from Zope.Startup import handlers

[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

[Zope-dev] error in BTreeFolder2

2003-08-14 Thread robert
I tried to delete a couple of elements from a BTreeFolder2 and got the following traceback: Exception traceback Time2003/08/10 21:46:29.655 GMT+2 User Name (User Id) robert (robert) Request URL http://localhost:8080/Zehnder/sonntag/portal_memberdata/manage_delObjects Exception Type

Re: [Zope-dev] security issue

2003-08-14 Thread Dieter Maurer
Toby Gustafson wrote at 2003-8-14 04:35 -0700: ... I am having a problem accessing a function defined in a product I have created and installed. ... From that script I try to call the function with the lines: from Products.StoreEvent import StoreEvent ...

[Zope-dev] UndoSearch Timeout

2003-08-14 Thread Brian Brinegar
Hello, We have a ZODB which is about 12 - 14 gigs when packed. We use FileStorage, and when anyone clicks Undo eventually times out. This is better now that the undoLog does not lock the database. However if there are not enough transactions to fill the batch Undo is useless. So, everytime we

RE: [Zope-dev] Packing (still) hosed in 2.6.2?

2003-08-14 Thread Jeremy Hylton
I don't recall that any of the pack bugs that we fixed caused this sort of error. My first guess would be that the file is a bit damaged, perhaps in a way that the old pack did not check. Can you run fsdump.py and see if that output sheds any light. It will give you a detailed text summary of

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

2003-08-14 Thread Jamie Heilman
Chris Withers wrote: 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?

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()

[Zope-dev] Packing (still) hosed in 2.6.2?

2003-08-14 Thread Anthony Baxter
I remember that 2.6 had issues with packing, but I was under the impression that they'd been fixed... However, attempting to pack a Data.fs in 2.6-current-cvs fails for me: File /export/01/zope/dev_csr_code/lib/python/ZODB/DB.py, line 526, in pack try: self._storage.pack(t,referencesf)

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread J Cameron Cooper
I have been looking at the FileUpload class defined in HTTPRequest.py but am still a little confused about how it works. When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored in

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

2003-08-14 Thread Jamie Heilman
Chris Withers wrote: 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? 2.2 is installed on my machines, 2.1 isn't. It might work in 2.1 for all I know, but

Re: [Zope-dev] Re: simpler TALES. (was Re: TALES idea: tupleunpacking)

2003-08-14 Thread Shane Hathaway
Paul Winkler wrote: On Wed, Jul 30, 2003 at 04:49:19PM -0400, Shane Hathaway wrote: If you want to look for a solution, consider using *only* Python expressions--no path expressions. You'll get a lot of mileage that way, but at the expense of syntax clashes. Who knows, you might find a pretty

[Zope-dev] ZCVSMixin Import Error

2003-08-14 Thread Declan Shanaghy
Has anyone ever got an error similar to the one below when trying to import files thru ZCVSMixin (AFTER they were exported from same application) The file was not modified in any way but it refuses to re-import after being exported. Failed Imports

Re: [Zope-dev] Packing (still) hosed in 2.6.2?

2003-08-14 Thread Dieter Maurer
Anthony Baxter wrote at 2003-8-12 18:18 +1000: I remember that 2.6 had issues with packing, but I was under the impression that they'd been fixed... However, attempting to pack a Data.fs in 2.6-current-cvs fails for me: ... raise CorruptedError(s) ZODB.fspack.CorruptedError:

Re: [Zope-dev] error in BTreeFolder2

2003-08-14 Thread Shane Hathaway
robert wrote: I tried to delete a couple of elements from a BTreeFolder2 and got the following traceback: Exception traceback Time2003/08/10 21:46:29.655 GMT+2 User Name (User Id) robert (robert) Request URL http://localhost:8080/Zehnder/sonntag/portal_memberdata/manage_delObjects

[Zope-dev] pre-export and post-import hooks.

2003-08-14 Thread Romain Slootmaekers
Yo, I have an object for which I'd like to have pre-export and post import-hooks. After some code browsing, I found the ObjectManager api with the manage_exportObject method. overwriting this for the export looks good, but the problem is that this only works when called directly on the object,

[Zope-dev] security issue

2003-08-14 Thread Toby Gustafson
Hello, I am having a problem accessing a function defined in a product I have created and installed. The product is called StoreEvent, and it was created using the PloneMinimalInstall as a guide. In the StoreEvent product is a file called StoreEvent, which contains a function

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread Jamie Heilman
Toby Gustafson wrote: When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored in memory until some other code (like that in Image.py) stores it? Its stored in a temporary file as

[Zope-dev] FileUpload questions

2003-08-14 Thread Toby Gustafson
Hello, I have been looking at the FileUpload class defined in HTTPRequest.py but am still a little confused about how it works. When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored

Re: [Zope-dev] pre-export and post-import hooks.

2003-08-14 Thread Dieter Maurer
Romain Slootmaekers wrote at 2003-8-11 13:44 +0200: I have an object for which I'd like to have pre-export and post import-hooks. After some code browsing, I found the ObjectManager api with the manage_exportObject method. overwriting this for the export looks good, but the

[Zope-dev] why cant i import types

2003-08-14 Thread Declan Shanaghy
Can someone tell me why i cant import types into my python script in CMF? When i put either of the following lines as the first line of my script i get the error that follows from types import * - produces Error Type: ImportError Error Value: from types import * is not allowed from types import

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread Declan Shanaghy
Its handy enough to implement. lets say your file parameter is called 'file'... #os_uploadCacheImage is a Zope External method. if request.has_key('file'): context.os_uploadCacheImage(context.PATH_CACHE, request['file'], request['file'].filename) #co-responding implementation for zope

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]

Re: [Zope-dev] why cant i import types

2003-08-14 Thread robert
For security reasons many of the standard libraries are not allowd to be used in Zope. Types is one of them. You can declare a library as save for use in a python script. How I can not say without consulting the documentation. Robert Am Friday 15 August 2003 04:18 schrieb Declan Shanaghy: Can