[Zope-dev] Why use apply(foo.__call__, ..)?

2000-09-01 Thread Ross Boylan
In looking over the code for ZWiki/ZC, I see a lot of places with the following construct: apply(foo.__call__, some, arguments) Why not just say foo(some, arguments)? Examples of the construct from ZWikiPage.py: apply(self.aq_parent.standard_wiki_page.__call__,

[Zope-dev] strange ZopeTime-behavior

2000-09-01 Thread Joachim Schmitz
The following dtml-snipplet: dtml-var vonjahr dtml-var vonmonat dtml-var vontagbr dtml-var bisjahr dtml-var bismonat dtml-var bistag dtml-call "REQUEST.set('vondatum',ZopeTime(vonjahr+'-'+vonmonat+'-'+vontag))" dtml-call "REQUEST.set('bisdatum',ZopeTime(bisjahr+'-'+bismonat+'-'+bistag))"

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
Steve Alexander wrote: Phillip J. Eby wrote: Now, I can provide *unfiltered* linkage by direct delegation, but this would mean dropping the ability to selectively take only certain attributes or sheets from the parent. But I suppose that, compared to dropping the capability to

Re: [Zope-dev] MailHost, 2.2.1, and tracebacks

2000-09-01 Thread Shane Hathaway
Bill Anderson wrote: OK, I've bee trailing this bug for quite some time, and haven't found a solution other than not use 2.2.1 :( (snip) File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: mailPasswordTemplate) File

[Zope-dev] Not Globals.default__class_init__(Article) :-(

2000-09-01 Thread Chris Withers
Chris McDonough wrote: Did you run the Article class through Globals.default__class_init__()? E.g. (at the module level), e.g.: Globals.default__class_init__(Article) Yup, all the possible related classes have been run through this... cheers, Chris

[Zope-dev] Acquisiton, wrapping and persistence...

2000-09-01 Thread Chris Withers
Brian Lloyd wrote: (I'm coming to this late, so ignore me if this is covered ground...) It isn't :S Are you certain that you are not losing the acquistion context on your Articles somehow? There's a good chance that's right :S Is there anything bad about storing wrapped attributes in a

RE: [Zope-dev] Acquisiton, wrapping and persistence...

2000-09-01 Thread Brian Lloyd
Are you certain that you are not losing the acquistion context on your Articles somehow? There's a good chance that's right :S Is there anything bad about storing wrapped attributes in a persistent object? Butch seemed pretty religious about unwrapping objects before he stored them,

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
"Phillip J. Eby" wrote: I see that Folders w/ customizer support now have their own Data-plug-ins tab (they didn't before), and that it does direct delegation, rather than filtered forwarding. Direct delegation? I've lost you here. If it's doing that, then something's broken. sorry

[Zope-dev] But I used __ac_permissions__! :S

2000-09-01 Thread Chris Withers
Brian Lloyd wrote: Here's a quick thing to try- if 'subject' is an attribute of your Article class, try adding: class Article(...): subject__roles__=None then restart and see if you still get unauthorized... yup, I do :-( And besides, 'subject' is already in __ac_permissions__, as

Re: [Zope-dev] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Sorry for the cross post and so on, panicked with a deadline approaching. The error was caused my a cataloguing error after intialisation. Thanks. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 31, 2000 10:00 AM

[Zope-dev] ZCatalog: text searches fail with sort_on + patch

2000-09-01 Thread Steve Alexander
I'm getting an error in Catalog when I specify sort_on on a field-index, and also search on a text index. Zope 2.2.1, Python 1.5.2 Error Type: TypeError Error Value: loop over non-sequence Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 222, in publish_module File

Re: [Zope-dev] But I used __ac_permissions__! :S

2000-09-01 Thread Phillip J. Eby
This is just a SWAG (Strategic Wild-Ass Guess), but Ty and I have been having a problem with the search feature in Squishdot 0.7.0 that seems possibly to be related. Our trace of the problem shows that catalog searches from the SquishSite return objects which are wrapped with a *different*

[Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-01 Thread Brad Clements
One thing that has been bothering me is that I can't easily test my ZSQL Methods if they accept a date type unless I completely fill all the date arg types. For example, if the sqlmethod has argument type startdate:date='' and in the body I have dtml-if startdate ... When i use the test

Re: [Zope] indexing pdf files

2000-09-01 Thread Kapil Thangavelu
Terry Kerr wrote: Hi, I need to be able to index the text within pdf files. I assume I will somehow use PrincipiaSearchSource, but I need to know how to get the text out of the pdf when it is uploaded to the ZODB. Has anyone done this before? Are there any packages around that I can

Re: [Zope] indexing pdf files

2000-09-01 Thread Terry Kerr
I just answered my own question. The program is pdftotext, part of the xpdf package available for unix machines. It is very cool and very fast. terry Kapil Thangavelu wrote: Terry Kerr wrote: Hi, I need to be able to index the text within pdf files. I assume I will somehow use

[Zope] Designing with Zope

2000-09-01 Thread Tim Cook
Hoefully this is not too ambiguous. But I'm wondering if there are any "gotcha's" in developing an application that would maintain parts of it's data in ZODB and the rest in an RDBMS? This might be better stated as a situation where one application that uses Zope and an RDBMS was a sub-part

Re: [Zope] ZCatalog in 2.2.x

2000-09-01 Thread Terry Kerr
Hi, I can rebuild indexes and recatalog etc, it doesn't change anything. I don't see how it could change anything...it is a brand new zcatalog instance. Simply, the ZCatalog is created, the indexes are created, and the zcatalog is initially empty. Then I create one CatalogAware object, and it

[Zope] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread kamon ayeva
Hi, I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass constructor ? Many thanks. Kamon

[Zope] Good Examples of Zope in Action

2000-09-01 Thread Chris Withers
Marty McKeever at Work wrote: The question is this: "What are some examples of high-profile and/or enterprise level ecommerce or web production sites using zope?" Send me examples and i'll post them to the original thread. Paul, Maybe now would be a good time to chime in with the CBS and

Re: [Zope] a redirect of an url in Python

2000-09-01 Thread Chris Withers
[EMAIL PROTECTED] wrote: I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen. Firstup, posting HTML mail to the list doesn't help anyone ;-) That said, It sounds like what you want to do is end your python

[Zope] RE: Good Examples of Zope in Action

2000-09-01 Thread Paul Everitt
First, note that I can only talk on the record about things that are here now and that I have the OK to talk about. There have been a number of big things we've done over the last year, like our work with HomeGain that you allude to below. It's important for me to work closely with them to get

Re: [Zope] Success in installing ZPoPyDA (after 3 months...)

2000-09-01 Thread Bak @ kedai
where did you find lin ux.h that's needed by PoPy? thtt stump me from continuing. thanks -Original Message- From: Hung Jung Lu [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Friday, September 01, 2000 4:04 AM Subject: [Zope] Success in installing ZPoPyDA (after 3

RE: [Zope] Is anyone know when Zope was born ???

2000-09-01 Thread Paul Everitt
As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was Jim Fulton's plane trip back from IPC4: http://www.python.org/workshops/1996-06/ Beyond that, Zope (as a unification of previous software) was announced in November 1998 and released in December 1998. DC had some prior

Re: [Zope] Is anyone know when Zope was born ???

2000-09-01 Thread Andrew Kenneth Milton
+---[ Paul Everitt ]-- | | As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was | Jim Fulton's plane trip back from IPC4: | | http://www.python.org/workshops/1996-06/ That's the conception date, if you always skip straight to the birth, you're

[Zope] ZCatalog and OR searching

2000-09-01 Thread Chris Withers
Dieter Maurer wrote: A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine them with an "Or". Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary?

RE: [Zope] Is anyone know when Zope was born ???

2000-09-01 Thread Oleg Broytmann
Hello! Very interesting! Could you please publish the story somewhere on zope.org? On Fri, 1 Sep 2000, Paul Everitt wrote: As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was Jim Fulton's plane trip back from IPC4: http://www.python.org/workshops/1996-06/

[Zope] ZPatterns Stability

2000-09-01 Thread Chris Withers
Tim Cook wrote: If you're brave you could try ZPatterns and then realyl not care at all ;-) Don't you mean; 'If you're insane...' ? No, I really don't! ZPatterns is very cool, but still not documented. It's alpha but seems stable enough for production in a lot of cases. Phil? Steve A?

Re: [Zope] Re: HappySession

2000-09-01 Thread Philipp Auersperg
I also use HappySession and when catching the SessionNotFoundError weird things happen: here my code: dtml-try dtml-call "SESSION.set('FLinkID','0')" dtml-except session error! /dtml-try When the session is expired the error is not caught correctly and I get the error mentioned below.

[Zope] Re: HappySession

2000-09-01 Thread Diego Rodrigo Neufert
Well, this problem just accours when I restart the server or I stay too much time idle and the session expires... The frame[0] (the first to be loaded) show a session not found message and in frame[1] I got this error: Error Type: KeyError Error Value: NDxCfgEr_89YtG So, if I refesh the page zope

[Zope] Zope.org is slow, it's being hit hard! :-)

2000-09-01 Thread Chris Withers
Curtis Maloney wrote: Sometimes (much of the time) it comes through just fine. But on some days (and it does seem to last just the day) it's slower than a wet weekend. What would be interesting to know is WHY it gets slow. This might help explain it: I noticed this also, it appears from

Re: [Zope] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread Tino Wildenhain
Hi Kamon, kamon ayeva wrote: Hi, I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass

RE: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity

2000-09-01 Thread Philipp Auersperg
Is DC planning to do something in that matter? also the docstring should perhaps not be just one property, but structured (author,parameters,prerequisites...) as it is in javadoc (ok, we don't like java, but thats a point where we can learn from java) The next point: if there is a

RE: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity

2000-09-01 Thread Chris McDonough
Is DC planning to do something in that matter? It's not a priority right now. You may want to propose something on dev.zope.org if you think you have an idea of how it should work. also the docstring should perhaps not be just one property, but structured

[Zope] Newbie: ZClass questions

2000-09-01 Thread Nick Trout
Hi, I'm new to Zope. I'm just flailing around in all the docs and examples at the moment. I'm setting up a small intranet for our office. I've been reading about ZClasses (havent done any SQL). Are these a very efficient way of storing data? Are these more/less efficient than setting up a

Re: [Zope] The Challenge: Zealots vs. Skeptics

2000-09-01 Thread Marty McKeever at Work
At 11:22 AM 9/1/2000 +0200, you wrote: curiosity... what web development list is this? As i mentioned before, i do not want to mingle the threads, or incite a riot on either list. All i will say is that it is a very high profile list for professional web artists. Mainly Silicon Alley types If

[Zope] http://zdnetindia.com/

2000-09-01 Thread Chris Withers
IIRC, someone working on this tells em it takes several hundred thousand hits a day on a Dual PIII. he could be lying though ;-) cheers, Chris PS: Whoever told me about this, please comment ;-) ___ Zope maillist - [EMAIL PROTECTED]

RE: [Zope] manage

2000-09-01 Thread neeloy_saha
Hi dieter, Thx for ur reply. The child window pop ups when u do http://localhost:8080/manage . One enters the username and password there. That is validated against the acl_user folders member names or if it is a superuser who installed zope it validates it against the access file. I want

[Zope] Render the number of occurrence in a batch

2000-09-01 Thread Francois-Regis CHALAOUX
Hi, How to render the total number of result coming from the search in a ZCatalog even if the batch will be render in several sequences ? Howto render : "Your search contain results" FR.

[Zope] Re: HappySession

2000-09-01 Thread Hung Jung Lu
From: Diego Rodrigo Neufert [EMAIL PROTECTED] ... too... well, in the standard html header I call call a method that do a call in all my sessions Okie, now I see why you get the Transaction error problem. After an exception is raised, Zope aborts the http request transaction, and any

Re: [Zope] Render the number of occurrence in a batch

2000-09-01 Thread Kapil Thangavelu
Francois-Regis CHALAOUX wrote: Hi, How to render the total number of result coming from the search in a ZCatalog even if the batch will be render in several sequences ? Howto render : "Your search contain results" FR. dtml-var "_.len(YOURSEQUENCEGENERATOR)" dtml-in

Re: [Zope] Success in installing ZPoPyDA (after 3 months...)

2000-09-01 Thread Hung Jung Lu
From: "Bak @ kedai" [EMAIL PROTECTED] where did you find linux.h that's needed by PoPy? thtt stump me from continuing. Download postgresql-7.0.2 source (not the RedHat's RPM), unzip and untar it, and the file is located at: postgresql-7.0.2/src/include/port/linux.h What I did was: (1)

[Zope] What's up with zope.org?

2000-09-01 Thread ethan mindlace fremen
"Bak @ kedai" wrote: what's happenng to zope.org? i got this message when i tried accessing it Ok, this is a bit late, but "Running into ZEO/ mounted file storage bugs" is the answer. Aparently, our in-house MountedClientStorage (and the MountedDatabase) doesn't play nice with ZEO. So

Re: [Zope] Re: ZOPE Python edit debug cycle

2000-09-01 Thread Toby Dickenson
On Tue, 29 Aug 2000 16:52:02 -0700, "Loren Stafford" [EMAIL PROTECTED] wrote: There's also the Refresh product (http://www.zope.org/Members/hathawsh/Refresh) which helps reload some (most) products without restarting Zope. Is this still needed? Are you still suffering from Zope taking a long

RE: [Zope] manage

2000-09-01 Thread Holger Lehmann
Am Fre, 01 Sep 2000 schrieben Sie: Hi dieter, Thx for ur reply. The child window pop ups when u do http://localhost:8080/manage . One enters the username and password there. That is validated against the acl_user folders member names or if it is a superuser who installed zope it

Re: [Zope] a redirect of an url in Python

2000-09-01 Thread Kapil Thangavelu
[EMAIL PROTECTED] wrote: Part 1.1Type: Plain Text (text/plain) in python you have to raise a redirect, search the lists for exact syntax something along the lines of raise Redirect "url" Kapil ___ Zope maillist - [EMAIL

Re: [Zope] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Yeah I know, I apologise I was just panicking with a deadline approaching. Sorry. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Friday, September 01, 2000 2:26 AM Subject: Re: [Zope] _setObject error - urgent! Andy McKay wrote:

Re: [Zope] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Traced the problem to a faulty catalog attribute, which automatically happens. Damn, its been a while I still cant see why I cant cut and paste. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 01, 2000 9:11 AM Subject: Re: [Zope]

[Zope] Catalog AND Zieve

2000-09-01 Thread Menard . Jean-Francois
I'm trying to use the Zieve product with my Catalog to sort the results on a variable key. Since the Catalog do not return the actual objects, how can I use Zieve with it? Maybe an external method returning the object list? If so, how shold I do that? Jean-François Ménard Intranet

[Zope] Re: ZPatterns Stability

2000-09-01 Thread Tim Cook
Chris Withers wrote: Tim Cook wrote: If you're brave you could try ZPatterns and then realyl not care at all ;-) Don't you mean; 'If you're insane...' ? No, I really don't! ZPatterns is very cool, but still not documented. It's alpha but seems stable enough for production

[Zope] Getting Zope running on IIS or Apache using PCGI....

2000-09-01 Thread Chris Withers
Tina Sawyer wrote: Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 I could not get zope to run as a pcgi. So.. I set up a Linux server using Redhat version 6.2, running apache and I still cannot get zope to run as a pcgi. Any thoughts on this? Might be best to ask on the

[Zope] Silly string question

2000-09-01 Thread Satheesh Babu
Aaarghhh!!! I want to print the following line exactly as it appears on a web page (no HTML coding). !--#include file="header.inc" -- How do I do that in DTML without Zope cribbing about tags are not good? I got it to print it without using quotes like this dtml-var expr="'!--#include

RE: [Zope] Newbie SQL problem: Query Error: Cannot render query template

2000-09-01 Thread Farrell, Troy
When I try to test my connection (http://jester/profiles/Jet_database_connection/manage_test). SQL is as follows: INSERT INTO test VALUES ( 'line one', 123456) I get an error with the following traceback: Error Type: Query Error Error Value: Invalid Operation Traceback (innermost last):

Re: [Zope] Copying a dtml method when creating a ZClass instance

2000-09-01 Thread kamon ayeva
Thanks Tino and Chris for your feedback. From: Tino Wildenhain [EMAIL PROTECTED] To: kamon ayeva [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Zope] Copying a dtml method when creating a ZClass instance Date: Fri, 01 Sep 2000 14:18:25 +0200 Hi Kamon, kamon ayeva wrote: Hi, I

Re: [Zope] HappySession

2000-09-01 Thread Dieter Maurer
Diego Rodrigo Neufert writes: I'm making a site with frames with session management. I'm using HappySession to do it... I need to call SESSION['something'] in various frames at the same time, but when a SESSION expire I got a Transaction Error that blow up my Zserver... Anyone know

[Zope] Re: ZCatalog and OR searching

2000-09-01 Thread Dieter Maurer
Chris Withers writes: Dieter Maurer wrote: A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine them with an "Or". Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a

RE: [Zope] manage

2000-09-01 Thread Dieter Maurer
neeloy_saha writes: authentication 1.what is the python file which pops up that child window for entering username and password ? In plain vanilla Zope (i.e. without GUF, LoginManager or some other login catcher) Zope simply raises an Unauthorized exception. This is turned into an

Re: [Zope] Site Access 2.x problem

2000-09-01 Thread Dieter Maurer
Hi Joshua, Joshua Brauer writes: I have Site Access running on the latest Zope (2.2) but I cannot seem to get "Site Root" to show up in my list of available products. Those sites that already have site roots seem to work fine, but I cannot add new site roots. Anybody else having this

Re: [Zope] a redirect of an url in Python

2000-09-01 Thread Bill Welch
Both this one line python method: raise 'Redirect', 'http://www.zope.org' and this DTML method dtml-raise type="Redirect" http://www.zope.org /dtml-raise work. P. S. the double quotes around Redirect in the DTML method are significant. With single quotes, it shows up as an error named

Re: [Zope] HappySession

2000-09-01 Thread Pavlos Christoforou
On Fri, 1 Sep 2000, Dieter Maurer wrote: I can tell you, that FSSession has the same problem, at least the version before the current one (announced some days ago). FSSession has no longer such problem. However you might still loose data if you access the same SessionUID from many frames. I

Re: [Zope] ZCatalog in 2.2.x

2000-09-01 Thread Dieter Maurer
Terry Kerr writes: only field searches yield non empty query results The product I am working on is Etailer. I downloaded Etailer and looked into the problem. Indeed, I could reproduce your observation. I analysed the problem and now do understand what went wrong here in my

Re: [Zope] Silly string question

2000-09-01 Thread Evan Simpson
From: Satheesh Babu [EMAIL PROTECTED] I want to print the following line exactly as it appears on a web page (no HTML coding). !--#include file="header.inc" -- These aren't general solutions, but off the top of my head (tested): dtml-var expr=" '' "!--#include file="header.inc" --

[Zope] Regaining lost privileges

2000-09-01 Thread Andrew Kenneth Milton
Is there anyway to regain 'root' privs from inside a zope product? Using the -u flag to start causes the privs to be permanently gone because z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at least not on my system). Other than running zope as root permanently (which

[Zope] problems installing PoPy-1.3.4 (fwd)

2000-09-01 Thread Sebastien Billard
I'm on a suse 6.4 system, with postgresql installed. I've got the latest zope installed from tarball.. and I get this problem trying to install PoPy ./autogen.sh --with-postgres-libraries=/usr/lib/pgsql/lib --with-postgres-includes=/usr/lib/pgsql/include loading cache ./config.cache checking

Re: [Zope] What's up with zope.org?

2000-09-01 Thread Bak @ kedai
-Original Message- From: ethan mindlace fremen [EMAIL PROTECTED] To: Bak @ kedai [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Friday, September 01, 2000 11:49 PM Subject: [Zope] What's up with zope.org? "Bak @ kedai" wrote: what's happenng to zope.org? i got this

Re: [Zope] Regaining lost privileges

2000-09-01 Thread Nigel Head
Hi Andrew! On Fri, 01 Sep 2000, you wrote ... I saw people asking about building 'admin' systems using Zope, this isn't going to be trivially possible without super user privs. That people was me. Having looked into things a little further (but not actually started the admin tool yet due to