[Zope] DTML problem

2000-07-26 Thread Wolfgang Klinger
Hi! I use the following expression in a header file which is included in every document/method to get the content of the actual folder and show the title as menue item. dtml-in expr="PARENTS[0].objectValues(['DTML Document'])" sort=title tr tda

Re: [Zope] DTML problem

2000-07-26 Thread George Donnelly
this is probably a hack but you could use the id of the document you want to exclude with an unless statement. this is what i did when i wanted to exclude the index_html doc dtml-in "PARENTS[0].objectValues(['DTML Document'])" reverse sort=bobobase_modification_time dtml-unless

[Zope] Problem with ZCatalog output and SiteAccess (with workaround)

2000-07-26 Thread Marcin Kasperski
In short: ZCatalog getpath method returns sth. like '/public/the/path/to/found/object' It causes the problem when one uses SiteAccess to modify URL paths (let's say I use Apache mod_proxy to redirect http://my.host/zope to http://my.host:8080/public and set SiteAccess in public zope dir

[Zope] How can I proxy from apache to zope and keep source host info?

2000-07-26 Thread Marcin Kasperski
I configure 'apache as frontent do zope'. Most things work as expected but I found serious limitation: if I pass request from apache to zope via mod_proxy (or mod_rewrite [P]), zope sees all requests as coming from localhost (I specified http://localhost:8080/ as zope address, in case I specify

Re: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-26 Thread Jerome Alet
my vote is: +1 Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] DTML problem

2000-07-26 Thread Bill Anderson
Wolfgang Klinger wrote: Hi! I use the following expression in a header file which is included in every document/method to get the content of the actual folder and show the title as menue item. dtml-in expr="PARENTS[0].objectValues(['DTML Document'])"

[Zope] OK, I think I have a workaround to the pcgi problem....

2000-07-26 Thread Bill Anderson
I now have it working again. Steps I took -- o Use the pcgi directory from 2.1.6 o Put "PCGI_CLOSE_FDS=0" in Zope.pcgi o rerun w_pcgi.py This seems to be working, though I haven't rebooted the machine The real solution is that DC should fix the new pcgi I would like

[Zope] Re: Probably Zope Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-26 Thread Jerome Alet
On Wed, 26 Jul 2000, Dieter Maurer wrote: I analysed this strange behavior in Zope 2.1.6 and have a partial explanation. Hi, thank you very much for your time, your explanations and your workaround. I'll test this ASAP and tell you the result. thanks again. bye, Jerome ALET - [EMAIL

Re: [Zope] PCGI still not functional

2000-07-26 Thread Aleksander Salwa
On Mon, 24 Jul 2000, Bill Anderson wrote: In the 2.2betas, and in 2.1.6, I could use ZServer and PCGI, but now, I get one or the other. Do you mean that you could use (with earlier Zopes) _BOTH_ ZServer and PCGI at the same time ? Why ? And now, you can get up and running one of them; or you

Re: [Zope] Limiting folder space

2000-07-26 Thread Oleg Broytmann
Hello! ZODB (like any other filesystem-like storage) should has "qouta" support. But while it is not implemented I'd like to hear your recipe. On Tue, 25 Jul 2000, Bill Anderson wrote: Brendon Grunewald wrote: I want to use Zope to offer registered visitors to my site a little free

Re: [Zope] timezone change and permission problem

2000-07-26 Thread Bart Holthuijsen
From: Dieter Maurer [EMAIL PROTECTED] Bart Holthuijsen writes: When I create / edit a document it says: Content changed, then date / time and GMT+2. Why are you unhappy with the timezone? Is it not correct? Almost surely, Zope will ask the operating system for the timezone. You may try

Re: [Zope] PCGI still not functional

2000-07-26 Thread Bill Anderson
Aleksander Salwa wrote: On Mon, 24 Jul 2000, Bill Anderson wrote: In the 2.2betas, and in 2.1.6, I could use ZServer and PCGI, but now, I get one or the other. Do you mean that you could use (with earlier Zopes) _BOTH_ ZServer and PCGI at the same time ? Why ? Several reasons. One,

Re: [Zope] Limiting folder space

2000-07-26 Thread Bill Anderson
Oleg Broytmann wrote: Hello! ZODB (like any other filesystem-like storage) should has "qouta" support. But while it is not implemented I'd like to hear your recipe. I don't beleive ZODB is a 'filesystem-like' storage, as it is an Object Database. The problem (well, one of them anyway

Re: [Zope] How can I proxy from apache to zope and keep source host info?

2000-07-26 Thread Phil Harris
There is a patch to Apache that you could apply that passes the client IP along in a different HTTP header, if that helps. It's at http://modules.apache.org/search?id=124. On the other hand you could use Squid as the Proxy as it has a config directive for just this occasion. HTH Phil [EMAIL

Re: [Zope] Limiting folder space

2000-07-26 Thread Oleg Broytmann
Thanks! On Wed, 26 Jul 2000, Bill Anderson wrote: Now, what I am doing, is to use the Mountable Database (?) product to mount a given client's site on. I then calculate storage based upon the size of that particular Data.fs, and then: o let the fs handle the quota for the user --or--

Re: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-26 Thread John Chandler
+1 == agree +/-0 == no strong opinion -1 == disagree +1 (If anyone *does* have an objection, they'd better get in quick before it's too late!) ;-) John -- John Chandler / Software Developer / New Information Paradigms Ltd [ Linux in the office, AmigaOS in the home,

Re: [Zope] Lines data type possible in boolean OR's?

2000-07-26 Thread Martijn Pieters
On Mon, Jul 24, 2000 at 11:56:01PM +0200, Alexander Limi wrote: I have a small problem. When I use the lines data type in OR statements, I get an Error Type: TypeError Error Value: bad operand type(s) for | I've used them earlier on integers, like this: dtml-if "cabinDouble |

RE: [Zope] Python/Tkinter Zope

2000-07-26 Thread Gijs Reulen
Would it make any sense ? Such an application could only run on the server. Not exactly the idea of a web-enabled application ?! To use it on a client at least Python and TKinter should be installed on the client. This would only be feasable in a corporate environment, but then, why still use

Re: [Zope] Problem with ZCatalog output and SiteAccess (with workaround)

2000-07-26 Thread Chris McDonough
Marcin, Can you post this problem in to the Collector? http://classic.zope.org:8080/Collector. I think there's a simple fix to make ZCatalog play nicely with Site Access, and if it's in the collector, we won't forget about it. Marcin Kasperski wrote: In short: ZCatalog getpath method

[Zope] Re: display of SQL request answer

2000-07-26 Thread Chris McDonough
Vincent, This may be helpful: http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.1.1.4.html Also, this question is more suited for the main Zope mail list ([EMAIL PROTECTED])... I've moved it there as a result. Vincent DELHOMMOIS wrote: Hi, I am using the Z ODBC DA connexion to

[Zope] Re: Problem

2000-07-26 Thread Chris McDonough
Anvita, JavaScript is inlined in a DTML method just like it would be inside a file on a filesystem. Because JavaScript runs on the client, you just need to make sure that you return it somehow in the response to the client. There is no "magic" to doing this... as a simple example: - create a

[Zope] Updating product property sheet values

2000-07-26 Thread Paul Smith
Hi I have just been asked to stop banging my head against the wall, as it is annoying other people in the office, so I turn to you all in the hope you can help! I am trying to create a moderated news bulletin board, and have based the back-end loosely on the Job Board engine, as "Created by

Re: [Zope] Updating product property sheet values

2000-07-26 Thread Chris Withers
On Wed, 26 Jul 2000, Paul Smith wrote: I am trying to create a moderated news bulletin board, and have based the back-end loosely on the Job Board engine, as "Created by mukhsein" and available as a How to on Zope.org. Why not use Squishdot? I know you've looked at it so I'd be interested

Re: [Zope] zzLocale 0-0-3a released on Zope Japan

2000-07-26 Thread Johan Carlsson
"Johan Carlsson" [EMAIL PROTECTED] wrote: Are there any plans on expanding the framework to include python embedded strings. Yes there is, and that's what the development of zzLocale is now centered on. We are still in an early design stage, so I cannot give you much information

re: [Zope] Zope performance ratios

2000-07-26 Thread Jarkko Veijalainen
I'm doing a performance comparance between Zserver and Iplanet servers packages in next couple of weeks, maybe with Apache and Netscape servers too. We have building a prototype with four different sripting languages, including Zope. Goal is to find out wich combination is most effective. Maybe i

[Zope] problem with manage_permission

2000-07-26 Thread Jerome Alet
Hi, I'm currently trying to create a python product. I've got a class named MyClass, and in the __init__ method I've got the following code: self.manage_addFolder(id="data", title="MyClass instance's datas") self._addRole('admin') self.manage_permission(permission_to_manage =

Re: [Zope] Lines data type possible in boolean OR's?

2000-07-26 Thread Alexander Limi
- Original Message - From: "Martijn Pieters" [EMAIL PROTECTED] On Mon, Jul 24, 2000 at 11:56:01PM +0200, Alexander Limi wrote: I have a small problem. When I use the lines data type in OR statements, I get an Error Type: TypeError Error Value: bad operand type(s) for |

[Zope] Slow ODBC source

2000-07-26 Thread Jelle Gerbrandy
I'm retrieving data from an Access database, on windows 98, via an ODBC connection, and my problem is that it is very very slow: retrieving 1 record is fast enough, but retrieving 20 records takes 20 seconds, occupies my CPU completely and has my harddisk running hard. I've done a little bit of

Re: [Zope] Slow ODBC source

2000-07-26 Thread Oleg Broytmann
On Wed, 26 Jul 2000, Jelle Gerbrandy wrote: I'm retrieving data from an Access database, on windows 98, via an ODBC connection, and my problem is that it is very very slow: retrieving 1 record is fast enough, but retrieving 20 records takes 20 seconds, occupies my CPU completely and has my

RE: [Zope] Slow ODBC source

2000-07-26 Thread jacques
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Oleg Broytmann Sent: quarta-feira, 26 de julho de 2000 10:12 To: Zope Mailing List Subject: Re: [Zope] Slow ODBC source [snip] Any suggestions? Using Win98 for database and WWW? No.

[Zope] (no subject)

2000-07-26 Thread Uros Midic
I'm trying to rewrite my ZClass as a python product. In the ZClass I uploaded an applet (e.g. called MyApplet.class) in the methods management screen, so that another method in the same ZClass could reference it simply with APPLET CODE="MyApplet.class" (both the method and the applet always had

[Zope] Zope Sybase DA Zope 2.2

2000-07-26 Thread Stephen Nosal
Folks - Anyone have any info or pointers running the Zope Sybase DA Zope 2.2 yet? I'm looking to get it up and running on suse Linux 6.4 and Zope 2.2 connecting to a remote Sybase DB. Love to hear any news on this. Thanks. - Steve

RE: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-26 Thread Brian Lloyd
| -1 == disagree You will only ever see votes from people wanting change... apathy rules otherwise. Then when it changes you'll see a whole bunch of bitching about the change, and how there's 1,000 people on the list and only 20 people voted... etc. d8) Mailling list votes are

RE: [Zope] Zope Sybase DA Zope 2.2

2000-07-26 Thread Chris McDonough
What's the problem? Does it not work? -Original Message- From: Stephen Nosal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 26, 2000 10:00 AM To: [EMAIL PROTECTED] Subject: [Zope] Zope Sybase DA Zope 2.2 Folks - Anyone have any info or pointers running the Zope Sybase DA

[Zope] WorldPilot 1.1.0 - Possible bug and solution ?

2000-07-26 Thread Paolo Bizzarri
Hi Zopers, apparently, WorldPilot has an error in the getIMAPFolders function, that do not allow the creation of folders. The line is the following: cf.AddChild(IMAPFolder(Folder,TmpFolderFullName[:-1] , padding+Folder)) I have changed it in:

[Zope] problem with dtml-in and Zope 2.2

2000-07-26 Thread Steve Jibson
(I've seen other similar posts on the mailing list, but I haven't seen the answer, so I'll re-phrase the question and hope someone can help.) I've got an external method that returns a list of record objects: def getRecords(self): class record: pass r = record()

[Zope] Returning a file as a result of object's method?!?

2000-07-26 Thread Uros Midic
* I'm reposting this, because the first time I included no subject by mistake, sorry * I'm trying to rewrite my ZClass as a python product. In the ZClass I uploaded an applet (e.g. called MyApplet.class) in the methods management screen, so that another method in the same ZClass could reference

RE: [Zope] Zope Sybase DA Zope 2.2

2000-07-26 Thread Stephen Nosal
Haven't gotten that far yet - I'm looking for 'gotchas' before I start. I'm already having a tough time with the open client 11.9.2 - apparently it is not available for download anymore, but still free for development. I'm waiting for Sybase to get back to me on this one. - Steve On Wed, 26

RE: [Zope] problem with dtml-in and Zope 2.2

2000-07-26 Thread Chris McDonough
First of all, make sure you don't try to define classes that should be persistent in an external method... it wont work the way you expect it to. Second (untested): def getRecords(self): """ """ class record: __allow_access_to_unprotected_subobjects__ = 1 # this may be

Re: [Zope] OK, I think I have a workaround to the pcgi problem....

2000-07-26 Thread Nick Garcia
Bill Anderson wrote: o Use the pcgi directory from 2.1.6 o Put "PCGI_CLOSE_FDS=0" in Zope.pcgi o rerun w_pcgi.py This seems to be working, though I haven't rebooted the machine Hmmm... I was just trying to get 2.2.0 working with PCGI yesterday and couldn't get it working either.

[Zope] simple dtml-if question

2000-07-26 Thread joel grimes
How do I do this? I have a table with a field called SerialNumber. I want to test it for null and return a non-breaking space if it's null. Here's what I tried: dtml-if "SerialNumber = null"nbsp; dtml-elsedtml-var SerialNumber /dtml-if Doesn't work (be nice-I'm new). I've tried various

Re: [Zope] OK, I think I have a workaround to the pcgi problem....

2000-07-26 Thread Nick Garcia
Nick Garcia wrote: Hmmm... I was just trying to get 2.2.0 working with PCGI yesterday and couldn't get it working either. These instructions got it up and running, but now I'm seeing something a bit strange and I was wondering if you were seeing the same thing. If I go to a page that

[Zope] zwiki mailing list ? RFC

2000-07-26 Thread Simon Michael
I'm getting a steady trickle of private mail, interesting comments patches, all of which would benefit the community but currently end up mouldering in my mail archives. I'm thinking of activating the zwiki mailing list at sourceforge, as a repository for the above and perhaps a testbed for

Re: [Zope] new wiki functionality/zope.org issues

2000-07-26 Thread Otto Hammersmith
Simon Michael wrote: [snip] 4. could we auto-login with cookies like eg slashdot ? I'm never logged in when I need to edit a wiki and doing so is quite disruptive. And, or, make the login page auto-redirect back to where I came from. I'd like that, as well. Just make it a persistant

[Zope] Renderable ZClass and Zope 2.2

2000-07-26 Thread Jeff Sasmor
Hi- I am trying to 'update' my EventFolder product to Zope 2.2 but a really wierd thing is going on: When I try to create an instance (an EventFolder, which is subclassed from Renderable and ObjectManager) I get an error shown in the traceback below. There EventFolder_add method in the ZClass

[Zope] Question

2000-07-26 Thread Lionel Tafel
Hy everybody, i have a question?I need to know if i can change the setting when i create a folder in thezope. Because i create a folder and automaticly that create a fileindex.php3 with some data. I want to know if i can change the data orsetting the data that this index.php3 have into.

Re: [Zope] simple dtml-if question

2000-07-26 Thread Nick Garcia
joel grimes wrote: How do I do this? I have a table with a field called SerialNumber. I want to test it for null and return a non-breaking space if it's null. Here's what I tried: dtml-if "SerialNumber = null"nbsp; dtml-elsedtml-var SerialNumber /dtml-if dtml-var SerialNumber

[Zope] SV: [Zope] simple dtml-if question

2000-07-26 Thread peter be
Correct me if I'm wrong. If the SerialNumber is taken from a ZSQL method, shouldn't you been able to show it without testing its content. Such as: dtml-var SerialNumbernbsp; Those rows that have something other than 'null' would be shown together with a nbsp;. Curious. - Original

[Zope] Re: simple dtml-if question

2000-07-26 Thread Capesius, Alan
Title: Re: simple dtml-if question Joel that's really an HTML question. Use BR in every table field that contains only dtml tags. It isn't required if there is any text in the table field. Alan Capesius, MCSE Technical Support Engineer Sysmex Corporation of America [EMAIL PROTECTED]

[Zope] RE: Slow ODBC source

2000-07-26 Thread Capesius, Alan
Title: RE: Slow ODBC source I'm using an Access DB on NT Server without any trouble. It is very fast. How large is the data you are retrieving? (bytes per record I mean) My apps are typically running on a MDB with 10,000 records I've noticed some issues that relate to Access queries. Here

Re: [Zope] simple dtml-if question

2000-07-26 Thread Tim Cook
Marcel Preda wrote: just: dtml-if SerialNumbernbsp; dtml-elsedtml-var SerialNumber /dtml-if Actually: dtml-if SerialNumber dtml-var SerialNumber dtml-else nbsp /dtml-if The logic got turned upside dowm s. -- Tim Cook -- FreePM Project Coordinator - http://www.freepm.org OS

RE: [Zope] Question

2000-07-26 Thread Chris McDonough
Lionel, A couple of ground rules first: please dont post HTML to the list or post messages marked "importance: high" to the list. Errr.. after reading your question, I've finally come to grips with the fact that I have no idea what you're asking. Sorry! Please explain more. -Original

[Zope] simple dtml-if question

2000-07-26 Thread joel grimes
If the SerialNumber is taken from a ZSQL method, shouldn't you been able to show it without testing its content. Such as: dtml-var SerialNumbernbsp; Those rows that have something other than 'null' would be shown together with a nbsp;. Well, THAT never occurred to me. Somethimes the easiest

[Zope] while

2000-07-26 Thread Leichtman, David J
Is there an easy way to simulate the functionality of a while loop in DTML? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] OK, I think I have a workaround to the pcgi problem....

2000-07-26 Thread Bill Anderson
Nick Garcia wrote: Nick Garcia wrote: Hmmm... I was just trying to get 2.2.0 working with PCGI yesterday and couldn't get it working either. These instructions got it up and running, but now I'm seeing something a bit strange and I was wondering if you were seeing the same thing.

Re: [Zope] Re: Folderish objects and that BASE tag...

2000-07-26 Thread R. David Murray
On Mon, 24 Jul 2000, Chris Withers wrote: I belive that it is returning: http://my.zope/site/file.html/index_html I wonder what index_html that is then? :S From lib/python/OFS/Image.py (which also implements generic file object): def index_html(self, REQUEST, RESPONSE):

Re: [Zope] Python/Tkinter Zope

2000-07-26 Thread Cary O'Brien
charset="US-ASCII" Would it make any sense ? Such an application could only run on the server. Not exactly the idea of a web-enabled application ?! To use it on a client at least Python and TKinter should be installed on the client. This would only be feasable in a corporate environment,

Re: [Zope] problem with manage_permission

2000-07-26 Thread Dieter Maurer
Jerome Alet writes: self.manage_permission(permission_to_manage = "Access contents information" , roles = [ 'Manager', 'admin' ]) ..., but the manage_permission call gives me the following traceback: Error Type: AttributeError Error Value: aq_acquire Traceback (innermost

[Zope] computed attribute access(was: Re: [Zope] namespace and PARENTS doubt) (was: Re: [Zope] namespace and PARENTS doubt)

2000-07-26 Thread Dieter Maurer
Fabio Akita writes: dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']" For "computed attribute access", use "_.getattr". In your case probably (I am not sure, I understand you expression correctly): dtml-with "_.getattr(PARENTS[1],parameter).folder" Dieter

Re: [Zope] while

2000-07-26 Thread Daniel Rusch
Try: dtml-in "_.range(1,10)" dtml-var sequence-item /dtml-in "Leichtman, David J" wrote: Is there an easy way to simulate the functionality of a while loop in DTML? ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Who is uid 506?

2000-07-26 Thread Stephen Nosal
Folks - I've installed Zope 2.2 (binary rpm) on my Linux box (suse 6.4) and I notice that many files are owned by uid 506. I don't have a uid 506 on my box. Should I create a zope user with this id? Should I ignore it? - Steve

RE: [Zope] Who is uid 506?

2000-07-26 Thread Chris McDonough
The reason the files are owned by 506 is an artifact of the way the RPM was packaged. Either untar and install the source as a "normal" user or maybe contact the maintainer of the RPM and see if this installation behavior is intentional (I imagine it is). -Original Message- From:

[Zope] Zope jobs in MA

2000-07-26 Thread Dan L. Pierson
If you're interested in working with Zope in Massachussetts, we're hiring. Look on the Zope jobs board for more info: http://www.zope.org/Members/plewis/job_board/index_html Dan Pierson Chief Technical Officer Control.com, Inc. ___ Zope maillist -

Re: [Zope] WorldPilot 1.1.0 - Possible bug and solution ?

2000-07-26 Thread Bryan Stillwell
This seems to have worked fine for me. Thanks Paolo! Bryan On Wed, 26 Jul 2000, Paolo Bizzarri wrote: Hi Zopers, apparently, WorldPilot has an error in the getIMAPFolders function, that do not allow the creation of folders. The line is the following:

Re: [Zope] ZOracleDA

2000-07-26 Thread Satheesh Babu
Hi, If you are running Zope on 1. Linux: You need to install Oracle client libraries to compile ZOracleDA. As far as I know, Oracle does not give any easy way to install only the clients. So, if you've enough disk space, install Oracle with the minimum DB options, and

[Zope] Compiling C souce code

2000-07-26 Thread * Lucky
How can I compile the C source code of SeachIndex.Splitters in order to generate the Splitters.pyd file ? __ BoƮte aux lettres - Caramail - http://www.caramail.com

Re: [Zope] Compiling C souce code

2000-07-26 Thread Phil Harris
Use a C compiler - Original Message - From: * Lucky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 2:11 AM Subject: [Zope] Compiling C souce code How can I compile the C source code of SeachIndex.Splitters in order to generate the Splitters.pyd file ?

Re: [Zope] while

2000-07-26 Thread Patrick Lewis
This is real ugly, but you asked (untested, but you get the idea): dtml-try dtml-in "_.range(1000)" dtml-if whileCondition !-- Your logic test -- !-- Do stuff in while loop -- dtml-else dtml-raise type="conditionFalse"errormsg/dtml-raise /dtml-if /dtml-in dtml-except

[Zope] Silly send mail problem

2000-07-26 Thread wai
Hi all, I had a sendmail problem, whenever I send out a mail from zope, it always contain an empty "To" ,"From" and "Subject", but I was able to get the body of the mail, anyone got this problem before ?? I'm using Zope 2.1.6 on NT and the mail server is from Lotus, and the form processor

[Zope] Re: Need for aq_base in DTML (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Satheesh Babu
I made a DTML method which works, but doesn't do it recursively. I'll try external methods. Thanks.. dtml-if fname dtml-try "_.getitem(_['fname'],1)" dtml-with "_.getitem(_['fname'],1)" dtml-var title dtml-unless "meta_type=='Folder'" Item exists, but not a folder

[Zope] Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)question - existance check of an object)(was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Steve Alexander
Dieter Maurer wrote: * Access to "/": "PARENTS[-1]" * Existence check: "_.hasattr(object,what)" NOTE, that this is the sloppy part. - "_.hasattr" will return true, if "object" has attribute "what" (that is what we want) *OR* when it has acquired such an

[Zope-dev] zpatterns-0.4.0a5: problem with unregistering transactionals

2000-07-26 Thread Jephte CLAIN
hello, I have a case where Transactional._unregister is called without Transactional._register being called, raising an exception in Transaction._unregister and then in ZODB.Transaction.Transaction.__del__, causing Zope to dump core when it is run as a daemon (because python notifies of the

Re: [Zope-dev] ZODB....

2000-07-26 Thread Toby Dickenson
On Tue, 25 Jul 2000 18:07:06 +0200, [EMAIL PROTECTED] wrote: I want to develop an external program that can store and retrieve an Object (such as a Person) in the ZoDB That sounds a bit cruel. I tried the example that I found in the How to's but it doesn't works In fact, I have

Re: [Zope-dev] Incorrect Padding?

2000-07-26 Thread Martijn Pieters
On Mon, Jul 24, 2000 at 09:36:53PM +0100, Steve Alexander wrote: Martijn Pieters wrote: Would it be a good idea to add the header? I don't quite follow. Add the non-compliant Basic Auth header to the error message, to aid in debugging the client. And let's make that a less generic

[Zope-dev] display of SQL request answer

2000-07-26 Thread Vincent DELHOMMOIS
Hi, I am using the Z ODBC DA connexion to access an "Access" database via ODBC. I created a connexion - No problem An SQL method - No problem How can I customise the display of the answer of the SQL request ? Thanks a lot. Vincent ___ Zope-Dev

Re: [Zope-dev] ZODB....

2000-07-26 Thread Chris McDonough
It sounds like you are trying to call a module instead of a function... for example, you're doing something like: import ZODB.FileStorage f = ZODB.FileStorage('file') instead of: import ZODB.FileStorage.FileStorage f = ZODB.FileStorage.FileStorage('file') Toby Dickenson wrote: On Tue, 25

Re: [Zope-dev] ZODB....

2000-07-26 Thread Carlos Neves
On Tue, 25 Jul 2000, [EMAIL PROTECTED] wrote: Hi, I want to develop an external program that can store and retrieve an Object (such as a Person) in the ZoDB I tried the example that I found in the How to's but it doesn't works In fact, I have the following message :

[Zope-dev] ZPatterns

2000-07-26 Thread jdiebold
Hi, I wonder where I can find lots of information about the Zpatterns. It seems wonderfull but a little hard to understand. I want to know exactly how it works and what it does. thanks in advance. ___ Zope-Dev maillist -

Re: [Zope-dev] ZPatterns

2000-07-26 Thread Steve Alexander
[EMAIL PROTECTED] wrote: Hi, I wonder where I can find lots of information about the Zpatterns. It seems wonderfull but a little hard to understand. I want to know exactly how it works and what it does. Use the http://www.zope.org search box to look for "ZPatterns".

[Zope-dev] RE: [Zope] Re: Probably ZopeFind Bug

2000-07-26 Thread Brian Lloyd
By now, I know why we get this strange "objectValues__roles__" result inside ZopeFind. In "FindSupport:145", "ZopeFind" strips away the acquisition context of an object. Thanks Dieter, I've checked in a fix for this. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909

Re: [Zope-dev] ZPatterns

2000-07-26 Thread Oleg Broytmann
On Wed, 26 Jul 2000, Steve Alexander wrote: http://www.zope.org/Members/pje/ZPatterns Very limited resource in terms of documentation. :( Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED]

[Zope-dev] ZMySQLDA - errors during compilation...

2000-07-26 Thread Jon Franz
Hello, I'm trying to install ZMySQLDA onto a Linux machine with Zope 2.2.0, python 1.5.2, and a newly installed (from source) copy of MySQL 3.22.23 (latest stable). I had to modify the include paths in Setup.in so it could find the include files, but now I get the following errors

[Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTML question - existance check of an object) (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Dieter Maurer
Satheesh Babu writes: I have a URL, say, /sub1/sub2. How do I check in DTML whether 1. folder sub1 exists or not 2. If not, create it. 3. folder sub2 exists under sub1 4. If not, create it. It is easy, if you are a bit sloppy. * Access to "/": "PARENTS[-1]" * Existence

[Zope-dev] Re: Need for aq_base in DTML (was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Satheesh Babu
I made a DTML method which works, but doesn't do it recursively. I'll try external methods. Thanks.. dtml-if fname dtml-try "_.getitem(_['fname'],1)" dtml-with "_.getitem(_['fname'],1)" dtml-var title dtml-unless "meta_type=='Folder'" Item exists, but not a folder

Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTML question - existance check of an object)(was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Steve Alexander
Dieter Maurer wrote: * Access to "/": "PARENTS[-1]" * Existence check: "_.hasattr(object,what)" NOTE, that this is the sloppy part. - "_.hasattr" will return true, if "object" has attribute "what" (that is what we want) *OR* when it has acquired such an