[Zope] DTMLTemplate on Zope 2.2.1

2000-10-01 Thread Stefan H. Holek
appreciated. Stefan -- Stefan H. Holek, [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce

Re: [Zope] ZClass derrived from Image does not call "view" fromwithin

2000-10-16 Thread Stefan H. Holek
On Sun, 15 Oct 2000, Noah wrote: > I'm a Zope beginner. I'm trying to create an ImageTemplate ZClass. This will work > similar to an Image, but the user can insert it directly in DTML using MyImage> > and it will get expanded into HTML (with formatting, tag, caption, etc.) FWIW the Image object

[Zope] Force DTML evaluation?

2000-10-17 Thread Stefan H. Holek
I created a Renderable derived ZClass to act as a "content box". I am basically providing title and content attributes, and when called like it nicely renders into an HTML table. Then I realised I could not use DTML in the content (type: text). duh! Is there a function I could use like like ?

Re: [Zope] How do I format date/time in dtml from a ISO-8601 SQLtimestamp field? field?

2000-10-20 Thread Stefan H. Holek
On Thu, 19 Oct 2000, J Kinsley wrote: > Given mtime = -MM-DD HH:MM:SS-ZZ as returned from PostgreSQL, how > do I get the following to work without errors? > > > > > > > > This returns: > Errot Type: ValueError > Error Value: unsupported format character 'a' (0x61) AFAIK

Re: [Zope] ZMySQL and MySQLdb Versions

2000-10-20 Thread Stefan H. Holek
On Fri, 20 Oct 2000, Ragnar Beer wrote: > - Zope MySQL Database Adapter, 2000/07/20 by mordred (ZMySQLDA-1.2.0.tar.gz) > - ZMySQLDA, 2000/07/20 by MikeP (ZMySQLDA-1.1.3-nonbin.tar.gz) > - An Interface for MySQL, 2000/07/20 by adustman (MySQLdb-0.1.2.tar.gz) I recently got confused myself about e

Re: [Zope] MailHost: bcc broken ?

2000-10-25 Thread Stefan H. Holek
Zope bulk mailing has recently been discussed here and the general opinion was to avoid it. Zope is just not a bulk mailer. Look into e.g. mailman and hand off the task. Stefan On Tue, 24 Oct 2000, Holger Lehmann wrote: > I can send single email with one recipient without problems. > I need t

Re: [Zope] MailHost: bcc broken ?

2000-10-25 Thread Stefan H. Holek
On Wed, 25 Oct 2000, Gregory Haley wrote: > i was one of the participants in the recent discussion of zope bulk > mail. i'm wondering about the mechanics of sending the work of the mail > to the actual sendmail server outside of zope. would i do that by > creating an external method which is pr

Re: [Zope] Changing standard realm with SiteAccess2+Zope 2.2.1

2000-10-30 Thread Stefan H. Holek
On Sun, 29 Oct 2000, Alexander Verhaar wrote: > I'm trying to change the standard realm with SiteAccess and a > External Method. I still get the standard 'Zope' realm, while > SiteAccess is pointing to the External Method. What am i doing > wrong? > > Here below the external method i used: > >

Re: [Zope] Check for JavaScript: (OT)

2000-11-03 Thread Stefan H. Holek
> On Fri, 03 Nov 2000, Oleg Broytmann wrote: > > > > > > > > window.location = "/site/with/js/" > > > > > > > > > > > > Loading, please wait... > > > > assigning to location.href breaks the history (the redirecting page is added to the history and pressing back will get you to the redir pa

Re: [Zope] ZMethod (Safe)

2000-11-09 Thread Stefan H. Holek
On Wed, 8 Nov 2000, Evan Simpson wrote: > We've pretty much settled on restricted/unrestricted here. In honor of the >presidential Indecision > 2000 race, we're seriously thinking about revamping and rerunning the poll, so >ZMethod may well get > its moment in the spotlight. > > Cheers, > >

[Zope] Bulk Mailing How-To!

2000-11-10 Thread Stefan H. Holek
For those who care: I have created a bulk mailing How-To at http://www.zope.org/Members/shh/BulkMailHack/ Cheers, Stefan -- Things work better when plugged in ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Chris Withers wrote: > Chris McDonough wrote: > > > > I'm going to take a guess. It would appear AFAICT that the ZDiscussions > > product installed an object which it hung off the root object (the > > application object) when it was first imported. > > Don't rememebr see

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Chris McDonough wrote: > > FWIW, I can also report this problem with ZDiscussions. In my case it > > stemmed from not properly deleting the ZDiscussion product before moving > > my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing > > unable to create ZSQL Me

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Farrell, Troy wrote: > I know this sounds silly, but try making the url end with .csv > I wrote a perl cgi script some time ago that spit out a csv file. When it > ended with .csv, IE seemed to ignore the server's Content-type: text/html > header. Not silly! I have also see

Re: [Zope] Can Zope use a Different Python?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Gary Perez wrote: > We've got Zope 2.2.2 installed on a Linux box. We want to be able to use > the full-up python that's on the box instead of the python interpreter > that comes with Zope for playing with External Methods. > > Is there any way to circumvent Zope's python in

[Zope] Avoiding acquisition aka testing for contained objects

2000-11-15 Thread Stefan H. Holek
If I want to know whether a certain object is contained in the current folder I do this: yes it's here not here Id like to know whether this is the best/most efficient way to do it. Things like hasattr() are subject to aquisition i.e. they would find an index_html method along the acquis

[Zope] ZCallable

2000-11-15 Thread Stefan H. Holek
I have this ZCallable product (from the PTK, I think). I do however not manage to derive a ZClass from ZCallable. The error is something like "Too many datafull base classes". Is ZCallable not intended to work like that (the source hints to some ExtensionClass business) or am I missing something?

Re: [Zope] How to separate markup from presentation

2000-11-15 Thread Stefan H. Holek
On Wed, 15 Nov 2000, Tom Sheffler wrote: > I'm aware of HiperDom, but I'm wondering if anyone has a good > suggestion for how to structure docs so that docs can be written > using abstract tags whose definition is separate. [snip] > This is the first part of the problem. Additionally, I would

Re: [Zope] Avoiding acquisition aka testing for contained objects

2000-11-16 Thread Stefan H. Holek
On Wed, 15 Nov 2000, Johan Carlsson wrote: > > If I want to know whether a certain object is contained in > > the current folder I do this: > > > > > > yes it's here > > > > not here > > > hasattr(self.aq_base, 'index_html') should probably work. > > aq_base returns the unwrapped base

Re: [Zope] Search and replace

2000-11-20 Thread Stefan H. Holek
FWIW, there used to be the replace product that worked great for me with Zope 2.1.6. Pity I upgraded ;) Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related list

[Zope] Re: Re-2: [Zope] Search and replace

2000-11-20 Thread Stefan H. Holek
On 20 Nov 2000 [EMAIL PROTECTED] wrote: > Hello Stefan, > which replace product do you mean? > Arno http://www.zope.org/Members/cguardia/replace but be warned, it does NOT work with Zope 2.2.x (breaks your Folder.py) Stefan ___ Zope maillist -

Re: [Zope] ZClass/DTML Document transparency

2000-11-22 Thread Stefan H. Holek
On Tue, 21 Nov 2000, Dieter Maurer wrote: > Randall Kern writes: > > > > In the case of DTML Documents, the following works fine: > > > > > > > > In the case of ZClasses, I have to use something like this: > > > > > > > > > > > > But this is rather ugly, and it's th

Re: [Zope] Error Installing PKT

2000-11-22 Thread Stefan H. Holek
On Wed, 22 Nov 2000, Dany Rioux wrote: > Error Value: No module named PythonMethod.PythonMethod > > I would guess I'm missing some module. Anyone can tell me which one it is? Well, you seem to be missing PythonMethods ;) You must get them from the CVS. See http://www.zope.org/Resources/CVS_inf

[Zope] Where does ZClassID come from?

2000-11-22 Thread Stefan H. Holek
How is the class id of a ZClass computed? From the filename? Does this mean I cannot have MyZClass-0-0-1.zexp because the name must not change? TIA Stefan -- Things work better when plugged in ___ Zope maillist - [EMAIL PROTECTED] http://lists.zop

Re: [Zope] sending thousands of emails in the background (returningthe webpage immediately) ?

2000-11-23 Thread Stefan H. Holek
On Thu, 23 Nov 2000, chas wrote: > Goal: an end-user fills in a form on a webpage and clicks > the 'submit' button. As a result, thousands of > customized e-mail messages are sent. > > Problems: > (i) The msgs are customized so Mailman is not appropriate. > also, there is

Re: [Zope] validation-onClick

2000-11-23 Thread Stefan H. Holek
On Thu, 23 Nov 2000, Angietel wrote: > The form="a" and its input field="custid" is being validated, when the alert message >box came out then i clicked on the 'OK' button which is inside the alert message box, >but it return to another page instead return to form="a". > ( I prefer to use 'onCl

Re: [Zope] Objection to Python Script Name

2000-11-23 Thread Stefan H. Holek
On Thu, 23 Nov 2000, Chris Withers wrote: > Chris Gray wrote: > > > > I know, I know. It's a little late to speak up, but I think there is a > > logical objection to this name: inconsistency with "DTML Method" and > > "ZSQL Method". > > These are old, horrible and will hopefully be re-thought

Re: [Zope] images last-modified bug?

2000-11-24 Thread Stefan H. Holek
On Fri, 24 Nov 2000, Júlio Dinis Silva wrote: > I read sometime ago of a bug in zope not sending images header > last-modified, which cause browsers to always get images from > zope not using the browser's cache. I'm seeing some different behaviour in > my site statistics since I upgrade from 21

Re: [Zope] seeking zope success stories in higher education

2000-11-24 Thread Stefan H. Holek
might be a start: http://www.zope.org/Members/Kemalus/make_zope_decision Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mai

[Zope] Factory location and Add box pollution

2000-11-27 Thread Stefan H. Holek
I want to create a folderish ZClass to contain all my project specific ZClasses. The idea is to only have them show up when inside my projectfolder. Just like the ZClass object only shows up inside a product's folder. Well, when I derive from OFS:Folder I do get all the global stuff, but _not_ my

Re: [Zope] Factory location and Add box pollution

2000-11-28 Thread Stefan H. Holek
ries (except the > projectfolderFactory) to inside the projectfolder ZClass. This > should do the same trick as LocalFactory. > > > On Mon, Nov 27, 2000 at 02:38:42PM +0100, Stefan H. Holek wrote: > > I want to create a folderish ZClass to contain all my > > project specific ZClasses. The

Re: [Zope] ZopeWeaver?

2000-11-29 Thread Stefan H. Holek
On Wed, 29 Nov 2000, Simon Coles wrote: > Yes, this works fine on the Mac. I suspect the difference is because > on the Mac they are taking the http content types to figure out the > content, but on Windows they are being lazy and using the file > extension. Why they didn't use the same code I

Re: [Zope] login dialog text

2000-11-30 Thread Stefan H. Holek
On Thu, 30 Nov 2000, Ragnar Beer wrote: > Hi Zopistas! > > When users connect to a restricted area a dialog box pops up that > looks more or less like this: > > > Enter user name for Zope at myhost: > User: _ > Password: _ > ---

[Zope] has_permission in PythonMethod

2000-11-30 Thread Stefan H. Holek
I have this (internal) PythonMethod called filtered_meta_types user=self.REQUEST.AUTHENTICATED_USER meta_types=[] if callable( self.all_meta_types ): all=self.all_meta_types() else: all=self.all_meta_types for meta_type in all: if meta_type.has_key( 'permission' ): # this is always fals

Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)

2000-12-01 Thread Stefan H. Holek
> Why isn't there a mod_zope module? There certainly are mod_snake and mod_python. Has anybody tried to run Zope with one of those? Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)

2000-12-01 Thread Stefan H. Holek
On Fri, 1 Dec 2000, Oleg Broytmann wrote: > On Fri, 1 Dec 2000, Stefan H. Holek wrote: > > > Why isn't there a mod_zope module? > > > > There certainly are mod_snake and mod_python. Has anybody tried to run > > Zope with one of those? > >Zope is

Re: [Zope] ZSQLMethods

2000-12-04 Thread Stefan H. Holek
On Mon, 4 Dec 2000, Tom Deprez wrote: > Thanks, is this code still efficient if the tables relate to 1:1 and you > need to show a list of all records in a tabulare table? > > eg key, NAME, ALIAS, > > where NAME is from database1 and ALIAS is from database2 > > The code below would impact

Re: [Zope] What difference between subclassing from OFS:Folder andObjectManager

2000-12-05 Thread Stefan H. Holek
On Tue, 5 Dec 2000, Dirksen wrote: > What is the difference between subclassing from OFS:Folder and ObjectManager? Is it >the > ONLY difference that the ObjectManager is able to limit kinds of object to contain? > Deriving from OFS:Folder will only give you global meta types in the Addbox, whe

Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Stefan H. Holek
On Tue, 5 Dec 2000, Jason Cunliffe wrote: > Thanks for your notes, especially the "open as text" tip. I found an option in "Edit | Preferences | Workspace" named "Ignore file type when opening/inserting" It may have (yet undetected) side effects, but doubleclicking index_html now does what I

Re: [Zope] Search and replace interface

2000-12-06 Thread Stefan H. Holek
On Wed, 6 Dec 2000, Chris Withers wrote: > There was a trhead recently abotu search and replace. It'd be great if > Zope had a search and replace interface, wouldn't it? ;-) May I humbly point you to the ReplaceSupport product I had cataloged today... http://www.zope.org/Members/shh/ReplaceSup

Re: [Zope] Comment elimination...

2000-12-07 Thread Stefan H. Holek
On Thu, 7 Dec 2000, Curtis Maloney wrote: > On Thursday 07 December 2000 08:05, Dieter Maurer wrote: > > Curtis Maloney writes: > > > ... finding objects with "comment" in them > > > > You can use the "Find" tab and fill the "containing" field > > with "comment". > > duh! > > I've been i

Re: [Zope] default values in forms

2000-12-13 Thread Stefan H. Holek
On Wed, 13 Dec 2000, Olaf Zanger wrote: > i found out that spaces may be replaced by "+" in the link, > but how do i get the "+" into the statement? what you want is see the DTML guide: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.5.html HTH Stefan _

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-16 Thread Stefan H. Holek
On Fri, 15 Dec 2000, Martin Winkler wrote: > On a client's server I created a ZCatalog, but when using "Find Items to > ZCatalog" and clicking on "Find" in the form, Zope raises the "list index > out of range" error shown in detail at the end of this e-mail. Then I took > the whole Data.fs, pu

Re: [Zope] LoginManager and SSL client authentication

2000-12-16 Thread Stefan H. Holek
On Fri, 15 Dec 2000, Mayers, Philip J wrote: > We've got a bespoke application for storing our (very large) user account > database here. One field a user can have is a crypted unix password (which > I'm currently using to authenticate users). The other thing that can exist > is the Subject or Su

Re: [Zope] pb : transparent folder 0.3 and ZSQL methods

2000-12-24 Thread Stefan H. Holek
On 22 Dec 2000, Didier Georgieff wrote: > I have a (regular) folder on root level with ZSQL methods. > I have a transparent folder on root level with a ZMySQLdatabase connection > > When i manage any of the ZSQL method, i get that : > Warning: There are no SQL database connections. You need to a

Re: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Stefan H. Holek
http://simplates.zetaweb.com/ On 31. Mär 2005, at 19:38, Andy Yates wrote: So, how do I make a dynamic style sheet that has the correct (text/css) content type? -- Software Engineering is Programming when you can't. --E. W. Dykstra ___ Zope maillist - Z

Re: [Zope] ExtFile Extention Mappings

2005-04-09 Thread Stefan H. Holek
Why? Because one of the main tricks of ExtFile is the ability to have files and images served statically by Apache, right out of the repository. Apache determines the mime type to serve from the file extension, ergo ExtFile has to make sure there is one. How? from mimetypes import guess_extensi

Re: [Zope] Description Strings in Archetypes

2005-04-11 Thread Stefan H. Holek
Please take this to the plone-users list. See http://plone.org/contact Stefan On 11. Apr 2005, at 18:36, S.D. wrote: I'm running Archetypes 1.3.2-final in Plone 2.0.5 (Mac OS X Server). I added the Article example from ArchExamples to the available items list in a Plone site. It works fine except

Re: [Zope] Strange lockup during functional tests (sandboxed)

2005-04-23 Thread Stefan H. Holek
ZopeTestCase.app() returns a new connection which you would have to ZopeTestCase.close(app) after use. If you forget to close, you will deplete the connection pool and cause the hang you experience. Also, note that the app argument to utility methods is *optional*, and setupCoreSessions() will

Re: [Zope] high loads, more threads, spinning wheels

2005-05-01 Thread Stefan H. Holek
On 29. Apr 2005, at 15:34, Jim Abramson wrote: Can this be taken to mean that: - the practical maximum number of threads to run your single (non-ZEO) zope instance is {number of zodb connections in pool} else you risk deadlock You will want to make the connection pool a bit larger than the number

Re: [Zope] high loads, more threads, spinning wheels

2005-05-02 Thread Stefan H. Holek
I assume what you see are "hangs" i.e. Zope appearing to not accept new requests, as soon as all 4 worker threads are busy waiting for the RDBMS system to answer. Now, using more threads will push back the point of unresponsiveness, but as soon as you have the 13th request hitting Zope, you are

Re: [Zope] Error Value: domains

2005-06-05 Thread Stefan H. Holek
The traceback says there is a PythonScript involved, and I am pretty sure there shouldn't. I assume you have created a script with a reserved name which is now interfering with user retrieval. Welcome to implicit acquisition. Stefan On 4. Jun 2005, at 19:15, Know-iT - Christian Steinhauer

Re: [Zope] [ANN] Zope 2.8.0 released

2005-06-11 Thread Stefan H. Holek
Wheee! Two thumbs up, Andreas. Thanks a lot! Stefan On 11. Jun 2005, at 08:51, Andreas Jung wrote: on behalf of Zope Corporation and the Zope community I am pleased to announce the release of Zope 2.8.0. You can download Zope 2.8.0 from http://www.zope.org/Products/Zope/2.8.0/ Som

Re: [Zope] large installations and conflict errors

2005-08-08 Thread Stefan H. Holek
Do you mount your catalog in a separate database? If not, you may want to try this to split up the conflict domains. Multiple catalogs may or may not help. Multiple databases will help more likely, IMO. Stefan On 8. Aug 2005, at 16:01, M. Krainer wrote: Currently we think that our bottle

Re: [Zope] Zope 2.8 and conflict errors

2005-08-08 Thread Stefan H. Holek
Well, you know... In this one project, we had an interesting (cough) situation with PostgreSQL + psycopg, where we would see plenty of write conflict errors coming from the DB connector. Turned out PostgreSQL has kind of an "optimistic" transaction control, where the DB server returns som

Re: [Zope] conflicts, sessions, and programming best practices guidelines

2005-11-16 Thread Stefan H. Holek
Try to partition your collision space. Do you mount a shared temp_folder? Don't! Do as Chris said and keep a temp_folder per ZEO client. Let the load balancer send people to the same ZEO client every time (according to the cookie). Note that there is no solution for bad coding practice other than

[Zope] Re: ZopeTestCase.Functional and sessions?

2005-11-21 Thread Stefan H. Holek
Well, yes. As you have already discovered, publish() creates it's own REQUEST (also see ZPublisher.Test). All you have after a call to publish() is the response object. Note that you *can* check ZODB- based variables after publish(). However the REQUEST is not stored in the ZODB... Which b

Re: [Zope] states in _p_resolveConflicts

2005-12-08 Thread Stefan H. Holek
Hope these help: http://mail.zope.org/pipermail/zope/2002-December/128574.html http://mail.zope.org/pipermail/zodb-dev/2003-October/006133.html http://mail.zope.org/pipermail/zodb-dev/2004-August/007796.html Stefan On 8. Dez 2005, at 00:21, Dennis Allison wrote: I am having trouble understa

Re: [Zope] request.set('AUTHENTICATED_USER',...

2006-01-14 Thread Stefan H. Holek
AUTHENTICATED_USER has been deprecated aeons ago and should have vanished from the REQUEST by means of bit rot alone ;-). You have to ask the security manager for the current user: from AccessControl import getSecurityManager getSecurityManager().getUser() This is allowed in Py

Re: [Zope] Can ZServer or ZPublisher be coaxed to return port 80 response..??

2006-01-14 Thread Stefan H. Holek
A fairly common setup is to have: Apache with appropriate VHM rewrite rules --> pound --> 2-n ZEO clients If you don't want Apache in front, it is also possible to configure the VHM directly (inside Zope). Writing your own access rules and mucking with the URLs is neither necessary nor enc

Re: [Zope] ExtFile - wrong file extension and content_type

2006-02-09 Thread Stefan H. Holek
Two things to check - Does your /etc/mime.types file on the server contain the correct entry for msword? - Do your clients (browsers) reliably sent the msword content-type? Stefan On 7. Feb 2006, at 19:16, Palermo, Tom wrote: All, I am working on a project using ExtFile. Lately, when upl

Re: [Zope] VerboseSecurity and zope 2.8.5

2006-02-15 Thread Stefan H. Holek
If this is Plone, you also need to tell error_log not to ignore Unauthorized and clear the Login page ID in cookie_authentication. See Stefan On 15. Feb 2006, at 14:39, Peter Bengtsson wrote: I'm not getting any verbose security messages in my zope 2.

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-16 Thread Stefan H. Holek
Please learn to read and to provide the *complete* traceback. The error text alone is not enough most of the time. Your error *may* mean that 'system' is not yet wrapped. Are your positive that 'system' is a folder that already exists in the ZODB, i.e. has already been _setObject'ed? Stef

Re: [Zope] restricting permissions for direct access only

2006-02-16 Thread Stefan H. Holek
There is no way, proxy roles are not passed-on to callees. Stefan On 14. Feb 2006, at 17:04, Michael Shulman wrote: But... it's still not working for my real site. I think the issue is this. If script1 has proxy role Manager, and script2 has view permissions set only for Manager, then script

Re: [Zope] Re: Zope scheduling problem

2006-02-17 Thread Stefan H. Holek
Uhm, you sure this patch is a good idea? Why not use portal_catalog.unrestrictedSearchResults? Stefan On 17. Feb 2006, at 10:14, Pawel Lewicki wrote: Hi, The problem is with portal_catalog. See/apply this patch http://www.zope.org/Collectors/CMF/380 Pawel -- Anything that happens, happens

Re: [Zope] Change owner from external app

2006-03-01 Thread Stefan H. Holek
*Everything* you can do in the ZMI, you can also do from code. Most of it even via XML-RPC. In case a method you want does not publish nicely to XML-RPC, write a helper script in Zope and RPC that one. Also, install DocFinderTab for all the API doc needs you may have. Stefan On 1. Mär 2006

Re: [Zope] How to specify caching for ZSQL methods on file system

2006-03-02 Thread Stefan H. Holek
You are close ;-) The info goes into a block at the start of the file. title: Foo arguments: foo bar max_rows: 1000 max_cache: 100 cache_time: 60 ... Stefan On 2. Mär 2006, at 15:15, Yuan HOng wrote: I have some ZSQL methods written on the file system using FSDV. In ZMI I can not find th

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Stefan H. Holek
a) Your system may be I/O bound - not CPU bound - so you will never see the CPU max out because the limiting factors are memory and disk/ network access. b) Make sure to tune Python's checkinterval. While you should *always* do that, it is especially important on multi-processor/multi- core

Re: [Zope] single sign-on

2006-03-31 Thread Stefan H. Holek
You may want to contact Netsight(.co.uk), they have a working NTLM auth system for Zope/Plone. It's not gratis though, AFAIK. It's also possible to use ActiveDirectory for both Windows and Zope (via LDAPUserFolder). Stefan On 31. Mär 2006, at 09:03, Fernando Martins wrote: Interesting to

Re: [Zope] logging from external methods

2006-04-02 Thread Stefan H. Holek
Note that ExternalMethods are not, and do not behave like, python modules. Stefan On 1. Apr 2006, at 01:28, Jed Parsons wrote: I'm trying to perform some logging from external methods. I've discovered that, if you're not careful, you get more and more loggers each time Zope reloads the m

Re: [Zope] Problem with ExtFile

2006-04-05 Thread Stefan H. Holek
Could both of you please a) Try the SVN trunk of ExtFile [1] b) Be more specific with your bug reports. I have added tests that do what Bruno sent me, DTML and all (yuck), but am unable to reproduce the issue. Thanks, Stefan [1] svn co https://svn.plone.org/svn/collective/Extfile/trunk Ext

Re: [Zope] Problem with ExtFile

2006-04-05 Thread Stefan H. Holek
Oh, also note that ExtFile 1.4.4 does *not* work with Zope > 2.7. It clearly says so in the README and on the download page. You *must* use SVN trunk (soon to be 1.5.0) with Zope 2.8 and higher. Stefan On 4. Apr 2006, at 21:48, Michael Vartanyan wrote: Same problem here. Occasionally, up

Re: [Zope] TextIndexNG and ExtFile

2006-04-08 Thread Stefan H. Holek
This is fixed on SVN trunk [1]. I hope to get around to releasing 1.5.0 sometime soon-ish. Please also note that it is *not safe* to use 1.4.4 with Zopes > 2.7 because of major changes in the transaction machinery of Zope. Stefan [1] svn co https://svn.plone.org/svn/collective/ExtFile/trun

Re: [Zope] ExtFile and TextIndexNG issues

2006-04-12 Thread Stefan H. Holek
This however is *exactly* the problem. Please use 1.5. ExtFile 1.4.4's index_html writes to the request regardless of how it was called (by publisher or script). Stefan On 11. Apr 2006, at 19:24, Palermo, Tom wrote: I haven't tried upgrading to ExtFile 1.5 from the svn trunk yet but I real

Re: [Zope] DELETE Objects

2006-04-18 Thread Stefan H. Holek
Deletion *is* an operation on the container because it a) removes an attribute from the container b) removes an entry from the container's _objects tuple DELETE is for WebDAV. You options are a) Python Script with proxy role b) External Method (or another form of unrestricted Python code) Stefa

Re: [Zope] Permissions, files and folders

2006-04-20 Thread Stefan H. Holek
I recommend to install DocFinderTab. And there is something at http:// api.plone.org/ for those who like such things ;-) Stefan On 18. Apr 2006, at 13:21, Erik Billing wrote: Is there any complete api reference avalible? -- Anything that happens, happens. --Douglas Adams ___

Re: [Zope] refreshing external method

2006-06-03 Thread Stefan H. Holek
Run Zope with debug-mode on (see etc/zope.conf) and EMs will be refreshed for you. Not however that this only works for the EMs themselves and *not* for modules they may be importing; changes in imported modules are not detected by the machinery. Stefan On 2. Jun 2006, at 13:47, thomas de

Re: [Zope] Re: Any known leaks in ExtFile and OpenFlow?

2006-06-05 Thread Stefan H. Holek
I am not aware of leaks in ExtFile but am certainly interested should you be able to point out some. ;-) Stefan On 4. Jun 2006, at 11:59, Michael Vartanyan wrote: Hi all, One of my Zope (2.8.4 on Python 2.4.2, SLES9) sites constantly hits the memory limit. It makes heavy use of two produ

Re: [Zope] Trying to trap ConflictError

2006-07-04 Thread Stefan H. Holek
First, you should not - ever - catch a ConflictError. It is essential for ConflictErrors to be propagated to the ZPublisher. Second, the conflict is detected at commit time, which happens at the very end of the REQUEST. This likely is a while after your method has executed. Stefan On 4.

Re: [Zope] How can i improve performance of website under heavy load in Zope2.6.1

2006-08-03 Thread Stefan H. Holek
On 31. Jul 2006, at 09:13, Sudesh Soni wrote: I wonder why Zope is default set for handling 4 threads and 7 database connections. These are good values under normal circumstances. I tried inreasing threads to 20 and database connections to 30 by updating z2.py and DB.py, presuming that t

Re: [Zope] Programatically logging out of Zope

2006-08-03 Thread Stefan H. Holek
from AccessControl.SecurityManagement import noSecurityManager noSecurityManager() Stefan On 3. Aug 2006, at 13:58, Sinang, Danny wrote: Hello, Would anyone here know how to programmatically log out of Zope ? -- Anything that, in happening, causes something else to happen, causes something

Re: [Zope] no accounts in root user folder?

2006-08-10 Thread Stefan H. Holek
Yes, you must never delete an account that owns ZODB objects. Stefan On 10. Aug 2006, at 09:58, Vangelis Mihalopoulos wrote: where 'call_backend' is an External Method called by a Python Script. All objects in zope are owned by the "admin". Could this be causing the problem? -- Anything

Re: [Zope] PUT_factory and File object?

2006-08-10 Thread Stefan H. Holek
On 10. Aug 2006, at 13:52, Eric Fernandez wrote: def PUT_factory( self, name, typ, body ): ob = None if typ.startswith('text'): ob = File(name, '', body, content_type=typ) return ob However, I cannot upload jpg files anymore... What am I doing wrong there? Stefan --

Re: [Zope] Weird paths in the filesystem using Photo and ExtFile

2006-08-26 Thread Stefan H. Holek
Hi Pablo, This comment from the ExtFile source code may shed some light on the issue. Photos can for historical reasons, and without changes to the Photo product, not take advantage of ZODB_PATH = PHYSICAL. # XXX: The Photo product uploads into unwrapped ExtImages. # As we can not r

Re: [Zope] Monkey Patching Grief with Zope 2.9.4

2006-09-26 Thread Stefan H. Holek
Since Zope 2.8 you can no longer borrow methods from other classes like this. You have to borrow the function implementation. SpecialUser.allowed = PF2SpecialUser.PF2SpecialUser_allowed.im_func Stefan On 26. Sep 2006, at 16:33, Mark Wilson wrote: # now the monkey patching - ooh ooh k o

Re: [Zope] Monkey Patching Grief with Zope 2.9.4

2006-09-28 Thread Stefan H. Holek
Zope and ZODB switched to new-style classes. Stefan On 26. Sep 2006, at 22:52, Mark Wilson wrote: I'd be interested to hear if anyone has any info about why and how this change was made to Zope. -- Anything that, in happening, causes itself to happen again, happens again. --Douglas Adams

Re: [Zope] HTTPResponse

2006-09-29 Thread Stefan H. Holek
The point of stream iterators is not the chunk size, but that they are handed to Medusa (ZServer) right away. As a result the Zope thread is immediately freed to serve new requests, while ZServer takes care of streaming the data to the client. Stefan On 29. Sep 2006, at 15:14, Pascal Pere

Re: [Zope] delete latest transactions

2006-10-02 Thread Stefan H. Holek
http://www.zope.org/Members/itamar/CorruptedZODB Stefan On 2. Okt 2006, at 23:03, Einar Næss Jensen wrote: How, if possible, can one delete the latest transactions in Data.fs? If I wanted to delete all transactions after a given date, can I do that? if not, is it possible to load the Data

Re: [Zope] Help! Zope Crashed! Production Server!

2006-10-05 Thread Stefan H. Holek
The most common issue on *BSD is this: http://tomster.org/blog/archive/2006/09/27/size-does-matter Stefan On 4. Okt 2006, at 20:43, Javier Subervi wrote: The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. -- It doesn't n

Re: [Zope] Re: Zope 2.10.0 released

2006-10-05 Thread Stefan H. Holek
Maurits, you seem to be working as root, which is the root of all evil (pun intended). Don't do that, ever. The permission issues you reported also only crop up if the tarball is extracted while root. Don't do that! Stefan On 5. Okt 2006, at 13:12, Maurits van Rees wrote: BTW, after a .

Re: [Zope] storing persisten object in python dictionaries

2006-10-26 Thread Stefan H. Holek
You don't need to traverse /me thinks. Item access is fast. How about: app.data[classId].instances[obId] Stefan On 26. Okt 2006, at 05:44, Jürgen Herrmann wrote: i have a writeen am framework where objects have unique ids and instances are stored in btreefolders, one per class. if i want to

Re: [Zope] Zope2.9 sqllite

2006-11-09 Thread Stefan H. Holek
I found that ZSQLiteDA does some evil connection pooling resulting in the error you see. You may want to check out http://www.zope.org/ Members/zoping/ZSQLite3DApkg instead. Stefan P.S. I have a fixed version of ZSQLiteDA 0.4.0 hanging around. Holler if you want it. On 8. Nov 2006, at 18

Re: [Zope] OFS.Cache.Cacheable.ZCacheable_invalidate and view_name

2006-11-19 Thread Stefan H. Holek
No, you are right. The way the cache is constructed doesn't allow to purge by view_name. Stefan On 19. Nov 2006, at 13:46, Maciej Wisniowski wrote: As far as I understand this, 'view_name' is useless here, and invalidation always occurs for all cache keys associated with object 'ob'. But th

Re: [Zope] Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-02-25 Thread Stefan H. Holek
http://plone.org/documentation/faq/plone-on-bsd-python-stack Stefan On 26. Feb 2007, at 06:06, Jean Lagarde wrote: All, As a coincidence, that hang of Zope I mentioned in a message I posted yesterday has happened again today (second time), after a planned reboot. So here is a completely diff

Re: [Zope] setup SecureMail for Plone

2007-04-03 Thread Stefan H. Holek
http://www.stunnel.org/ Stefan On 3. Apr 2007, at 06:31, marco marco wrote: My email server requires SSL connections for sending email. How can I setup SecureMail in Plone 2.5.1 to send user registration email? -- It doesn't necessarily do it in chronological order, though. --Douglas Ad

Re: [Zope] VirtualHostBase VHM keyword doesn't work.

2007-04-11 Thread Stefan H. Holek
You are missing the [P] in your rewrite rule. Please follow How-tos to the letter. ;-) Stefan On 11. Apr 2007, at 06:23, Mark, Jonathan (Integic) wrote: RewriteEngine on DocumentRoot /var/www Servername goodbyeken.com RewriteRule /(.*) http://goodbyeken.com:8080/VirtualHos

Re: [Zope] manipulating zodb from independent database connection

2007-04-11 Thread Stefan H. Holek
On 11. Apr 2007, at 07:19, Tim Nash wrote: I'm using zope 2.5 (matches a book I like) and doing like so: This is a *very* old release (5 years?). >>> from ZODB import FileStorage, DB storage = FileStorage.FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root

Re: [Zope] custom Lexicon developpement problems

2007-05-02 Thread Stefan H. Holek
You may want to look at http://www.zope.org/Members/shh/ UnicodeLexicon for inspiration. Stefan On 2. Mai 2007, at 10:50, Winterflood, Jonathan wrote: Hovever, I'm having problems creating indexes that use them: I created the lexicon and indexes via the catalog.xml file, but the 'indexed_a

Re: [Zope] custom Lexicon developpement problems

2007-05-04 Thread Stefan H. Holek
http://dev.plone.org/collective/browser/UnicodeLexicon/trunk/profiles/ default/catalog.xml Stefan On 4. Mai 2007, at 15:04, Winterflood, Jonathan wrote: My main issue is how to integrate the 'indexed_attr' field, but I can't see what is necessary to activate this functionality Could you m

Re: [Zope] Re: Defining a dictionary in ZPT?

2007-11-02 Thread Stefan H. Holek
The only point being backed up by this thread, IMO, is that "Thou shalt not code in TALES." Stefan On 2. Nov 2007, at 12:53, michael nt milne wrote: Backs up my point about more friendly and usable error messages. -- Anything that, in happening, causes something else to happen, causes som

  1   2   >