Re: [Zope-dev] Playing with DateTime

2001-03-16 Thread Juan David Ibáñez Palomar
Hello Stefano, I used mxDateTime about two years ago, when I worked with Bobo, the move to Zope brought lots of advantages, the only thing I missed was mxDateTime. The discussion about DateTime comes to the mailing lists between time to time, you can look what has already been said about it

[Zope-dev] Ri:Zope-Dev digest, Vol 1 #990 - 15 msgs

2001-03-16 Thread [EMAIL PROTECTED]
Hello Juan well, the idea behind me was to do something that anybody can use actually.if I crack the DateTime module for a quick and dirty, then nobody will benefit from it, and I will have to take care of it in future releases. I was however thinking on two possible solutions: -

Re: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Tom Jenkins
Is there a simple method like getAcquistionPath() that tells me how I was required without having to do some sub optimal REQUEST variable hacking / string matching? I don't know of any (but that doesn't mean there isn't one). But couldn't you walk up the aq_parent? -- Tom Jenkins

[Zope-dev] ZCatalog Bug?

2001-03-16 Thread Edmund Goppelt
The bug collector doesn't appear to be working, so I apologize if this issue has already been raised. ZCatalog is failing for me when I attempt to reindex the catalog after adding a keyword index. Zope complains of a name error for Except on line 118 of UnKeywordIndex.py. Here's the code in

Re: [Zope-dev] ZCatalog Bug?

2001-03-16 Thread Toby Dickenson
On Fri, 16 Mar 2001 08:48:09 -0500, Edmund Goppelt [EMAIL PROTECTED] wrote: Could the author have meant to write 'Exception' here instead of 'Except'? I am running Zope 2.3.0 stable. The current cvs has this changed to 'except AttributeError' Toby Dickenson [EMAIL PROTECTED]

RE: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Brian Lloyd
Is there a simple method like getAcquistionPath() that tells me how I was required without having to do some sub optimal REQUEST variable hacking / string matching? I don't know of any (but that doesn't mean there isn't one). But couldn't you walk up the aq_parent? Acquisition

[Zope-dev] (no subject)

2001-03-16 Thread Menno Brandsen
I have a question regarding images in a MySQL Database I'm trying to insert (and retrieve) images into a mysql database I use a standard upload form and a normal insert statement in the sql. The output i get is this : ZPublisher.HTTPRequest.FileUpload instance at 86550c8 which is clearly not

Re: [Zope-dev] Playing with DateTime

2001-03-16 Thread Casey Duncan
"[EMAIL PROTECTED]" wrote: Hello I am playing around with the DateTime module in order to adapt it to other formats than the American one. However, I would like not to start a work that someone is already doing or that is already done. I have found a little patch that solves temporarily

[Zope-dev] ZPT trials and tribulations

2001-03-16 Thread Phil Harris
All, I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for the win32 stuff). Anyway up, It's all going according to plan but I have a few issues, maybe someone has a better idea than me what's wrong here. code starts here ?xml version="1.0" ? html

Re: [Zope-dev] ZPT trials and tribulations

2001-03-16 Thread Evan Simpson
From: "Phil Harris" [EMAIL PROTECTED] The problem is that I'm getting a traceback (I won't bore you with the details unless I have to) to the effect of 'ui' being unknown. Mmph. That release has a problem with exposing TAL variables to Python code. There will be a *much* better one Real Soon

Re: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Christian Scholz
Hi! Ahh... thanks Brian. Thats a new one to me :) To me, aswell. Is this documented somewhere? ;-) And can someone explain to us where the differences between aq_chain and getPhysicalPath() are? Actually getPhysicalPath() seems also to walk up aq_parent. Or am I missing something? regards,

Re: [Zope-dev] Playing with DateTime

2001-03-16 Thread Christian Scholz
Hi! IMHO, the best approach would be to make mxDateTime available separately from DateTime in the _ variable. That would avoid breaking any code, but allow anyone who wanted to use mxDateTime that option from within Zope. I think a product that adds mxDateTime to the _ variable would be

RE: [Zope-dev] Playing with DateTime

2001-03-16 Thread Brian Lloyd
IMHO, the best approach would be to make mxDateTime available separately from DateTime in the _ variable. That would avoid breaking any code, but allow anyone who wanted to use mxDateTime that option from within Zope. I think a product that adds mxDateTime to the _ variable would be

[Zope-dev] ZODB Couldn't load state (Berkeley DB 2..7.7)

2001-03-16 Thread Ping Lau
I have been using Berkeley DB 2.7.7 as main Zope Storage for about 3 months now. I am running Zope 2.2.4. Everything was fine yesterday. This morning I tried to access a ZClass (base class ZObjectManager), which contains about 2,000 objects, I got ERROR(200) ZODB Couldn't load state for

RE: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Brian Lloyd
To me, aswell. Is this documented somewhere? ;-) It's not in the Acquisition.stx in the ExtensionClass docs - probably they were never updated when it was added. I think that aq_chain is most useful as a debugging aid rather than something one would use in an application (which is not to

Re: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Evan Simpson
From: "Christian Scholz" [EMAIL PROTECTED] And can someone explain to us where the differences between aq_chain and getPhysicalPath() are? Actually getPhysicalPath() seems also to walk up aq_parent. Or am I missing something? "aq_chain" gives you a list of the objects traversed to get to your

[Zope-dev] New Zcatalog bug on b2?

2001-03-16 Thread Júlio Dinis Silva
When passing in the REQUEST the var sort_on into the searchREsults method I get this error: Zope Errorr Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: len() of unsized object With this traceback: Traceback (innermost last): File

Re: [Zope-dev] ZODB Couldn't load state (Berkeley DB 2..7.7)

2001-03-16 Thread Chris McDonough
Ping... eek. Do you have a backup? There are no recovery utilities for BerkeleyStorage AFIAK. - Original Message - From: "Ping Lau" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 17, 2001 3:55 AM Subject: [Zope-dev] ZODB Couldn't load state (Berkeley DB 2..7.7) I have

Re: [Zope-dev] New Zcatalog bug on b2?

2001-03-16 Thread Chris McDonough
Julio, Can you give us the actual index names that you're putting in the request to search against, the query values you're passing in to each index, and the contents of the sort_on parameter for that request? What kinds of indexes are referred to by each of the index names in the query? -

Re: [Zope-dev] Organizing modules in a python product

2001-03-16 Thread Dieter Maurer
Itai Tavor writes: ... abbreviated references to sibling subproducts ... Is there any way to set this up so imports like 'import Utils' and 'import Module2' would work in Module1? As a bonus, can I also get __init__.py files in each module directory to be executed? You can manipulate

Re: [Zope-dev] (no subject)

2001-03-16 Thread Dieter Maurer
Menno Brandsen writes: I'm trying to insert (and retrieve) images into a mysql database I use a standard upload form and a normal insert statement in the sql. The output i get is this : ZPublisher.HTTPRequest.FileUpload instance at 86550c8 which is clearly not the correct data To get the

[Zope-dev] [ANN] LDAPUserManager Released

2001-03-16 Thread Jens Vagelpohl
The LDAPUserManager is a LDAP user record administration tool to be used in conjunction with the LDAPLoginAdapter. It allows the site manager to search, create, edit and delete user records that are stored on an LDAP server, thereby completing the Zope user management functionality already

Re: [Zope-dev] ZPT trials and tribulations

2001-03-16 Thread Martijn Pieters
On Fri, Mar 16, 2001 at 04:59:16PM -, Phil Harris wrote: All, I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for the win32 stuff). Anyway up, It's all going according to plan but I have a few issues, maybe someone has a better idea than me what's wrong here.

Re: [Zope-dev] Playing with DateTime

2001-03-16 Thread Juan David Ibáñez Palomar
Hello, Of course, we already can use mxDateTime in our own products. But there is a problem, both modules have the same name, if you write "import DateTime" you get the Zope's DateTime module. A solution is to rename the mxDateTime module directory from DateTime to, for example, mxDateTime,

[Zope-dev] Adding ZClass Instances via Python

2001-03-16 Thread Edmund Goppelt
Ok, I know there's a howto with a working solution to this problem, but this is *still* killing me: How does one add a ZClass Instance in a way analagous to adding, say, a DTML Document in a Python script? With the dtml document, it's easy:

Re: [Zope-dev] Adding ZClass Instances via Python

2001-03-16 Thread Casey Duncan
Edmund Goppelt wrote: Ok, I know there's a howto with a working solution to this problem, but this is *still* killing me: How does one add a ZClass Instance in a way analagous to adding, say, a DTML Document in a Python script? With the dtml document, it's easy:

Re: [Zope-dev] (no subject)

2001-03-16 Thread Gregor Heine
Hi Menno, what you get from the form is a FileUpload object, so try this: print file.__dict__ and you will find out that it has a method called file.read() which returns the data of the uploaded file. Cheers, Gregor! -Original Message- From: "Menno Brandsen" [EMAIL PROTECTED] To:

RE: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Michel Pelletier
On Fri, 16 Mar 2001, Brian Lloyd wrote: To me, aswell. Is this documented somewhere? ;-) It's not in the Acquisition.stx in the ExtensionClass docs - probably they were never updated when it was added. I think that aq_chain is most useful as a debugging aid rather than something one