[Zope-dev] Question about Labels

2000-09-22 Thread Andre Schubert
Hi, I have a Product with a Label called Foo. Now what can i do, that when anyone clicked on the tab Foo first the function bar() is called and after that the HTML-File is displayed. as manage_options =({'label':'Foo', 'action':'manage_propertiesForm'},) def bar(self): do anything before

[Zope-dev] FTP behaviours

2000-09-22 Thread Robin Becker
Has anyone done any work in the area of ftp controlled behaviours? I want to do something like check if an object is of a specific sort before overwriting/creating and then take some additional actions. -- Robin Becker ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Previous versions of persistent objects

2000-09-22 Thread Robin Becker
Are there any methods to get access to previous versions of persistent objects without actually carrying out the undo? -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or

[Zope-dev] Chameleon

2000-09-22 Thread Joachim Schmitz
Hi, I just tried to use the chameleon product with zope 2.2.1 under SuSE 7.0. After adding a new chameleon folder, I can't enter that folder, cause there is always the authorisation-box opened. And I am not able to authorize. Can the chameleon product work with 2.2.x at all ? Mit

[Zope-dev] Shared Libraries and Persistent Objects

2000-09-22 Thread Monty Taylor
Hey guys, I've got a question about how Zope deals with shared libraries. Say I have a 2Meg shared library that I've generated with SWIG. (I know it's big, but for sake of argument) Say then that I create a Python Class that imports this library and provides a front-end for each of its exported

[Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Monty Taylor
Hey, is there any doco about using ZSQL Methods from Python Products? Also, does anyone know of any work done to extend ZSQL Methods to allow stored-procedure calls? I know I can do an Oracle Procedure call from DCOracle that returns a cursor, but I'd love to combine that with the

Re: [Zope-dev] Shared Libraries and Persistent Objects

2000-09-22 Thread Jim Fulton
Monty Taylor wrote: Hey guys, I've got a question about how Zope deals with shared libraries. Say I have a 2Meg shared library that I've generated with SWIG. (I know it's big, but for sake of argument) Say then that I create a Python Class that imports this library and provides a

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Monty Taylor
Jim Fulton wrote: Monty Taylor wrote: Also, does anyone know of any work done to extend ZSQL Methods to allow stored-procedure calls? No, but I'd love to see someone tackle it. The semantics of stored procedures varies so widely accross databases, that I doubt that it would be easiliy

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Jim Fulton
Monty Taylor wrote: Jim Fulton wrote: (snip) Note that one of the things I like about Oracle's stored procedures is that they allow me to avoid screwing with cursors in the common case that I'm getting one row of data. I can just get the data I need through a straight function call.

Re: [Zope-dev] I feel your Wiki Pain ;-)

2000-09-22 Thread Simon Michael
I like where you're going with this Martijn. Spurred on by your concrete examples, how about this: every wiki page has an email address and functions as a "mailing list". Eg: I could subscribe or send edits to ZWikiWeb:[EMAIL PROTECTED] StructuredTextWiki:[EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Zope-dev] Re: [Zope-ZEO] Advice

2000-09-22 Thread Steve Spicklemire
We're using ZCVSMixin for just such a scenario. It's working a lot better than nothing. ;-) It does still have rough edges, and you need to know too much about how it works to do anything complex, but it does allow us to manage changes and test/stage/update etc with a much greater degree of

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Phillip J. Eby
At 08:43 AM 9/22/00 -0400, Jim Fulton wrote: Also, does anyone know of any work done to extend ZSQL Methods to allow stored-procedure calls? No, but I'd love to see someone tackle it. The semantics of stored procedures varies so widely accross databases, that I doubt that it would be easiliy

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Jim Fulton
"Phillip J. Eby" wrote: At 08:43 AM 9/22/00 -0400, Jim Fulton wrote: Also, does anyone know of any work done to extend ZSQL Methods to allow stored-procedure calls? No, but I'd love to see someone tackle it. The semantics of stored procedures varies so widely accross databases, that I

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Phillip J. Eby
At 12:49 PM 9/22/00 -0400, Jim Fulton wrote: "Phillip J. Eby" wrote: Ty and I have put together a Stored Procedure method for Sybase; it requires a minor patch to ZSybaseDA, however, to allow for the status code return. I'm not sure how useful it would be to anyone else, though, since all

Re: [Zope-dev] ZSQL Methods from Python?

2000-09-22 Thread Jim Fulton
"Phillip J. Eby" wrote: At 12:49 PM 9/22/00 -0400, Jim Fulton wrote: "Phillip J. Eby" wrote: Ty and I have put together a Stored Procedure method for Sybase; it requires a minor patch to ZSybaseDA, however, to allow for the status code return. I'm not sure how useful it would be to

[Zope-dev] ftp-acces to Zope: rename command

2000-09-22 Thread Klaus Woelfel
Hi, I have the following problem: One great thing in Zope is the ftp acces to objects. And in combination with the ftp-abilities of kfm and kwrite in kde1.2 it worked very nice for me to edit DTML-Documents in kwrite. But now in kde2 the the i/o System of kde (kio) has changed and when I edit an

[Zope-dev] Do I really understanding caching?

2000-09-22 Thread Andy McKay
We have been looking at caching in Zope as a way of tweaking performance. Heres an example of what I think happens: - Supposing I have a 1,000 object catalog. If one person changes an catalog aware object, that instance of the catalog will be pulled out of the ZODB and changed. It will then be

Re: [Zope-dev] Do I really understanding caching?

2000-09-22 Thread Andy McKay
Thanks (I'm only talking about text indices here.) Note that the Catalog is actually a tree of database/cache objects. There are a series of buckets and sub-buckets that end in a word object. The buckets, sub-buckets, and words are all database objects and can be cached/updated

Re: [Zope-dev] Do I really understanding caching?

2000-09-22 Thread Chris McDonough
Statement of possible BS: I am speaking from how I understand the catalog to work, and possibly not how it actually *does* work. :-) Andy McKay wrote: We have been looking at caching in Zope as a way of tweaking performance. Heres an example of what I think happens: - Supposing I have a

Re: [Zope] standard_error_message confusion

2000-09-22 Thread Danny William Adair
My standard error_message is ok. I think my problem with LoginManager and Membership can be cut down to this: If I take away all permissions from a dtml-document for Anonymous, he will be correctly prompted for Login using *my* standard_error_message ("LoginRequired" is raised) as soon as he

[Zope] Re: [Zope-PTK] Cannot import DemoPortal.zexp

2000-09-22 Thread Bill Welch
Bet you can't import Wizard.zexp either and the traceback shows the identical pickled data. I'm battling a very similar problem and so far I think it's subtle corruption of the ZODB having to do with ZDiscussion. Note that the pickled data contains references to ZDiscussion. The pickled data in

Re: [Zope] standard_error_message confusion

2000-09-22 Thread Steve Alexander
Danny William Adair wrote: My standard error_message is ok. I think my problem with LoginManager and Membership can be cut down to this: If I take away all permissions from a dtml-document for Anonymous, he will be correctly prompted for Login using *my* standard_error_message

Re: [Zope] standard_error_message confusion

2000-09-22 Thread Steve Alexander
Danny William Adair wrote: Unfortunately, yes he does. Time to step through your site in the debugger then. Or, instrument HTTPRequest.py and HTTPResponse.py to see what is getting called when. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

[Zope] Re: Patch to let Authorized Exceptions use standard_error_message

2000-09-22 Thread Andy McKay
Well theres the thing, its not really a patch. I doesnt allow Authorized Exceptions to use standard_error_message, thats a whole different kettle of fish. /lib/python/ZPublishers/HTTPResponse.py line 482 to 523 contains HTML text for the error message. So you can rewrite that. Thats all I have

Re: [Zope] Q: External method processing (D/H)TML forms?

2000-09-22 Thread J.R. van Ossenbruggen
I want to pass input from a DTML form to an external method. So far the DTML is actually just a plain HTML page: untested try passing it the REQUEST object: def external-method(self, REQUEST): """whatever""" /untested tested Just what I needed! /tested Thanks, -- Jacco

[Zope] DTML Loop, is there a 'continue'?

2000-09-22 Thread Spicklemire, Jerry
Hi Zope Fans, I'm about searched out trying to find any discussion about calling a normal "continue" statement, as in Python, from DTML. Any ideas? I just want to short circuit a dtml-in loop for one pass, and then finish the rest of the loop, based on a parameter. Thanks, Jerry S.

Re: [Zope] DTML Loop, is there a 'continue'?

2000-09-22 Thread Daniel Rusch
I hope there is a dtml-continue, I also have not been able to find it though. What I have done is resorted to an dtml-if (or some times an dtml-unless) that catches the condition I want to short circuit and wrapped the code in the dtml-else. The dtml-unless probably the better choice. dtml-in

[Zope] FYI: Python product tutorial updated

2000-09-22 Thread Shane Hathaway
The Python product development tutorial has been updated to reflect current practices. It is accompanied by a working product that contains all the sample code (which should also replace the "Boring" product.) It will likely be included in the Product Developer's Guide. See

RE: [Zope] Version Control in Zope / Managing releases

2000-09-22 Thread Casey Duncan
snip 1) "Code Collisions." - Developers overwriting each other's work. 2) Partial updates - Right now, we have new pages for marketing content that are held up because we don't have our new features for the application done yet. So we can't update marketing pages without updating

[Zope] HTML Widgets, In-place editing in Zope

2000-09-22 Thread Phill Hugo
Hi All, We've been working on this for a few days now and I think its about time it was uncovered. If you try these two URLs in Mozilla or IE, you'll see what it does. It works in Netscape 4 but doesn't do the stylesheet magic to the form which looks less impressive.

[Zope] Exporting

2000-09-22 Thread Andy McKay
How do I export a folder using the Import/Export tab with exporting all the subobjects? (Stupidest suggestion so far: delete all subjects, export, undelete) -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED]

[Zope] What options exist for dealing with tracebacks?

2000-09-22 Thread Skip Montanaro
Having only recently upgraded from Zope 2.0 to 2.2.1 I see that the default behavior for traceback reporting is still to embed them in an HTML comment (or display them when debugging). Are there other options for dealing with tracebacks? I'm just using ZServer to publish my own modules. I'm

[Zope] Cookie pointer.

2000-09-22 Thread Steve Drees
I learned this one the hard way. Had a python method id: expireTime parameters: self body: t = self.ZopeTime() + (1.0/192.0) # 7.5 minutes in the future t = t.toZone('GMT') return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT") -- Was trying the

Re: [Zope] HTML Widgets, In-place editing in Zope

2000-09-22 Thread Maik Roeder
Hi Phill ! Phill Hugo wrote: widgets is an external method which will be on Zope.org next week if all goes well. Great, it looks very nice ! Perhaps this should go into the Zope core sometime/where ? Best regards, Maik Röder -- Uzopia - Digging la vida Zopa -