[Zope] Re: Zope on Solaris
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Sullivan wrote: >>From what I can determine Zope does or should run on Solaris on a Sun > server. Is that assumption correct. > > Can anybody point to any resources or have any comments/opinions-- > like what versions of Zope/Solaris seem to be compatible, any special > issues/requirements? Except for the fact that it will seem dog slow, Zope runs fine on Solaris. The major issue seems to be that the threading model in the Solaris libc is especially punitive for long-running, multi-threaded Python applications. I would recommend running multiple appserver processes, each with a single "worker" thread, rather than trying to run a truly multi-threaded appserver; you will then need to load balance them (e.g., with Pound). Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC+9nk+gerLs4ltQ4RAhL1AKC+8Rhv2qz9r7xliS/dwXuCJwXW0gCeL33h nujTWQAHRXB74pOMFej+zuM= =nCbx -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: and ZPublisher?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jürgen Herrmann wrote: > hi all! > > i read something about using image submit buttons with zope here: > http://www.dieter.handshake.de/pyprojects/zope/#bct_sec_6.13 > > there's a patch for zope 2.5's zpublisher, quite old :/ > > so i patched ZPublisher.py by hand, anybody interested in the patch > against zope 2.8.0? (i'll upgrade to 2.8.1 anytime soon, but i guess > that changes to ZPublisher between 2.8.0 and 2.8.1 should be nonexistant) I think such a patch would be fine. Please submit it as "feature+fix" to the collector: http://www.zope.org/collectors/Zope Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC+2u/+gerLs4ltQ4RAintAJwNZKP64msSjq73pSanIdexA0hixwCgv8Nb VJPuuxpN+EAql6RHU2ur5fg= =6W/9 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Cannot pass parameters to Externa Method From inside a DTML Method
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Apostolou wrote: > The problem know is that, althought the params of the > GetQueryParamsDTML is passed to ShowResults through > the REQUEST, the TestODBCEM does not use them. Instead > the code is always using the defValues of its def > line. > When i was calling ./TestODBC from GetQueryParamsDTML > it was using the parameters i was submiting. > > I tried to change the follong line of ShowResults : > > to: > > > but this one gives me an AttributeError ('str' object > has no attribute 'id'). inside 'expr=".,."', you are writing a Python expression, and thus don't need the '' bit. Try: I would recommend investing in a good Zope reference, e.g. the Zope 2.7 version of "The Zope Book": http://www.plope.com/Books/2_7Edition Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC81a5+gerLs4ltQ4RAtiJAJ4+uQuhIMBtUACVaJ1UeLp1o0D+wACcDTo9 U1IszKaOUHyjyeeEA+cJjL4= =OD7J -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 2.8 and conflict errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maciej Wisniowski wrote: >> That looks like a write conflict. MVCC helps to lower/eliminate the >> rate of read conflicts. One option to reduce the rate of this >> writeconflict is to tune the session machinery to suit. For example >> use session-resolution-seconds of say 300 seconds. > > Thanks! > I've changed session-resolution-seconds and did some tests again. > With DCOracle 2 there are still some errors (30 conflicts visible for users > for 3000 requests), but with SQLRelay there are no errors at all! :) > I didn't checked all 30 errors but I think these are all conflicts > errors with Products.DCOracle2.DA.Procedure object like this one: > > An error was encountered while publishing this resource. > > ZODB.POSException.ConflictError > Sorry, a site error occurred.Traceback (innermost last): > > Module ZPublisher.Publish, line 187, in publish_module_standard > Module ZPublisher.Publish, line 161, in publish > Module ZPublisher.Publish, line 161, in publish > Module ZPublisher.Publish, line 161, in publish > Module ZPublisher.Publish, line 151, in publish > Module Zope2.App.startup, line 158, in zpublisher_exception_hook > Module ZPublisher.Publish, line 119, in publish > Module Zope2.App.startup, line 215, in commit > Module transaction._manager, line 84, in commit > Module transaction._transaction, line 381, in commit > Module transaction._transaction, line 379, in commit > Module transaction._transaction, line 427, in _commitResources > Module ZODB.Connection, line 637, in tpc_vote > Module ZEO.ClientStorage, line 893, in tpc_vote > Module ZEO.ClientStorage, line 877, in _check_serials > ConflictError: database conflict error (oid 0x0299de, class >Products.DCOracle2.DA.Procedure, serial this txn started > with 0x035f181b76214155 2005-08-04 08:59:27.686696, serial > currently committed 0x035f181b79752811 2005-08-04 08:59:28.466635) > > Any ideas what can be done to remove this problem, except the obvious > solution - that is moving to SQLRelay ;) I tried _p_resolveConflict > function but without effect - it's used to resolve write conflict and > I suppose these errors like the one above are read conflicts. Nope; any conflict propagated from within 'commit' is going to be a write conflict; more than one transaction is writing to the same persistent object (in the ZODB) at the same time. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC81Vd+gerLs4ltQ4RAtaEAKDAokv4+azXlqfF2vppOCnhmp2tTwCgv+uw v9w7biMr71rQLFtynCZN0wU= =gzYB -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZMI manage main and zpt to provide reasonable view of content type
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Pratt wrote: > Hi. I have been working on a product in that works with filesystem > content for CMF. I have my content types developed and they are all > registered and working fine but my hitch has to do with edit and views > screens. I want to emulate the way that the ZMI handles things because > the manage_main screen is smart enough to display an edit area if > content type is text/html etc. while it will display binary files > without an edit area etc. > > Where is manage_main for ZMI located to look at what it is doing so that > I can potentially emulate its behavior in my edit and view ZPT? I am > not certain how many behaviors it has based on the type it gets - maybe > there are really only a few. $ZOPE/lib/python/OFS/dtml/fileEdit.dtml > Alternatively, if there are suggestions on what I could do in my ZPT to > display the right view based on the object's content type, this would be > quite welcome. I don't want to resort to constructing a list of all > content types (mime types) and testing against these so am hoping I can > hook into zope's functionality that is already doing this for ZMI. Many > thanks. Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC8REJ+gerLs4ltQ4RAiBsAJ90AZ48N8dXegbuz+R/6lvUxuNIRQCdEbgR TGjLiz6dwjVs/larYlXRitY= =OefI -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Storing Local Roles Externally
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Carter wrote: > I can't find an appropriate list for this, but this one seems the best > fit. I have a need to obtain local roles for my folder-like product > from an sql database. How do I redefine the functions that handle > local roles? I don't know what their names are. The magic attribute is '__ac_local_roles__'. By default, it is stored as a dictionary on the object, keyed by user ID. You can define it as a callable, however, returning a mapping. You will need to avoid deriving from AccessControls.Role.RoleManager, however, or at least suppress / override the local roles tab for your objects; otherwise, your users might shadow your callable with a normal dict (by calling 'manage_addLocalRole', 'manage_setLocalRoles', or 'manage_delLocalRoles'). Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC7Xhh+gerLs4ltQ4RAhWSAJ9GWaLKq3aOu5drxrxwbXa6DfRHCgCgxYTx 0DF7ppFXXa86q9/AGte25ws= =tSd+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 2.8.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michael nt milne wrote: > Does anyone know if Zope 2.8.0 works with any of the CMF 1.4 versions? You probably want to run with the head of the 1.4 branch: there has been at least one 2.8-compatibility fix checked in since CMF 1.4.8 was released. It is possible that somebody may release a 1.4.9 version (but it won't likely be me). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC6sVg+gerLs4ltQ4RAgQTAJ9WFo/KhnrHHNpq0YYIkYXGBv4R7wCfbsvT 9SOhNxVsL+hcgaS2h481wek= =2KpF -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Getting a methods parent (in a product)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: > > On 23 Jul 2005, at 16:12, Peter Bengtsson wrote: > >>> from Acquisition import aq_inner, aq_parent >>> >>> parent = aq_parent(aq_inner(self)) >>> >>> This will return the true container the instance is set in, not just >>> the acquisition parent. >>> >>> >> What's so bad about >> parent = self.aq_parent > > > Two things: > > - simply using aq_parent does not guarantee giving you the real > containment parent. Depending on the path used to access the object it > could be something different from the true containment parent. That's > the power of acquisition... Which is why the 'aq_inner()' call is in there: it strips away non-contaiment wrappers. > - direct attribute access like that makes me feel dirty. I prefer the > true object-oriented style where you use methods to get at stuff. The actual issue is that attribute access will break if you have an unwrapped object; 'aq_parent(foo)' will return 'None' in that case. (A tiny nit, 'aq_parent()' and the related 'aq_base()' and 'aq_inner()' are module-scope functions, rather than methods). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5EZx+gerLs4ltQ4RAk9+AKCsb9wg7edRq4HfFcHn/FwBvpSmCwCeK8Ke zt8foauYT7v9DRf2TYbqMjE= =eU4v -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZCTextIndex - Collector Item #505?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan wrote: > I have encountered an unusual situation which I believe may be related > to collector item #505 (http://www.zope.org/Collectors/Zope/505 - > ZCTextUndex should not hold a reference to a lexicon). > > Prior to performing a ZCatalog update I cleared the catalog (using the > clear catalog option under the Advanced tab of the ZMI); then, to clear > out the Lexicon, I deleted the Lexicon and created a new Lexicon (id of > both was 'Lexicon'). > > I then added about 805,000 records to the ZCatalog (which went smoothly) > and tested catalog searches - all went well, including globbing > searches, 'and', 'and not' searches. > > The previous Lexicon had 764,410 word entries. The current Lexicon has > 0 word entries. > > The ZCatalog and ZCTextIndex appear to be working ok, so I am guessing > that somehow the ZCTextIndex is using a 'hidden/old' version of the > Lexicon (not the newly created version) - which is very strange, as the > .fs file was packed prior to the update (so any old versions should have > been deleted). > > This activity was all performed on a linux server running zope 2.6.1 > > Finally, the questions: > > 1) Can ZCTextIndex really be using the some other version of the Lexicon > (which I can not access via the ZMI)? Yes, it can. The ZCTextIndex holds an attribute, 'index', which is an instance of either OkapiIndex or CosineIndex. That subobject also holds a reference to the lexicon, which is the reason for the collector follow-up: = Comment - Entry #2 by Caseman on Aug 14, 2002 5:45 pm Partial fix in place. I still need to resolve the deeper reference held in the actual index object that ZCTextIndex delegates to (more fun and games) > 2) Was Collector Item #505 ever fixed (I can not find a reference to > issue #505 in any of the zope change logs)? No, it has not been fixed. The workaround in your case is to delete the entire ZCTextIndex, re-add it, and re-index your content. You might be able to revivify the current lexicon by opening the database yourself, but the risk / reward ratio is pretty steep, compared to just recreating the index. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC3nIO+gerLs4ltQ4RAsPKAJ4woaBODws9bZeoZ3AklTrrL/w1FgCfVhmb spNBGhNwM8QfAWeAd7LySQI= =nwRs -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZTUtils.Iterator value in ZPT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Pratt wrote: > Hi Chris. Thanks for your reply. > > My understanding (which may be flawed) is that ZTUtils iterator provides > values of a sequence as you iterate over them with a repeat statement. > I believe what I am trying to do is sensible. I have looked at the api > and can't seem to get the right magic using the methods provided. > Tabindex for forms keeps track of tab position so when you use tab key > it moves the cursor to next field tabindex in form . So if I have 5 > input fields from top to bottom, I want to define an iterator object, > and obtain the next number in the iterator when zpt does its thing to > create the form so that I would have a tabindex starting at 1 and next > field value would be 2, then 3 etc. > > A range by itself doesn't do the trick since it provides all values to > the variable where I am looking only for a single number incremented to > the next value. - From $ZOPE/lib/python/ZTUtils/Iterator: __doc__='''Iterator class Unlike the builtin iterators of Python 2.2+, these classes are designed to maintain information about the state of an iteration. The Iterator() function accepts either a sequence or a Python iterator. The next() method fetches the next item, and returns true if it succeeds. $Id: Iterator.py,v 1.9.42.2 2003/11/04 19:27:43 evan Exp $''' Note that last sentence, which explains why you are seeing the '1' value everywere. 'tal:repeat' over a range should get you what you want; I don't think you *need* an iterator for your use case. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC3lB++gerLs4ltQ4RAuvSAJwPRCNefT9753fli0xOL7EEnRRHgwCggT/C M3ysckA7tZJZkZ0I10xgkLI= =jzat -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: How to upload a file and save it in a physical path
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Remy Pinsonnault wrote: > Maybe it is a basic question but how can I upload a file and save it > anywhere on the server's hard drive? I know how to upload a file to > zope's database but not how to save it locally... > > Anyone can help please? You might check out Chris McDonough's "Blob" product: http://plope.com/software/blob/ Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC2Efy+gerLs4ltQ4RApRLAJ0QLSrEoBJ9t5R27T33WU4nJpNJlwCgn7SO Xt2ypnl1QmcR/O+7wDet3hU= =Uh5l -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: XUF and Postgres
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tino Wildenhain wrote: > Am Freitag, den 15.07.2005, 16:25 +1000 schrieb Andrew Milton: > >>+---[ Tino Wildenhain ]-- >>| Am Donnerstag, den 14.07.2005, 12:46 -0300 schrieb David Pratt: >>| > I am looking at using the ExUserFolder with Postgres. Any users of >>| > this combination that could share feedback (positive or negative) on >>| > how this solution is working for them. Many thanks. >>| >>| I use it but in a very hacked up form because I need inline auth >>| and I wanted sha1 hash instead of the default crypt. >> >>BTW, the 0.50.x branch has pluggable crypt types.. >> >>crypt, md5, sha are part of the crypts you can pick.. or you can write your >>own in about 30 seconds if you need something else. >> > > Well this sha1 patch wasnt the real hard work ;-) > > Inline auth was the real nut to crack. And the fact XUF returns HTML > instead of using appropriate exceptions add to the complexity :-) > > I hope PAS will fill the gap although it isnt yet ready for prime time. I'm interested to know what you find its shortcomings to be. I know it is in use in production on some fairly large sites (dozens of content managers, hundreds of thousands of content objects, etc.). Tres, - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC1/30+gerLs4ltQ4RAjAyAKCdb+wAFkqDZ6TP3MfuHIih5ecXkQCg0nV3 SEuQNSdYcaL9TxbhMN9Vl8o= =pLki -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Versioned connectors from ZODB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Peters wrote: > [Etienne Labuschagne] > >>I did get the versioned connections to work (so far), BUT, I will >>definately take your word on it and seek another solution :) > > If that works for you, don't let nay-sayers scare you away. I don't > think there are any reports of version bugs open in the Zope collector > at present -- but that could just mean that everyone stays away from > them now. The community has grown averse to using versions because they interact poorly with content catalogs (by locking the individual BTree buckets in the catalog's indexes). If Etienne's need doesn't involve touching the catalog, or if he can affort to do catalog-munging updates only within a version, then versions will work as designed. They are still a nice way to experiment with customizing ZPT, etc. (which won't typically touch the catalog). Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC1IRT+gerLs4ltQ4RAqSBAKCGAwmk5l1mCTIDGC1ld2VMDj1ePgCeJwcF BCsoIDBmP1jKKldsufDvR3c= =pyA/ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Versioned connectors from ZODB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Etienne Labuschagne wrote: > On 7/11/05, Florent Guillaume <[EMAIL PROTECTED]> wrote: > >>ZODB versions are deprecated, unsupported, buggy and hard to use. Don't >>use them. >> >>Florent > > > And as I understand, so are temporary connections too. That leaves me > with getting a "normal" ZODB connection from the pool which I don't > want to do. > > I really need a "temporary" connection that I can discard. This > connection can have a much smaller cache than the normal connections > as it makes very little difference in the speed of data loading. > Second prize is a connection that will only be used by a specific > process and never used for other processes. Versions solves this for > me. > > I can check out a connection and keep it aside only for data loading. > But this means that I waste precious memory on a connection that does > not really need to cache the amount of objects that the other > connections should. In my case, this translates to using 1GB of RAM > on one connection that gets used once a day. > > Please believe me that I really need a "special" connection. For > those who really want to know why, below is an attempt at an > explanation why: > > In the application that I have written, I want to be able to get > connections that are not part of the normal connection pool. Once my > process is finished, I can store these connections for later use, or > discard them. Currently my application uses the normal connections in > the pool. The problem is that this process "contaminates" the cache > of the connections with objects that are not used in "normal" client > application use (I use a thick client). This means that the client > applications are extremely slow the next day and that it takes a long > time before the cache contains the often used objects again. > >>From there the reason why I DON'T want to use the connections for my > once a day data loading process. > > My ZODB contains about 700`000 objects. A connection caches about > 60`000 objects to give satisfactory client speed. To start up the > client before the cache is initialized, takes about 5 minutes. Once > the cache is populated, it takes a client seconds to start up. Data > loading invalidates all of this, but is worse than a "clean" cache in > that it takes long for the "new" objects in the cache to be flushed > and replaced by the often used objects again. Data loading does not > need such a big cache since it mostly loads data into the ZODB. > Unfortunately, the loaded objects also end up in the cache. > > Why do I need so many objects in the cache? Some searches cannot be > done with a mere ZCatalog search and have to run through a subset of > all the objects. These tend to fit nicely in the cache. Your query would be better served on the zodb-dev list, where Tim Peters hangs out; he can probably explain how to get what you want without guessing. If I had to guess, I would suggest constructing your connection programmatically, where you can specify the object cache size for instance, and then closing / discarding the connection when you are done. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC0p6H+gerLs4ltQ4RAkxMAKCYMC7HKTddmCgog+yip3GZd/AChgCgr0k8 APQ337C2zCxBQBOYIuWFKNU= =MVtV -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZPT with Zope 3 queries - repeat over contained items
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Vine wrote: > Hello, > > Re-reading this, I realised I'd not provided much > information on the "repeat" problem, so I'm filling in > some gaps. > > This works as I would expect: > > > > Number > > > # > > > > i.e., if it is repeating over a property folder with > four objects in it, it produces a table headed > "Number" and with 4 further rows with numbers 1, 2, 3, > and 4 in. > > However, as soon as I add any meat to it, e.g.: > > > > Number > Name > > > # > Name > > > > I get an error which shows up on the error log as: > > "TypeError: tuple indices must be integers" Likely, 'context' is a dict, or a workalike, whose 'items' method returns a sequence of tuples. Therefore, during the tal:repeat, 'item' is a tuple, (key, value). Try using 'values' instead of 'items'. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCynuh+gerLs4ltQ4RAl5uAKCRzRzV+g1M8gcbV07jSNfCQbWbhgCg0nL4 2POVN4oUQepYUIQ+pR1IPRU= =fBFx -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: MaildropHost:what is transitional email
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 robert rottermann wrote: > what is a transaction in the context of MaildropHost. > How does it affekt an email? The "transaction" here is the normal Zope / ZODB transaction, which ensures that writes to the ZODB (and any transaction-aware RDBMS) are aborted if the request raises an exception. The "transaction-aware" feature of MaildropHost is that it holds off sending the e-mail until the transaction is committed, which ensures that you don't get a premature e-mail (in the case that the transaction is aborted), or a repeated one (if the request is retried due to ConflictError). Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCxsIx+gerLs4ltQ4RAtvLAJ9yEe2a9UJU6SZxhVr78Oq9K56RTACguWB2 6A3bBK+9gNONGrXIwTIT54s= =85Om -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: External editor for ZMI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ken wood wrote: > I've been following this discussion with some interest as I have never > been able to get ExternalEditor to work for me. Now, that said, I have > it confiured enough that it will present me with an editor and a file > (WinWord) by clicking on the pencil. But I am confused on two points: > 1.) When Word opens a document it presents me with text without any > formatting. Also gives me metadata, URL, cookie info etc. Is this how it > is supposed to work? > 2.) When I save the work, I don't know where is goes or how to get it > back to my plone site. > Just seems that the documentation gets vague on these issues. > Looking for some enlightenment. It sounds as though your browser has invoked WinWord as the "helper" for the ExternalEditor "stub" file, which has the data you describe in it. You want to associate the EE helper application ('zopeedit.py') with that mimetype, 'application/x-zope-edit'. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCwk74+gerLs4ltQ4RAsSQAJ4iaUoBp3SAGgwenLigJ+g4eADFTgCggAvJ GM8sBxHOL0t99kbH65J07bU= =Cgxm -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: WebDAV
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luiz Fernando B. Ribeiro wrote: > I'm using webdav to update to access files from Dreamweaver and it is > working fine but when I try to use windows web folders feature it fails > with the following error in zope log. It seems that windows is > requesting the PROPFIND before authenticating. Any clues? > > Zope Version (Zope 2.7.5-final, python 2.3.5, linux2) > Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian > 1:3.3.5-12)] > System Platform linux2 > > Time 2005/06/27 15:05:48.973 GMT-3 > User Name (User Id) Anonymous User (None) > Request URL http://my.server/clientes/PROPFIND > Exception Type Unauthorized > Exception Value You are not authorized to access this > resource. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 92, in publish > * Module ZPublisher.BaseRequest, line 449, in traverse > * Module ZPublisher.HTTPResponse, line 680, in unauthorized > > Unauthorized: You are not authorized to access this > resource. > > Thanks in advance, The Windows WebFolder implementation has been non-compliant with the DAV spec from the beginning, and further broken in various ways in each version. The usual recommendation is to buy an alternative, e.g. Enfold Systems' PloneDesktop, or WebDrive. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCwQL2+gerLs4ltQ4RAnrIAJ0dZsPX9iTFm10B4eEnqEkWWPY7EACfc7FK Ne1wmNpjfv+dVcp+9U2u0Lo= =HYFw -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Batch folder creation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Poltorak wrote: > Hi David, > > I'm used to using the term 'file'. I guess it isn't appropriate in this > case since I'm not actually handling a file but a Zope File object. I'm > not sure where to look to see how Python handles this... File objects allow you to get the data as a Python string via its 'data' attribute. Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCvBGl+gerLs4ltQ4RAu49AKCTfyhSCth3lDOavdujejpaX+w5vwCffMoM fr5lgTysol92DqtZ671w1hA= =w7TK -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive sender for this address)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph wrote: > On Tuesday 21 June 2005 19:16, Dieter Maurer - [EMAIL PROTECTED] wrote: > >>Ralph wrote at 2005-6-20 22:36 +0200: >> >>The easiest way would be to use a different browser ;-) >> >>I think IE can be customized to use a different timeout (I do not >>know as I use Mozilla -- by default without timeout). > > No that's not possible with HTTP1.0. The problem is, why IE is using HTTP1.0? > With HTTP1.1 its possible to change keepalive-timeout. 'keepalive' only refers to the lenght of time that the browser-webserver connection stays open between the completion of one request and the beginning of another to the same server. The behavior we are discussing here is that IE (or sometimes Apache in the middle) is configured to time out a single request after a period of time; Mozilla and derived browsers don't do that by default. Tres - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCuIaS+gerLs4ltQ4RAqT2AJ9RHuKwRMLVLI8IIjGtgpybGGX6OQCgkLEP s0e0piS5ucm+wWYBOkL/ihY= =1O4R -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Factory-based Type Information
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Denis Mishunoff wrote: > I have a problem with my product. > I use Zope 2.7.5 and Plone 2.0.5. > > I need to create the copy of Document content-type on my product's > install the same way as it is done in portal_types via > "Factory-based Type Information" option of dropdown. > I just need to have the copy of it and to alter some fields. > > Please advise. Thank you. This is really a CMF question ([EMAIL PROTECTED] is the more appropriate list). You can create a FactoryTypeInformation instance, using the "CMFDefault.Document" template, but giving it a different ID; you can then modify the settings as you widh. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtDhY+gerLs4ltQ4RAupOAKCI1dhQq6i6O2Abq6Hao9H6hUaOMQCfdKYr NYvbEUc/daREPrhNL96zryA= =Skod -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Form Variables
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J Cameron Cooper wrote: > David Ayres wrote: > >> I've been working around this issue for literally years and finally >> have the >> time to seek a real solution. :) I can't find much information, so I'm >> assuming I'm just taking the wrong approach. >> >> Whenever a form is posted, the text fields always show up in the >> request.form, however any other type of form element that has not been >> given >> a value does not show up. None of the fields have the ignore_empty >> attribute. Besides using the missing= attribute, what other options are >> there? >> >> Most of my forms have optional fields and this is especially painful when >> trying to use ZSQL Methods or when creating multipage forms that >> refer to earlier form values. > > The specifications for forms only require certain "successful" controls > to be submitted, and most browsers work this way. This is specially > noticable with checkboxes, which when on are in the request and absent > when off. See: > > http://www.w3.org/TR/REC-html40/interact/forms.html#successful-controls > > Frankly, I consider this behavior bizarre and unhelpful, but there's not > much to be done about it protocol-side. I would imagine there's a > hstorical reason. I would be willing to bet (a small amount ;) that the rationale was to do with conserving bandwidth: a classic "penny wise, pound foolish" error. Because "hidden" form elements are always submitted, Zope offers a pattern for dealing with this, most often used with checkboxes: ... ... This pattern guarantees that the field will be present in the REQUEST.form dict: the publisher uses the '...:default' value only if no other value for that name is present, and strips of the ':default' suffix during field conversion. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsG8w+gerLs4ltQ4RAgtdAKDNsfY13APRfMb/IE1YdiOeuFj/ygCeOm59 RRem3eY4OAkiw34Oe+TPjqM= =ZXs+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Transferring Zope Settings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jlegris wrote: > Hello All, > > I need to transfer Plone/Zope settings from a test instance to a live > instance of the Zope server. Aside from transferring the entire Data.fs file > or manually copying scripts and replicating configuration settings, is there > a simple way to do this? > > Any advice would be greatly appreciated, CMF 1.5 introduced a new 'portal_setup' tool which is designed to export such configurations in an extensible way: http://cvs.zope.org/CMF/CMFSetup Unfortunately, I don't believe any shipping version of Plone is compatible with CMF 1.5, and the tool as configured expects a few things which break in CMF 1.4. You might be able to hack around that breakage, however. Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCru/U+gerLs4ltQ4RAuV5AJ949X00mtcfMAFrEBciN5+HKK8xQACePo5F eB0LgsSYXlaZqgqdVj7+iXs= =IlQ/ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [ANN] Zope 2.8.0 released
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fred Drake wrote: > On 6/11/05, Andreas Jung <[EMAIL PROTECTED]> wrote: > >> Jim Fulton, Christian Theune, Tim Peters, Fred Drake Jr., Marc Hammond, >>Sidnei da Silva, Tres Seaver, Stefan Holek, Chris McDonough, > > > Don't forget that Andreas Jung character! This wouldn't have happened > without his persistence and dedication. > > Thanks, Andreas! Amen! Amen! Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCq3WS+gerLs4ltQ4RAixTAKC3yKPBIBEQEsxm6oEy9IPs4D3jdACfaJuZ ESeRs7Z4XT6aB5fwhaZV+Jo= =jlNd -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: aggreagating and merging logs under Zope 2.7.X
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: > Is there any way to configure multi-headed Zopes running on different > machines but sharing the same ZEO to log to the same file (in time order > would also be nice...)? zope.conf supports logging to syslog, which would be the sanest way to do that, assuming that you can run the syslog daemon; otherwise, you have to work out the "multiple concurrent writers in the same file across NFS" problem, which would probably involve more research than I imagine you are contemplating. Tres. - -- ======= Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqgJL+gerLs4ltQ4RArqRAJ9TkXM0EG2lcI3uKOIVFGps7ULUGgCeMVfA N4hy/9kViG9e5BDzBbj6hbg= =5dA5 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: SQL query manage_test throws KeyError vith value 'query'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: > Failure occurs with > Zope 2.7.6 final > Python 2.3.5 or Phython 2.4.1 > MySQLdb 1.2.1 gamma or MySQLdb 1.1.1 final > ZMySQLDA 2.08 or ZMYSQLDA 2.09 > Failure does not occur with > Zope 2.6.4 > python 2.3.5 > MySQLdb 1.1.1 final > ZMySQLDA 2.08 > > The traceback is: > > Time 2005/06/07 16:47:44.967 GMT-7 > User Name (User Id) allison (allison) > Request URL http://dev.agilemind.com/draPlay/webpagetest/manage_test > Exception Type KeyError > Exception Value 'query' > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Shared.DC.ZRDB.DA, line 337, in manage_test > * Module DocumentTemplate.DT_String, line 474, in __call__ > * Module DocumentTemplate.DT_In, line 602, in renderwb > * Module DocumentTemplate.DT_Var, line 219, in render > > KeyError: 'query' > > Failure is highly repeatable and happens for queries of the form > > select * from table > > The REQUEST shows: > > form > SUBMIT 'Submit Query' > cookies > tree-s 'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q' > __ac_name 'allison' > lazy items > SESSION > > other > n_ 5 > > REQUEST_METHOD'GET' > HTTP_KEEP_ALIVE'300' > SERVER_PROTOCOL'HTTP/1.1' > QUERY_STRING'SUBMIT=Submit+Query' > > Somewhere between manage_testForm and manage_test something fails, > possibly as the query goes off to be rendered through the DocumentTemplate > mechanism. Right at the moment, I'm stuck. Advice, clues appreciated. Thanks for the detailed report. I can reproduce the bug, which is not related to MySQL. Please try the attached patch: if it works for you, please submit a collector issue, attaching the patch, at: http://www.zope.org/Collectors/Zope Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCpva0+gerLs4ltQ4RAl7/AJ93qN07EWszJFiRwi+hYgVctEtuBQCgrDwc +L+86GkTxdmy+l9ql9pHr7A= =pduQ -END PGP SIGNATURE- --- lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml 2005-05-06 10:33:25.0 -0400 +++ lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml.patched 2005-06-08 09:40:52.045347424 -0400 @@ -3,7 +3,7 @@ - + (Previous results) @@ -22,7 +22,8 @@ %(else no_table)[%(else)] - + + (Next results) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Z SQL test in the ZMI aborts on key error (query keyerror Solution)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen Schmidt wrote: > Found it. > Edit lib/python/Shared/DC/dtml/customDefaultReport.dtml > Replace what is there with the code below (or compare and change) Allen, your verstion "drops the query on the floor", i.e., it fixes the KeyError, but then makes it impossible to pass the querystring through to the next batch. > This is from our 2.7.5 install. > > > > > > > > href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-previous-sequence-start-number;"> > > (Previous results) > > > > > %(else no_table)[ >%(heading)s > %(else)] > > > > %(row)s > > > > %(else no_table)[%(else)] > > > href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-next-sequence-start-number;"> > > (Next results) > > > > > > > > There was no data matching this &dtml-title_or_id; query. > > > - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCpvow+gerLs4ltQ4RAqJCAKCRYvyvas52jGLQc3voUFPl8EBHvACfZWbV NrxkyNLv6WZjwmEfLWX3Cus= =o7Jq -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Finding an object in a folder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Winkler wrote: > On Fri, May 27, 2005 at 08:51:58AM +0100, Chris Withers wrote: > >>Paul Winkler wrote: >> >> >>>marker = () >>>if getattr(some_object, marker) is not marker: >> >>For good measure, I wonder if that should be a [], no a ()? > > > What's wrong with a tuple? There's no reason to mutate the marker. In Python, there is only empty tuple object, while each empty list is a distinct object. For use as a marker, the empty list can't return a false positive, while the empty tuple can. Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClw9J+gerLs4ltQ4RAtyCAJ4y+h+rDtSmo+Sa2n5K+h87z/24DwCgwBFY 9Wrhk9aGMBUPm1DxsOpewec= =O5re -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: LDAPUserFolder at Zope root
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J Cameron Cooper wrote: > Oscar Figueiredo wrote: > >> this might be trivial but I just can't find a way to do it. How does one >> replace the initial UserFolder at Zope root with a LDAPUSerFolder ? >> I tried the dummy way : delete the acl_users with an intent to >> instanciate a >> LDAPUSerFolder afterwards but that locked me out in a way I could do >> nothing >> but recreate a new Zope instance... skip-authentication-checking in >> etc/zope.conf didn't help... > > > Do not do that. You don't want to get locked out of your Zope because of > LDAP problems. > > If you must have several other folders share a user folder other than > the default, create a folder that contains everything. Unless you are actively developing a new user folder implementation, the risk of being locked out is not too bad: "stable" user folders always emulate the "stock" version's handling of the EmergencyUser, which gives you a way to log in and fix / delete a broken '/acl_users'. If you *are* working on a new user folder implementation, then 'bin/zopectl debug' is your friend: $ bin/zopectl debug ... >>> app._delObject('acl_users') >>> del app.__ac_groups >>> get_transaction().commit() # Z27, deprecated in Z28 Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClnju+gerLs4ltQ4RAoc0AJ0b10k04CEkonsKr4tEtOj0jcDJ1wCgqSn2 Ynw8lGPwGawmTZlWTxoB6Rs= =Fvbi -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Open Source Announcement Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Pozmanter wrote: > Hey all, > >Where is the best place to host/announce a new open source zope > product (or zope related app)? > I'm used to using sf, but there a prefered site or mechanism? A post to zope-announce@zope.org would be one likely place; another would be to create and submit for review a NewsItem from within your account on http://www.zope.org/; once approved, it would appear on the main page "News" portlet, and be picked up by lots of RSS aggregators. Tres. - -- ======= Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClS2M+gerLs4ltQ4RApoQAJwPfNJryLScjo6FwyY3PAzoffVZQACfa/1S jcWgiheVLgpLCjMVld6MJJU= =TPEp -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Can ZPT form call a url?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip Hutchings wrote: >>The easiest way it to perform a redirect. >> >>Unfortunately, HTTP allows automatic redirects only for "GET" requests. >>But, if you can live with "GET", then it is very easy. > > > Fortunately, most web browsers are lax and let you do this. Safari is > not, but the warnings are a bit obscure to most users, as a 302 > response technically means to repost the data to a new URL - hence > Safari's 'do you want to resend this data' question. > > A 303 response should be used to redirect a POST request. The user is > still supposed to be asked if they want to follow the redirect, but I > bet most browsers won't, as the specs are ambiguous. HTTP 1.1 isn't ambiguous about 303: it defines that response code for exactly that usecase[1]: 10.3.4 303 See Other The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached, but the response to the second (redirected) request might be cacheable. The different URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s). Note: Many pre-HTTP/1.1 user agents do not understand the 303 status. When interoperability with such clients is a concern, the 302 status code may be used instead, since most user agents react to a 302 response as described here for 303. [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClGQV+gerLs4ltQ4RAoV5AJ9zhh7KQlMCu7CyAqPC/tX0BGbu5gCfdpZD gLvgYuldYpCuugugzYx99Kg= =Hw6n -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZSyncer and ZEO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: > Does ZSyncer have any problem with Zope/ZEO systems? I have some > anecdotal evidence of problems as we migrate to a multiheaded Zope/ZEO > systems architecture. > > Is there any difficult using ZSyncer between a Zope and a Zope/ZEO > combination. There shouldn't be any issues there: ZSyncer runs at the "application" level, not the "database" level. > Are there problems syncing between Zope 2.6.X and > Zope 2.7.X systems? *That* might be problematic, although I can't think of a case offhand. > All the systems run ZSyncer 0.5.1. Tres. - -- ======= Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClGJy+gerLs4ltQ4RAqZzAKCC1aj/6x9z5DEBcwtoY66dL33DqACgq8CY AmaeKQ6cb8R0hDyqIaLFfUw= =Hyq6 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Keyword index search
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garito wrote: > Dieter Maurer escribió: > >> Garito wrote at 2005-5-20 12:41 +0200: >> >> >>> ... >>> I have a ZCatalog object with a keywordindex called keywords >>> >>> I would like to search some objects with keywords ['k1', 'k2', k3', >>> 'k4'] for that I use: >>> >>> return context.catalog({'keywords': {'query': ['k1', 'k2', k3', >>> 'k4'], 'operator': 'and'}}) >>> >>> but these query returns objects with keyword = ['k2', 'k3'] (for me >>> incorrect, I would like to find objects with *all* keywords >>> >>> How can I make these kind of querys? >>> >> >> >> A long standing bug in "KeywordIndex"... >> >> >> Maybe, you give my "Managable KeywordIndex" a try >> (part of "ManagableIndex"). >> >> I cannot promiss you that >> "ManagableIndex" is free of bugs but I definitely can >> promiss you that a bug resulting in wrong search results >> is fixed much much more quickly than in the Zope core :-) >> >> >> <http://www.dieter.handshake.de/pyprojects/zope> >> >> >> >> > Hi Dieter! > I can't understand the lack of concern you talk about unresolved bugs in > Zope > It seems Zope is not a serious tool. Imagine you want to buy a car but > the seller says: in these model there are a bug on the brake system but > I you put these extra no problem > > How can I convince my customers to use Zope with these kind of > searchable information? The bug you encountered is sufficiently an "edge case" that it has not gotten any attention from the people who could fix it. Agitating for it on the list is likely to be less productive than contributing: - Write one or more unit tests which demonstrates the failure (e.g., they fail with the current implementation). - Implement the fix, such that the new tests pass without causing any others to fail. - Submit the patch, including both the test and the patched implementation, as an attachment to the collector issue Andreas pointed to: http://www.zope.org/Collectors/Zope/889 Such bug reports get quicker attention, because: - they demand less effort from the person with commit access to understand the problem (even without the fix, writing the test case would be valuable here). - they show that the bug matters enough to somebody to have invested the effort. I have checked in a number of patches from Dieter in this way, which means that Dieter is contributing to the "core" Zope code, even without checkin access (which Dieter doesn't want to obtain). Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCkMrZ+gerLs4ltQ4RAl14AJ4xmHMk6PKCJrTv3hJQ/xeCOqNYsgCglSiP KSHy7IctCFqHBoOmxwSTMws= =HCJO -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Modifying __bases__
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Pozmanter wrote: > Out of curiosity, I've noticed the word "evil" attached to patching > of various and monkey kinds. Not "bad", or "unwise", but "evil", > implying a morality associated with the act. The phrase encodes a bunch of folklore and geek sentiments in a humourous ("half in fun but full earnest") meme: - Monkey patching can invalidate documented APIs and behavior; in this sense, a monkey patch is "taking out a loan" which will be repaid later, either by the original perpetrator or by some other poor schmuck ("Vinny's crowbar *hurts*.") - A monkey patch is often a pure expedience: "Rather than redo *my* software to correct a problem *I* injected, I'll just bash the base software to work around it." In this mode, it is a sign of poor design or quality in the perpetrator's code. - Sometimes, a monkey patch is the only way to address a particular issue without updating the underlying software (most "hotfixes" for security issues involve monkey patching). In this mode, the patch is a sign that the underlying software has a bug, hard-wired some policy that it shouldn't have, or is otherwise defective. > What is morally wrong with modifying live objects in a dynamic language > to achieve desired functionality? > The idea is "I want to modify the zope core in a way that survives > version to version, yet does not > impose a specific use case on all zope users". In general, the use case is fine; we would prefer to address it by making the core software more flexible / configurable, such that it is not necessary to monkey patch. Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCj1B9+gerLs4ltQ4RAmWjAJ97Qvr2xnv5qsCRYC7it4UtHdxvewCg2Zu9 ADCK48Ly7ZMUWbV8E6wS6Q0= =3SS5 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Seeking advice on Zope implementation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pythonic wrote: > Many thanks for all the suggestions. > > > >>4. Zope 2.7 / 3 ? > > > > Looks like lack of Zope3 documentation forcing us to start with Zope 2.7 . > But we will certainly try out Zope3 after we finish implementation on Zope2. There are a couple of very good Zope3 books available already: http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book http://worldcookery.com/ > I am not looking Zope as xslt engine but then then the end user will > have better chance of customizing the look. Not yet decided an > server/client side > transform though. Paul Everitt's 'deliverance' is a factoring of "content delivery" separated from "content management": http://codespeak.net/svn/z3/deliverance/trunk/INSTALL.txt Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCjK+s+gerLs4ltQ4RAtpiAJ9R1bb1HlR65eNZ11MedUGZ2iXnVACbBrQY 2LIQW2LPCUBMAWCsTXmDOzc= =ER5P -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: the joy of hacking ZPublisher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Abramson wrote: > In my Zope 2.7 Product, I'm trying to implement a special folder, which > intercepts the publishing call to any subobject and wraps the entire > call in another. > > A concrete example: where the default action would be to traverse > /MyProduct/SpecialFolder/something, and publish the attr 'something' > from SpecialFolder, I want this to happen instead: > > doSomethingBeforeCallingTheRequestedObj() > try: > return mapply( something, blahblah...) > finally: > doSomethingAfterCallingTheRequestedObj() > > Why? I need to do stuff to the REQUEST before the object is called (this > part wasn't difficult), and then do something *after* it's called - no > matter what the results were. But only for publishables that live in or > beneath the Special Folder. Sounds like you want what AccessRules provide, which is a way to provide a configurable hook into the publishing traversal process. The following thread explains the rationale for that hook, from before it was included in Zope proper: http://mail.zope.org/pipermail/zope-dev/1999-December/002667.html > In fact I have something working, but one big problem - it breaks > management screens in a bad way. The implementation is pasted below. > Is there some much simpler way to accomplish this behavior? And am I > short-circuiting security machinery in some dangerous way? Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCi5L0+gerLs4ltQ4RAvexAJ9jh3QN7Nk5HN+zjdjQzUeshX4NAwCfQgEF fhJpTReSx95BQ4aR3KG69IM= =LsRY -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Zope 3 for Debian?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Peters wrote: > [Tres Seaver] > >>Assuming a standard build environment (make, gcc, etc.), >>'zlib' is the only one which typically bites me on a new >>machine -- Python will build in its absence, but ZODB won't. > > > What's that about? The only part of ZODB that uses zlib/gzip is the > repozo.py backup script. Hmm, I don't know; I was basing it on a memory of building out a ZEO storage server on a "bare bones" Unix box, and having something during the build / startup phase barf, complaining about the absence of zlib. Perhaps I conflated two memories. I'm pretty sure that *something* in the Zope codebase requires zlib, but I take Tim's word for it that I wrongly attributed that dependency to ZODB. Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCil+D+gerLs4ltQ4RAns2AJ4nC5hROXP9ym/CZsIFuX93mee6pQCgr7tj 2NVP9Is7R4fjGcygCc0RhPM= =6zJk -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 3 for Debian?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: > > > --On Dienstag, 17. Mai 2005 18:20 Uhr +0100 David Given <[EMAIL PROTECTED]> > wrote: > >> >> (No, I don't want to install Zope 3 manually. It's sufficiently large and >> sufficiently complex that it'd be a dependency nightmare.) >> > > You just need Python 2.3.5 and the Z3 sources. Typing "make" is trivial :-) Assuming a standard build environment (make, gcc, etc.), 'zlib' is the only one which typically bites me on a new machine -- Python will build in its absence, but ZODB won't. If you like, it would be sufficient to install the builddeps of zope2.7 Debian package first: the only bits of Zope3 which depend on anything other than Python will be satisfied by the same packages. Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCilox+gerLs4ltQ4RAnnpAJ4yjW/piR+yZo2kVBDeRhzqfKg6jwCfdMXX poPAe1AUcXJVKPlRvUE3AAo= =jpmU -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: What does Access Content Info. mean for folders?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Dekany wrote: > Maybe I'm just lame, but I can't find a description of the commonly used > Zope permission anywhere. (Isn't it missing from the "Users and > Security" chapter of the Zope book? How I am supposed to manage the site > security if I know everything but the meaning of the concrete > permissions?) > > Mostly, I would like to *know* (as opposed to try-and-guess) what does > "Access contents information" mean. The definitions I have found on the > Net was rather foggy. I guess because the meaning of this permission > depends on the object in question... but is there a summary for the most > commonly used objects at least? Especially, what does it mean for > folders? At the first glance it specifies if I can get a contained > object, but then I have found that somehow it doesn't apply to the > contained objects that are folders, because I can always get those. Is > this the rule? It controls the ability to list the contents, but not to traverse to them: Zope2 doesn't enforce access on (publishing) traversal, except at the ery end of the chain, which is a feature in spite of Chris Withers' insistence to the contrary. The authoritative place to look would be in the source, particularly in the OFS package: SimpleItem.py contains the base classes for most Zope2 objects. ObjectManger.py contains the base classes for all Zope2 containers. Folder.py contains the Folder class, which is the commonly-used container. Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCiMw5+gerLs4ltQ4RAoxUAKCkzcMWmamtZPvg/xVJoi+ML7qq4wCaA8Sl xXNLgPJoR7BVjQAdPx/Yn04= =fT9+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: UserFolder problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phil Beardmore wrote: > Hi All, hope you can help... I have a problem trying to use the > LDAPUserFolder product. Basically I have a site named www.myname.com, > and the site is Plone powered. I have a normal UserFolder at the top > level folder which holds the members who have manager roles etc. On the > site I have a folder called "Staff" and a folder called students. > > Now for LDAP. I have an Ldap server which has a tree called Business, > then under the tree are two more subfolders (called staff and student). > I need to get the staff folder of the site authenticating against the > staff tree in LDAP. So I go into the staff folder, add a LDAPUserFolder > and set the settings up correctly. I then navigate to the staff folder > and make the pages viewable to only members, managers and authenticated > users. Thing is, when I try and view the page I am asked to login, but > it automatically uses the root acl_users folder, and not the one in the > "staff" folder. > > So, the page re-drects you to http://myname.com/login_form which doesnt > work with the LDAP usernames etc, but I know LDAP is definately working > because If I point to http://myname.com/staff/login_form it works. > > Is there any way of setting which userfolder plone looks at? You might look at: http://plope.com/Members/ingeniweb/News_Item.2005-03-31.9048698869 Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCiMt3+gerLs4ltQ4RAhjyAJ9E9AFWc89/6XxsspoFltcE26rjDgCfaaKd fTK7bk3Z3w+K2Pz4aFSI118= =UuSW -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Strage behavior in Scripts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luiz Fernando B. Ribeiro wrote: > Hello, > > I have lost already 2 days in it and can't figure whats wrong. > I'm using PIL to generate barcodes and writen an external method to > handle this. The script runs fine in the console but inside Zope it > raises exceptions in PIL files. I decided to write an external script > and call it with sys.system from the external method but again it raises > exceptions similar to the other but in other files. What can it bee? > > Traceback (most recent call last): > File "/engenho/bin/codigo_barra.py", line 89, in ? > barra.save(arquivo) > File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 1127, in save > preinit() > File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 243, in > preinit > __import__("%sImagePlugin" % m, globals(), locals(), []) > File "/usr/lib/python2.3/site-packages/PIL/GifImagePlugin.py", line > 53, in ? > class GifImageFile(ImageFile.ImageFile): > AttributeError: 'module' object has no attribute 'ImageFile' > > I'm using zope 2.7 from Debian sarge. This is an ancient name-collision problem between PIL and Zope. E.g., see http://mail.python.org/pipermail/image-sig/1999-August/000809.html or http://aspn.activestate.com/ASPN/Mail/Message/zope-list/2290857. Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCg7LK+gerLs4ltQ4RApBcAJ91EYmzDi4mhvvLAseCwF5HNu5r6wCfXKfX zK6dTXoyciaEYj+lfB+85+8= =wJJz -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Can't see new Plone installation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: > > > --On Donnerstag, 12. Mai 2005 10:29 Uhr +0100 Brian Hickey > <[EMAIL PROTECTED]> wrote: > >> Hi all, >> >> Can't seem to figure this one out: >> - Just installed Plone and added a Plone site through the ZMI >> - After the install the redirect to view the Plone site doesn't complete, >> and I get an 'Action Canceled' error in the browser (IE6). However, it >> seems to install fine (a Plone site is created in the Zope root with all >> the usual forms, site error log, cookie crumbler, etc) and I can browse >> through and customise these elements. - If I try to view the Plone site >> (mydomain.com:8080/Plone) either directly in the address bar of the >> browser, or by clicking the View tab of my Plone instance, the browser >> lags for about a minute (this varies), then bombs out with an "Action >> Canceled" or a "Page Cannot be Displayed" error. The same effect occurs > > > You should better use the plone-users mailing lists...you'll find the smart > Plone people there :-) Agreed. Info on those lists is available at http://plone.org/contact. FWIW, the Mark-One eyeball shows that the OP is running a way out-of-date Zope / Python; recent Plone versions are not going to be compatible with it. If you are running a Debian installation, then try installing the zope2.7 package, which will pull in python2.3, as well (I think). Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCg0H8+gerLs4ltQ4RAgLXAKCtU46dexPnW3qXqp1GqUB+7cYD/gCgjfFQ gvQgUyEln7sEigAIe6770go= =wndq -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZODB question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pascal Peregrina wrote: > In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, > to know when the database (Zeo) was last packed ? > > Thanks. Repozo knows this for the underlying FileStorage: http://www.zope.org/Wikis/ZODB/FileStorageBackup AFAIK, there is no wire-protocol-level way to check for it in the ZEOClientStorage. BTW, this question would get better-informed response on the zodb-dev list (which I have CC'ed). Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCggzv+gerLs4ltQ4RAqkUAJ46baO6FeV2mKXpd9CQq7c7pvSSugCcDkU0 OJyFipH9BLTmy1mc31kb1to= =4W8m -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: DreamWeaver files -> ZPTs: How?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Winter wrote: > Is there any way to configure Zope so that a *.htm file newly created in DW, > when uploaded for the first time to Zope, would be created as a ZPT instead > of as a DTML document? > > > > I know you can do it by naming the file in DW with the *.pt extension. But > the trouble with this is, subsequently DreamWeaver doesn't recognize it as > anything that it can edit. > > > > I know you can do this by manually creating an empty ZPT in Zope, then > uploading the already created contents of the same-named .htm file using the > ZMI, but this is clunky and error-prone. Google for 'PUT_factory'. Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCf7ib+gerLs4ltQ4RArmhAKCVCJsycis6ZqRhqaaoHrYksNSonwCfXe0d TSIZFKuQmrpXm0ErCn8v9rQ= =OxwE -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: problem with ZODB
JV Singh wrote: > I am using Gadfly. - the one that comes with Zope... For testing whether it > would work or not... OK, I just created a folder, 'gadfly_test', in a Zope 2.7 site, and added a ZGadflyConnection, 'gadfly', using the 'demo' connection. On its "Test" tab, I executed the following: - Create the table create table EMPLOYEE( emp_id varchar(25) , first_name varchar(25) , last_name varchar(25) , salary integer ) - Add a row with no Unicode: insert into EMPLOYEE( emp_id, first_name, last_name, salary ) values( 'aaa', 'J. Random', 'Hacker', 10) - Add a row with pasted Unicode (note that this is going to get encoded on the way in): insert into EMPLOYEE( emp_id, first_name, last_name, salary ) values( 'bbb', 'Étienne', 'Jones', 10) - Selected all values: select * from EMPLOYEE - Selected the non-unicode value out successfully: select * from EMPLOYEE where first_name='J. Random' - Selected the value out successfully: select * from EMPLOYEE where first_name='Étienne' (the expected row is returned) I would eliminate the possibility of a Gadfly encoding bug by testing the RDBMS you actually want to use (MySQL, PostgreSQL, etc.). If you can reproduce the problem, including the steps you take and the actual SQL you are using, then submit a collector issue: http://www.zope.org/Collectors/Zope Tres. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: problem with ZODB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JV Singh wrote: > I have been a silent member of the list mostly.. There is a slight problem > that needs to be addressed rather urgently... > The thing is that though unicode strings can be input and retrieved into the > database through Zope.. > For example, for the table EMPLOYEE > the query select * from EMPLOYEE where emp_id = 3 (some number) works > but > select * from EMPLOYEE where first_name= 'some unicode string' doesn't > work... > > I'd appreciate some input on this.. First, the Subject: line of your post is misleading: if you are using SQL, then the problem is unrelated to ZODB. You need to verify that whatever underlying RDBMS you are using can support the query, first, using its own query interface. Once you know what the syntax for that looks like, then work out how to make your DTML-based SQL method generate that. Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCf0zq+gerLs4ltQ4RAlnkAJ9UZA86AZFlxijpGpSqdDCbj6Wn1ACgmT42 N0BzBRjBCWDUBGljFNvs6M0= =M+JU -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope stops responding on hpux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > On Sun, 8 May 2005, Samuel Bieri wrote: > >> >> I managed to compile GNU debug 6.1.1 on the hp-ux box. > > > I hope it wasn't too much trouble. You could have gotten it from here: > http://www.hp.com/go/wdb > >> >> ---> here I klick on a tal-obect in zope. Zope freezes. Then I kill > > zope. > >> >> Program received signal SIGQUIT, Quit. >> 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 >> >> (gdb) bt >> # 0 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 >> # 1 0x77d2ba78 in sem_wait () from /usr/lib/librt.2 >> # 2 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 >> # 3 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 >> Previous frame identical to this frame (corrupt stack?) >> (gdb) >> >> Can any experienced zope programmer help me further? >> What does this mean? > > > Looks like a deadlock on a semaphore to me, though I couldn't say where. > > Did you python build pass all of the self tests? > Did you build your python with the posix threads apis (i.e. not DCE > threads)? Good points. In addition, you need to find a way to build Python 2.3.4, at least (2.3.5 would be; that release fixed a GC bug which was known to cause segfaults in Zope. It might be useful to read through the python-dev traffic related to HP-UX, as well, e.g.: http://mail.python.org/pipermail/python-dev/2004-January/thread.html#41607 Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCf0lx+gerLs4ltQ4RAsGIAKClBraMxufi6IlEgwch+KIVkALUYwCfXKUX 8mUUP5hPHcIdusViyWYt9Rk= =T7Yv -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Debugging product init with zopectl?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konrad Rokicki wrote: > Hi all, > I'm new to Zope, getting started with the "minimal" project > (http://www.zope.org/Members/maxm/HowTo/minimal_01). For whatever > reason, minimal doesn't work out of the box. That would be fine except > that when I start Zope with zopectl it reports status as fine and the > process runs, but I don't get any logs generated and I can't connect > to the server. > > But, if I use runzope I can see what's wrong and the server dies immediately: > File "/var/lib/zope/zope-test/Products/minimal/__init__.py", line 8, > in initialize > constructors = ( > AttributeError: manage_addMinimalForm > > My concern isn't this error, which I fixed by importing the function > explicitly. But why did I have to use runzope to see this? Shouldn't > zopectl inform me that the server is completely broken? > > By the way, I'm using a standard Gentoo installation of Zope, and I > haven't changed any options from defaults. > > Could someone please tell me if this is expected behavior? Should I be > using runzope in a screen or something? In "production mode", Zope will start even if a product fails to import; you should see it complain in the logs in this case. In debug mode, it stops and complains. I usually run 'bin/zopectl fg' to do the testing, which forces debug mode on (at least in recent 2.7.x). Tres Seaver. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCe58G+gerLs4ltQ4RAjn1AJ9p8zcaWLN59hJRtSdAUYdw70IuGgCfdbPG 0z07UAIZAmQ7fvizSnl4pco= =9AXs -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: xemacs ftp and scripts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave Whiteley wrote: > On Thu, May 05, 2005 at 01:00:55PM +0200, SER.RI-TIC-Alexis Roda wrote: > >>Dave Whiteley wrote: >> >>>Hello, >>>Firstly, my xemacs did not recognise my Script(Python) files as being >>>Python, and so it does not automatically switch to Python Major Mode. >>> >>>I added the standard shebang "#! /usr/bin/python" to the start of the >>>file which fixed this. However it would be nice if it were to >>>recognise Zope's script preamble. Please could someone point me at a >>>resource to help me configure my Xemacs for this. >> >>xemacs probably relies on file extension to decide the mode. Just rename >>your scripts and add a .py extension (not a good idea, since . is >>meaningful for python) > > > When I have created scripts in the web interface I have just accepted > the defaults, and so I presume that the scripts are buried in the ZDB, > rather than being actual files. Should I give them actual filenames > when I create them? > > >>or add something like (not tested): >> >># Local Variables: >># mode:python >># End: >> > > > > > Thanks, magic! That works. > > Now if I can fix the file type problem You need to persuade Xemacs not to create backup files. In "standard" mode, when you go to save the file, it does something like: - rename the original, giving it a backup suffix - Writes the new file, giving it the original name - (maybe) delete the renamed original That second step is where the DTMDocument is being created. If you can't find a solution to that problem, then you could add an ExternalMethod named 'PUT_factory', and take over control of the choice of object type being created yourself. See the following for hints: http://zwiki.org/HowToCreateZwikiPagesWithPut Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCeiSDGqWXf00rNCgRAoBrAKCOkWO+0bdGAtq0WRBUknudOtdMOwCgkQ+x JqyZNfn1ZE75t8p0zjfG2Bo= =LsuD -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 2.75 tgz distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Hi Tres. Try gunzipping and untarring the tarball at the path I > sent. Not sure what the problem is, but I've had two people complain > that significant files are missing from the tarball, and that was my > take as well, upon opening this file. One was using Winzip and the > other turbozip to decompress. > > http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz > > Hope I'm wrong about this. Here is what I did to test: 8< $ wget http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz - --21:50:42-- http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz => `Zope-2.7.6-final.tgz' Resolving www.zope.org... 63.240.213.171 Connecting to www.zope.org[63.240.213.171]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2,895,957 [application/x-gzip] 100%[>] 2,895,957504.14K/s ETA 00:00 21:50:47 (594.54 KB/s) - `Zope-2.7.6-final.tgz' saved [2,895,957/2,895,957] [/tmp] $ tar xzf Zope-2.7.6-final.tgz [/tmp] $ cd Zope-2.7.6-final [/tmp/Zope-2.7.6-final] $ ./configure --with-python="~/projects/Zope-CVS/bin/python" Using Python interpreter at ~/projects/Zope-CVS/bin/python Next, run make. [/tmp/Zope-2.7.6-final] $ make inplace test "/home/tseaver/projects/Zope-CVS/bin/python" "/tmp/Zope-2.7.6-final/setup.py" \ build - --build-base="/tmp/Zope-2.7.6-final/build-base/python-2.3" - --build-lib="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-lib" - --build-scripts="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-scripts" - --build-temp="/tmp/Zope-2.7.6-final/build-base/python-2.3/build-temp" - -- Ran 2468 tests in 150.258s OK 8< I would guess that your client picked up a borked download; can you try with another browser? Or retry the download? Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCeCyVGqWXf00rNCgRAt+nAKCPLqoxLLtqvN9B5atf7oJILaRd0gCcC7Va ZZQIUJb7T1UvaeM55JgCvb0= =6tEq -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 2.75 tgz distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Er... is something missing from the Zope 2.7.6 tgz on zope.org? > > http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz > > Can someone else confirm that there might be a wee problem? Looks fine from here (Firefox 1.0.2 on Ubuntu Hoary handing off to File-Roller). Also, I just built a sandbox today from the download, using wget. Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCeCNhGqWXf00rNCgRAksUAJ0cbLArHKgogBkcrAVVioelSmaAtQCfSgPB ooPRN/qXIJ+zW+13kzavjjs= =leq1 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZEO and session variables.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: > I am just setting up a multi-headed distributed system with several Zope > heads all communications with a ZEO backend. The zopes can be on the same > machine or on different machines connected through a high speed backbone. > In our system, all zopes are frontended with pound. > > zope1 > | > zope2- ZEO-zope3 > | > zope4 > > We make heavy use of session variables. Normally, with a single Zope > session variables are stored in a temporary folder, but, as such, they are > are not shared between the zope heads. In the multiheaded system, the > session variables need to be shared and therefore must be managed by > ZEO. What is the recommended best practice for this? Richard Jones recently released a SQL-based sessioning implementation: http://www.zope.org/Members/richard/ZSQLSessionDataManager Tres - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCd+nQGqWXf00rNCgRAhRNAJ9uJjs3yUCnmiZzhoei4LxWXJjNRACgmdor DfSToYnCZ7oi/71S9w949XM= =GJlb -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: high loads, more threads, spinning wheels
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Abramson wrote: > Thanks Stefan & Jens... > > >>>if yes, would upping the number of ZODB connections >> >>effectively raise >> >>>the ceiling - e.g. 12 ZODB connections -> 12 threads should perform >>>properly ? Is increasing the number of ZODB cx's >> >>possible, let alone >> >>>advisable? (why the default of 7 - not 6 or 8?) >>> >> >>Upping the number of threads is unlikely to give you better >>performance. The only case where this could make sense is if >>you had something like a highly saturated RDBMS backend, >>tying up your worker threads. >> > > > Well this is *exactly* the issue I'm facing. I need to soften > the impact of this situation if possible, and it's going to be > ZEO in the end, but rolling this out is probably not going to > be possible in the very short term. > > >>But - Zope threads don't operate like you probably expect >>from knowing Apache and similar models. For one, they *never* >>will run in parallel. >>Python employs a global interpreter lock (GIL), so there will >>only be a single thread "working" at all times. What you want >>is to up the number of processes (interpreters) not the >>number of threads. Hence ZEO. >> > > > So far I've done some very off-the-cuff tests upping the > threads/connections to 12/16 and banging on it with jmeter. > The results were favorable in comparison to the default config. > Could this have been a fluke? Nope -- you are network-bound, which is the only scenario where more threads would help. Nearly all production Zope sites are CPU bound, where they probably hurt, rather than help. Stefan is correct, however, about the ease of setting up ZEO. I literally *never* run Zope against a "naked" FileStorage, and I set up *lots* of sandboxen. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCdjVeGqWXf00rNCgRAgVCAJ9sf5aiXEDH+QIVBUY6rgy23FVfdACfTBBZ BJlw4zYAGY23k9NuyEQF2Ec= =3cMN -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andre Meyer wrote: > There are better experts than myself on this list, but I have never > had a need to bother with this file for a file-system based product. > You can just use the standard Python libraries. Probably, the Guard.py > file protects users of ExternalMethods, but that is just a guess. Nope. ExternalMethods are free to use whatever Python libraries they want. The OP seemed to be asking how to turn off the access / import checking for "untrusted" code, which is the only case where the Guard / RestrictedPython stuff matters. Nobody here is too willing to help him shoot himself in that foot, offering instead pointers to the approved mechanisms (filesystem-based Products / External Methods). Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCcNcvGqWXf00rNCgRAuKYAJ9obFgV3KOBg2Sa/H2g2dQakBLHRQCfZT0l ZgkvzT/+a+VVPl9Y6pBEIiY= =XE7M -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zeo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ken wood wrote: > I appreciate all the great tips on the cionfiguration issue. But my main > issue is about infrastructure: > Which hardware and / or operating systems can be used for a Zope/Zeo > system. > In particular, can I run a Zope instance on my Win32 server and have a > Zeo Server/Clients on my Linux server? > If I use all the same versions (Python, Zope and Plone and Products) can > I use a multi-OS infratructure? Yes. The ZEO server does not need to have any of your products, or even Zope installed; it can be run from the "standalone" ZODB release which corresponds to the Zope release you are running on the appservers. Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCb4vTGqWXf00rNCgRAsHJAJ9k4bbvsxV/r9uUk68N4WIOpQHFCwCfeFo+ xBq3BYTITSoxZJ/xGIgAiL8= =OaGc -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope Starting Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Goldberg wrote: > Can someone please help me resolve the following error: > > Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not > be imported > (line 903 in file:///home/jgoldberg/my_zope/etc/zope.conf) > For help, use /opt/Zope-2.7/lib/python/Zope/Startup/zopectl.py -h The DBTab product is not compatible with Zope 2.7.x; it has been subsumed by the mountpoint support in ZConfig. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCbBXIGqWXf00rNCgRAmvOAKCiZTgWNHrGLWMmzWcXERd0hqX+NgCaAh3l U6v8pykUIFkkzjEH2qyjokk= =HRsP -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: changing select metadata
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malthe Borch wrote: > Hello list, --- > > A quickie: > > I'm trying to change the expiration date of an object with this code: > > obj = getattr(context, id) > obj.editMetadata(expiration_date=...) > > which works very well, however all other metadata gets wiped out :( Now, > what's > the method that works the other way, i.e. only change the provided attributes > and leave the others be? This question is CMF-specific, and thus belongs on the zope-cmf list (zope-cmf@lists.zope.org). The API for setting individual methods is defined in Products/CMFCore/interfaces/DubliinCore in the MutableDublinCore interface; in particular, you want: obj.setExpirationDate(value) Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCZ+7vGqWXf00rNCgRApwyAKCFFYE7fk+wWweHO1OKwpTq+OcA4QCfS3GJ OES23ogaVF94CQrfy13BqBI= =0jzG -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Organisational vs. Functional hierarchies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: > On 4/19/05, David Given <[EMAIL PROTECTED]> wrote: > >>Unfortunately, this requires having the code dealing with text and >>images to be in the same place, which breaks encapsulation. > > > Zope is not a programming language. :-) > Yes, Acquisition has similarieties to class inheritance, but it isn't, > and trying to use is as if it was will just get strange. > > Acquisition can be handy for inheriting data (or rather, > configuration), but not methods. Hmmm CMF skins (templates, Python Scripts, etc.) all work via acquisition; "placeful" scripting in general relies on it heavily. There is admittedly a lot of extra machinery in place to make sure that CMF objects select the "right" templates, based on their 'portal_type', but CMF / Plone / CPS wouldn't work at all without the ability to acquire software. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCZXR9GqWXf00rNCgRAsMRAJ4vZY7H908VNRDVCxzQAQEcaMPGdwCgjZ0S Ro/26CQSk0AbLQwCu+8IBrw= =jOMy -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: How to break up an external method over multiply source files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: | --On Dienstag, 19. April 2005 11:25 Uhr +0200 Lucas Hofman | <[EMAIL PROTECTED]> wrote: | |> I have an external method a.py (in $INSTANCE_HOME/Extensions) that |> becomes to big to be in one python file. |> |> I have put some functions in b.py (also in |> $INSTANCE_HOME/Extensions) and want to use them from a.py. However |> 'import b' in a.py does not work. | | *Why* isn't it working? Errors? Tracebacks? The file from which an ExternalMethod is instantiated is neither a script nor a module, which means that Python's import rules don't work for it. In response to the original question: I would put the 'b.py' file somewhere on the PYTHONPATH ($INSTANCE_HOME/lib/python would be a good choice); 'import b' will then work as expected. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCZQ2aGqWXf00rNCgRAtD/AKCC8E0O0mMEEF2eW0AGXf1aofWopgCfZIHr xvjVCTq8SS2IxRntZv77BbM= =0f3g -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Subfolders of Extensions folder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tino Wildenhain wrote: > Am Freitag, den 15.04.2005, 13:40 +0300 schrieb Vital Lobachevsky: > >>Hi, all! >> >>Can I use the folders in Zope's "Extensions" folder to keep the External >>Methods in more logical way? > > > iirc you can just create a directory > in Products and put your methods there. > You can then import it from here. > > try with or without __init__.py in that > directory (can be empty) > > and Products.yourproduct.yourmodule I don't think the 'Products.' prefix should be there (at least, I never use it for "standard" products' EMs). Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCX9KvGqWXf00rNCgRAnc8AJ9QTseqTWO9hMwgOoyI18sJrOTG5QCgmEYa qFfaGl/xE5nYiNFuodbVNVo= =Wfx3 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZEO and Sessions.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard Jones wrote: > On Wed, 13 Apr 2005 10:21 am, Tres Seaver wrote: > >>>Richard Jones wrote: >>> >>>>Yeah, I remember poking around that code way back, and it seemed >>>>reasonable. Its interactions with transactions are the bits that scare >>>>me. Using a standard RDBMS connection would probably solve that though. >>> >>>I revisited the SQLSession product a year ago for a consuling customer, >>>making their hacked version a drop-in replacement for the transient >>>storage. I can't release their code, but I maybe learned enough then to >>>redo the task as a "PluggableSessions" product, using the >>>"PluginRegistry" product to manage the different requried bits. > > > Well, I have a ZSQLSessionDataManager implementation based on the standard > SessionDataManager with some changes. It appears to work fine when I test our > application (which makes heavy use of sessions). > > So far the SQL code is geared towards Postgres (and gadfly, I think). It'd > need some tweaking to work on MySQL ('cos MySQL is *special*) and I'm not > interested in doing that work ('cos MySQL is *special*). > > http://www.zope.org/Members/richard/ZSQLSessionDataManager Cool. Where is CVS for that, so that I don't bug you for features. ;) I could import it to cvs.zope.org, if you like. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCXoEbGqWXf00rNCgRAuhJAKCaV3P7/MRuBQD8oL6Awmofc42hYgCglex+ OY3hhWKBg05zs4IG5xmKNuk= =vYaS -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZEO and Sessions.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard Jones wrote: > On Wed, 13 Apr 2005 09:44 am, Chris McDonough wrote: >>>Probably not hard. You could write a "session data manager" >>>implementation that used a relational database. The interface for those >>>things is in Products/Sessions/SessionInterfaces.py > > > Yeah, I remember poking around that code way back, and it seemed reasonable. > Its interactions with transactions are the bits that scare me. Using a > standard RDBMS connection would probably solve that though. I revisited the SQLSession product a year ago for a consuling customer, making their hacked version a drop-in replacement for the transient storage. I can't release their code, but I maybe learned enough then to redo the task as a "PluggableSessions" product, using the "PluginRegistry" product to manage the different requried bits. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCXGYNGqWXf00rNCgRAqgqAJ9YjRNE1yqZKOXrl4nWlLCNaa/LvwCffVLH nqNZzuOutIv9hMTkIWfPu1w= =rrHr -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Newbie ZPsycopgDA question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather Bumbalough wrote: > I am very new to Zope & Python so please forgive me if this is stupid > question or if the answer is posted elsewhere (I've looked!)... > > I am using Zope v. 2.8.0-a1, Python v.2.3, and psycopg-1.1.18. After adding > the ZPsycopgDA connection in Zope the Status indicates I am connected to the > database but the tables do not show up on the Browse tab and when I attempt > to perform a query on the Test tab I get the following (from the log): > > Traceback (innermost last): > Module ZPublisher.Publish, line 113, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 40, in call_object > Module Shared.DC.ZRDB.Connection, line 123, in manage_test > Module Shared.DC.ZRDB.Results, line 76, in __init__ > TypeError: object does not support item assignment > > I have tested adding tables and removing them and that works fine, but I have > to use phpPgAdmin to see them. > > Any ideas on what I need to change? Can you try with 2.8.0a2? I'm pretty sure that Sidnei da Silva checked in a fix for that. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCWrzMGqWXf00rNCgRAqyMAJ0Y3gpnR750LGrtDqlorViY4HdIfwCeNSPT rEh3HpddHe8o8phtlX1YMMk= =HK9D -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Anonymous users can download files stored in a restricted folder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barbara Harris wrote: > I'm still using the default_workflow (Simple Review / Publish Policy) > because it meets the content owner's requirements. I didn't look in > this area because I thought I could only apply a workflow to ALL > folders, and I want this security restriction on only one of the site's > folders. Have I missed your point? Please look at the "Security" tab of one of your documents: I'm willing to bet that, after publication, the "View" permission is granted to the Anonymous role. In that case, the settings on the folder are irrelevant. To make those settings relevant, you are going to have to change something: using a DCWorkflow (there is one available which mimics the 'default_workflow') and tweaking the security settings for the "published" state is your likeliest bet. In that case, you would: 1. Delete the 'default_workflow' from the 'portal_workflow' tool. 2. Create a DCWorkflow in the tool, selecting the option labelled "default_workflow (Web-configurable workflow [Classic])". 3. Change the security settings settngs on the "published" state, turning on the "acquire" flag for the "View" permisison and turning off the grant to "Anonymous". 4. Use the "Update security settings" button on the "Workflows" tab of the workflow tool to re-apply the settings you have just tweaked. I've readded the Zope list to the address; note that, since this is workflow-related, the zope-cmf list would be a more appropriate forum. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCWqL2GqWXf00rNCgRAuCSAJ9wEupLuCk/pK9799IMa8BE1Q7P+gCfWJIR 1pqFYNrz3SfHqYio1+690yU= =N0LV -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Anonymous users can download files stored in a restricted folder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barbara Harris wrote: > Is it possible to restrict access to the file download function by > setting permissions on the folder containing a published file? > > In a Zope 2.6.4 CMF site, running on Apache, I have removed anonymous > access from a portal folder (the restricted folder) and published > documents and files in that folder. If a document elsewhere on the site > contains a hyper link to a DOCUMENT in the restricted folder, anonymous > users are prompted to login to the site when they select the link - this > is what I want. However, a hyper link to a FILE published in the > restricted folder triggers the Windows file download window and allows > an anonymous user to download the file. Zope's security model, by design, allows objects to be published even if the container cannot be; therefore you need to ensure that the object itself does not become viewable by anonymous. You likely need to modify the "Security" tab on the "published" state in your workflow to prevent granting "View" permission to "Anonymous". You probably want it to have the "Acquire?" flag turned on, instead. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCWoJNGqWXf00rNCgRApfMAJ9/F3dVBzALa6cSd/EKALqURxlHfwCfaeD5 8Dw09zY/hgXQj0k/IHT4ISM= =GWRr -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Cache flipping?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillaume Tamboise wrote: > Chris Withers wrote: > >>Darian V Schramm wrote: >> >>>I'm getting many of these in my event.log >>> >>>2005-03-15T10:17:56 INFO(0) ZEC:1-None-1 flipping cache files. new >>>current = 1 >> >>This is nothing to worry abotu from a crashing point of view. Worry >>abotu it when you want to improve performance once you have a happilly >>running server. > > > Let's say that I have a happily running server, that I get quite a lot of > "flipping cache files" with a cache-size at 6000 in my Zope instances, and > that I want to improve performances. > What should I do? Bump up the size of your ZEO client cache until the flips are only infrequent. Note that the value for the optoin is a 'byte-size', with a default of '20MB'; 6000 is not likely an improvement over the default. ;) Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCWSGUGqWXf00rNCgRAl0iAJ9C3OeVpXTZcLU3T5itqh+HHXwW8gCfRZQJ eVSd4iDgneJ2ZzaXO4e1T6E= =Yzc2 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Windows compile Zope 2.8?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David H wrote: > Hi List, > > I notice that the latest Zope does not have a Windows binary release yet > (zope 2.80 alpha 2). > > I found an old Visual C 6.0 (still in the box!) and wonder if there are > instructions somewhere that I can follow to create my own binary on > Windows XP? Assuming that VC6 is the compiler used to build Python (should be true for Python < 2.4): C:\Zope-2.8.0a2> python.exe setup.py build_ext --inplace Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCVvN+GqWXf00rNCgRAvg9AJ9a1ytUMxwVSml+yHvdtjYgjqhriwCeJXzw 3P5CwSXbsx5BXgCmKcas96c= =PVot -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Does anyone care whether we deprecate ZClasses?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: > > On Apr 6, 2005, at 6:59, Andreas Jung wrote: > >> >> >> --On Dienstag, 5. April 2005 16:38 Uhr -0400 Jake <[EMAIL PROTECTED]> >> wrote: >> >>> And that is probably the best arguement for keeping them around longer. >> >> >> We should get to the point: if some people depend on ZClasses then >> they should >> take over some responsibility in maintaining them in future releases. >> It can not be >> that a "feature" regarded as obsolete (from the majority) and almost >> unmaintained and >> untouched since ages holds up further releases. > > > Amen. Actually, instead of maintaining them in the core the current > users should immediately look at breaking it out of the core into a > separate product, as suggested earlier, and maintain that product. I > believe that would make it simpler both from a Zope maintainer > perspective as well as from the ZClass maintainers' perspective. Perhaps once Jim's current work lands, that might be possible. As it is, most of the work to make ZClasses function in Zope 2.8 has been at the ZODB level (I think); I doubt that anyone (except Dieter!) plans to dive from the frying pan of ZClass implementation into the fire of ZODB code any time soon. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCU+hUGqWXf00rNCgRAup2AJ9myFbD3V2bjtrHRZPJMcwc9zN2cgCeMiet D/BUc+yQN82oY1MiaTBdr4U= =zSDn -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] (Security) Hotfix_20050405 Released (URL correction)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Overview Zope Corporation has released a Zope hotfix product addressing a potential vulnerability discovered during a recent security audit of Zope 2.7 and 2.8. Affected Versions The hotfix affects versions 2.7.5 and earlier of Zope on the 2.7 release line, as well as versions 2.8a1 and 2.8a2 on the upcoming 2.8 release line. The vulnerability will be resolved in versions 2.7.6 and 2.8b1. We recommend that any site which permits untrusted users to write PythonScripts apply this hotfix, and upgrade to a fixed version of Zope as it becomes available. Further Information Please see the "product README", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/README.txt for details on the vulnerability, and for instructions on installing the hotfix. Downloading the Hotfix - "Unix tarball", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/Hotfix_20050405.tar.gz - "Windows ZIP archive", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/Hotfix_20050405.zip Apologies for the earlier typoed URLs. Tres Seaver. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUtIhGqWXf00rNCgRAitxAJ9Vualp5LLSrMQb1T799UWKa1UJoQCgmCJ2 EqH0Sj4RN0V8o1ldX6C1g90= =1lBU -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] (Security) Hotfix_20050405 Released
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Overview Zope Corporation has released a Zope hotfix product addressing a potential vulnerability discovered during a recent security audit of Zope 2.7 and 2.8. Affected Versions The hotfix affects versions 2.7.5 and earlier of Zope on the 2.7 release line, as well as versions 2.8a1 and 2.8a2 on the upcoming 2.8 release line. The vulnerability will be resolved in versions 2.7.6 and 2.8b1. We recommend that any site which permits untrusted users to write PythonScripts apply this hotfix, and upgrade to a fixed version of Zope as it becomes available. Further Information Please see the "product README", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/README.txt for details on the vulnerability, and for instructions on installing the hotfix. Downloading the Hotfix - "Unix tarball", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/Hotfix_20050405.tar.gz - "Windows ZIP archive", http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/Hotfix_20050405.zip Tres Seaver. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUsvGGqWXf00rNCgRAt3qAJ42sH4BIPP9+S1g+ZnpwS9YopcggQCfYnvw hXfT3SOxuL1y1adv5zmv3v8= =smRT -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Software Patents and Content Management Systems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: > Linus Torvalds and others have suggested that from a legal point of view > it is a bad idea to read through existing patents to see if some apply > to your software, because it shows you were aware of being infringing on > them. Under US law, knowing infringement triples the damages. Lobbying is one thing, but one we in the US can't help with (for the current EU jockeying, anway). Contributing to a "prior art" portfolio which enables attacks on such patents might be another useful tactic. Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUpz2GqWXf00rNCgRAo+sAJ4idDZX7t6riVx9YF/cFmsQz47uWACfRnBU 61l/nyktbbT9Ghi6/ZcvUP4= =yFnV -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ImportError: DBTab.ClassFactories.autoClassFactory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 TERRIEN Mickael wrote: > Hello, > > i have the same problem with my zope running... > > i have seen your post at the address : > http://mail.zope.org/pipermail/zope/2004-October/154258.html > <http://mail.zope.org/pipermail/zope/2004-October/154249.html> > > but I don't understand your response > > If you can explain more your response i am really interested. Sorry for the delay. You would likely get quicker response if you had replied on the list. The DBTab product is not compatible with Zope >= 2.7. Its functionality has been moved into the core, and is now configured using the normal 'zope.conf' config file (note that the sessions machinery configures the temporary storage mounted at '/temp_folder' this way). > Thank you. > > (Excuse my english) No problem. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUWdjGqWXf00rNCgRAjJzAJ9dQwaFwS/0v+zekJijWqWx9bWVcwCaA8k+ zQ5SkupTJzpRuFSo09kojOU= =bjbE -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: role, user defined roles, and inclusion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: > Are you implying that something else gives the user the Anonymous role > as far as Zope security is concerned? - From the point of view of introspecting roles, no; however, when validating access, *every* user can do what Anonymous can do, so the distinction lacks a difference. Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCTWRhGqWXf00rNCgRAjiCAKCP52L2wIM0gAA1PrsXim2oeApRUACfU+x+ NEyj6LHgnkradbGjC2UhCf8= =Bhld -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Plone/Zope on Debian Sarge
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Bittner wrote: > I am running a Debian Linux box with Debian/testing (Sarge) and I am trying > to > get Plone up and running. I have made a clean, new install of the whole > system last week, so all packages are really up-to-date and there was no > dirty installation that was updated. > > I have noticed that the Plone package on Debian is or was somewhat broken, > but > there was a notice about that on the Plone website (download page) which has > disappeared. For me that looked like this problem was fixed by the package > maintainer. > > Unfortunately still, after installing Plone (and implicitly thus Zope 2.7) > Zope did not want to come up, saying: > > Zope starting all instances > '*' is an old/purged instance, not started > > What is wrong here? You need to supply more detail, like showing the exact working directory, comand lines, etc. you used, and the full traceback, if any. Also note that the Debian maintainer should probably be your first line of contact: very few folks on this list are likely to grok the details of packaging for Debian. > I know I have to set up a new Plone site (obviously using the Zope interface > at http://localhost:9673), but how can I when Zope is not running. > > Any help is greatly appreciated! Tres. - -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCTWNCGqWXf00rNCgRAioBAJ9TjpjdUT9dvzS88pYt+h3+qHLfWgCffyhs 0WUBtrHLRi4YSJzl+XF0ZOA= =l//E -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Dynamic Zope Style Sheets with HTML 4.01 Strict
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy Yates wrote: > Thanks! I've never used dtml for style sheets. I've always used page > templates and never had a problem 'til now. Also, I don't see a way to > set the content type on a dtml doc or method. You can just add the line, 'Content-type: text/css', followed by a blank line, to the top of the DTML method (yes, I know, that smells funny). > I assume it would be > text/html and then I back in the same boat. To restate my problem, > FireFox in HTML 4.01 Strict mode does not seem to accept a style sheet > if the content type is text/html. It needs to see text/css. (Of course > IE is fat dumb and happy) Everything worked fine until I added this doc > string to my page: Tres. - -- ======= Tres Seaver[EMAIL PROTECTED] Zope Corporation "Zope Dealers" http://www.zope.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCTIRaGqWXf00rNCgRAhLXAJ983+vJpioFFRfwyiuJIxHe11lJYwCgoJNC +OUbcLanRDKcYCbFhB69HKM= =bTey -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] "Picture of the day" product
On Mon, 29 Jan 2001, Timothy Wilson wrote: > On Wed, 17 Jan 2001, Tres Seaver wrote: > > > > What I'm not sure about is how to have Zope automatically > > > display the photo for a day, then archive it. Would a > > > boolean property of the ZClass work? Is it possible to have > > > Zope set the property of a ZClass instance at certain time? > > > Any thoughts on how this would be designed? > > > > This kind of thing is a "query-on-metadata" application; I > > would put all these images into a single folder (maybe > > chunked into subfolders by month?), mark them each with an > > 'effective' property (of type 'Date'), and then select the > > appropriate image via a catalog query, e.g.:: > > > >>, effective=( ZopeTime().earliestTime(), > > ZopeTime().latestTime() ) > >, effective_usage='range:min:max' > ># other query parms here, including any sorting... > >)"> > > > > > > > > > > > > Or you could just have the catalog fetch the images sorted by > > effective/descending, and then pick off the first one; this > > would keep an image around until supplanted by a newer one. > > Tres, I like this second solution. Each 'Photo' instance has a > display_date property (of type 'date') that should determine > when it's displayed (strangely enough :-) > > I'd like to grab all instances with a display_date <= today's > date. I can't figure out exactly how to do that in DTML or a > Python Script. Once I have that list of instances, I'll simply > pull off the latest one as you suggested. > > Would someone be willing to give an example of how to do this > in DTML and a PythonScript? I think it would be an interesting > comparison. BTW, there's nothing quite like this in the Zope > Book. Nearly all of the examples there are using form input. > Perhaps this type of Catalog searching could be expounded on > there. I don't know where it would be in the book it would be, but I do this something like:: The expression would be basically the same in a PythonScript:: return context.theCatalog( meta_type='Photo' , display_date=ZopeTime() , display_date_usage='range:max' , sort_on='display_date' , sort_order='reverse' ) Hope that helps! Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] basic authorization triggered inside LoginManager context
Fred Yankowski <[EMAIL PROTECTED]> wrote: > I've set up LoginManager with SQL and it's working OK, but I've run > into a case where the browser pops up a basic/HTTP authentication > request when I try to access a particular object inside the > LoginManager-protected area. > > I particular, I added the following line to the index_html DTML > Document (at the same level as the LoginManager acl_users folder): > > No can do, no how, no way: attribute names beginning with "_" are absolutely verbotten in through-the-web DTML. > Without this line I can access the index_html file after logging in > via the LoginManager scheme as a user with the 'Members' role. But > with this line I get the basic authorization popup and if I cancel > that I can see the following exception in the "Zope Error" page: > > > Traceback (innermost last): > File D:\PROGRA~1\Zope225\lib\python\ZPublisher\Publish.py, line 222, > in publish_module > File D:\PROGRA~1\Zope225\lib\python\ZPublisher\Publish.py, line 187, > in publish > File D:\PROGRA~1\Zope225\lib\python\ZPublisher\Publish.py, line 171, > in publish > File D:\PROGRA~1\Zope225\lib\python\ZPublisher\mapply.py, line 160, > in mapply > (Object: index_html) > File D:\PROGRA~1\Zope225\lib\python\ZPublisher\Publish.py, line 112, > in call_object > (Object: index_html) > File D:\PROGRA~1\Zope225\lib\python\OFS\DTMLDocument.py, line 177, > in __call__ > (Object: index_html) > File D:\PROGRA~1\Zope225\lib\python\DocumentTemplate\DT_String.py, > line 528, in __call__ > (Object: index_html) > File D:\PROGRA~1\Zope225\lib\python\DocumentTemplate\DT_Util.py, > line 337, in eval > (Object: _.getattr('AUTHENTICATED_USER', '__class__')) > (Info: _) > File , line 0, in ? > File D:\PROGRA~1\Zope225\lib\python\DocumentTemplate\DT_Util.py, > line 144, in careful_getattr > Unauthorized: __class__ > > > So it looks like attempting to access the '__class__' attribute > triggered this, but I don't understand why it lead to basic > authentication. If this required 'Manager' permissions, why didn't I > just get some kind of "forbidden" response? You are already authenticated in LM, but don't (can't, acutally) have the role to do this operation (grep the Zope source for '_what_not_even_god_should_do'). The LM can't authenticate you for what you asked, so you bang out to Zope's default, which is to try basic auth. In this case, it is particularly pointless, as there does not exist *any* user who can execute your method. > It looks like the careful_getattr() function will raise a > ValidationError on any attempt to access a variable whose name starts > with '_'. Fine, maybe I was being naughty. But I still don't > understand why this wasn't handled using LoginManager. How can I keep > Basic/HTTP authentication from running when I've got LoginManager in > place? Or is there reason to want both at once? The real problem is that, at the end of the day, Zope is returning an HTTP 401 for this request, which is the only possible result (it is your browser who converts that into a dialog box) Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] separate zope from site products
[EMAIL PROTECTED] asked: > Ok, I saw it by accident while searching for something else > the other day, and now can't find the HOWTO on getting > your Zope install separate from your local products, so that > future Zope upgrades don't require re-installation of all > your already existing products. > > So where can I find this document I'm looking for? Evan Simpson's excellent INSTANCE_HOME writeup: http://www.zope.org/Members/4am/instancehome -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Entry Flame
"Jason Cunliffe" <[EMAIL PROTECTED]> wrote: > > Jason, Flaming the Zope.org site layout is OT for this list; the "someone who cares" in this case is the Zope-web list (mailto:[EMAIL PROTECTED], which I am CC'ing, and whither I would set followups if this were a proper newsgroup, instead of a lame-oh mailing list.) Just my $0.25 worth :) Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Editors [OT]
In the neverending "perfect Zope editor" jihad, "Phil Harris" <[EMAIL PROTECTED]> wrote on the side of the angels of light: > I just did a search on google and came up with some > interesting Win32 versions of Vim 5.7.11: > > See http://vim.sourceforge.net/bin_download/00index.txt > > Since the Python and TCL interpreters are built in it should > be possible to add seamless FTP/WebDAV clients into Vim, > cool! Even more insidious, consider: :py import Zope; app=Zope.app() ZEO + VIM is a r00ling IDE :) Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope PTK Wizard
"Priya Ramkumar" <[EMAIL PROTECTED]> wrote: > I am trying to create a wizard in my portal to enable users to store > information. In addition to the features of the already existing Document > Wizard, I would like my Wizard to have more features like information about > the category of the document, etc. I created a file called "Userdocument.py" > with a method "addUserdocument" which will be called to add a new document. > I have also added the new entry to the PTKBases & PTKDemos __init__.py. But > as soon as Zope starts, it gives this error > > > 2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo > Traceback (innermost last): > File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line > 397, > in import_products > (Object: string) > File > "/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py > ", line 159 > PTKBase.Userdocument = Userdocument > ^ > SyntaxError: invalid token > > Could anyone please tell me how to create custom wizards and to register > them? Priya, First, the PTK has its own mailing list, [EMAIL PROTECTED]; you are much likelier to get useful and timely advice there about PTK-specific issues. Second, I don't think the region of code in which you have injected that line needs it; it exists solely to provide backward-compatibility with portals created before version 0.8 of the PTK. Third, I can't see anything about your code which woudl trigger a syntax error; typically, in this case, the real error would be a line or two ahead (opening but not closing a parenthesis, omitting a comma, etc. Fourth, you would typically add a new content class in a separate product, either on the filesystem or in a "through-the-web" ZClass product; mixing your stuff with PTKBase/PTKDemo means you will be forced to deal with lots of merge conflicts (and these days, I mean *LOTS*). I would recommend creating a new CVS sandbox, as described in my "State of the PTK" message today: http://lists.zope.org/pipermail/zope-ptk/2001-January/002258.html Then, move your 'Userdocument' module into a new Product, a "sibling" of PTKBase and PTKDemo. Register it just as 'PTKDemo.Document' is registered, and create a Wizard for it by cloning the Document wizard and "filing off the serial numbers". Hope that helps, Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Editors [OT]
On Thu, 25 Jan 2001, Chris Withers wrote: > Tres Seaver wrote: > > > > I'm liking it a lot -- the last reason to even consider using > > emacs is gone :) > > Hmmm... interesting, maybe it's time to find a new editor... > > My wishlist would be: > > - Runs nicely on NT4 Vim works for me :) http://www.vim.org > - Syntax highlighting for Python, C, XML, HTML (and, although > this is dreamworld > stuff, DTML ;-) Vim's highlighting is pretty good -- the HTML highlighting even does OK for DTML. > - FTP or WebDAV editing built in as standard (or alternative > solution, like cadaver making it work ;-) On a Windows box, use WebDrive to "mount" the WebDAV source port ofyour Zope to a drive letter: http://www.webdrive.com > - Regular Expression search & replace Heh, vi is where those things grew up. :) > - search & replace of multiple files gvim, the GUI version, lets you migrate with the mouse through your list of open buffers (also with the classic ":n" and ":N"). In fact, this feature is almost the only reason I use the mouse while editing. As for "global search & replace" I routinely do something like: find . -name "*.py" | xargs grep -l "mispeld" | xargs gvim and then: :%x/mispeld/misspelt/g in each buffer. On a windows box, you would need to be running cygwin to make that work, of course :) But perhaps "Windows Find" plus "select all" plus some fewmet magic (drag-n-dropping :) would be equivalent. > and my dream list would be: > > - can run multiple copies of the editor at once No problemo. > - class browser for python, with expand/collapse of code > (like the editor for > Python 2) Vim won't help here -- it just wants to be an editor, not an operating system. :) You might check out WingIDE, BoaConstructor (even does XML-RPC to talk to Zope!), or Komodo. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PythonScripts editable through FTP?
Jerome Alet <[EMAIL PROTECTED]> wrote: > On Wed, 24 Jan 2001, Chris Withers wrote: > > > Jerome Alet wrote: > > > > > I sincerely don't know because I've disabled FTP here. > > > > How come? > > > > What about WebDAV? > > don't use it either. > > I want to use my own text editor (JERED), not because it's > the best to develop (far from that in fact) but because it > works exactly like I want it to work (which is normal since > I've written it). Unfortunately it doesn't handle WebDAV or > any other Internet protocol... You might look at the 'cadaver' WebDAV client (on Unixen): http://www.webdav.org/cadaver It can browse your Zope using WebDAV (especially nice if you run the "WebDAV source port" HTTP listener), and kick down to your favorite editor to edit files. I'm liking it a lot -- the last reason to even consider using emacs is gone :) Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ActiveState on Zope.org
"Andy McKay" <[EMAIL PROTECTED]> wrote > > > hi, > > > > I'm kind of surprised that Active State has such a big promo on Zope.org's > > site considering they use IIS; and considering the blurb talks about how > > much they do for Open Source. > > We use IIS for many reasons, it's fast and we use some of products in > conjunction with it. To suggest that using IIS is somehow "wrong" confuses > me, Zope.org doesn't use ZServer. Strictly speaking, not true -- the host your browser connects to is first a load-balancer, then an Apache instance; Apache is proxying for ZServer. See http://www.zope.org/About for details. Otherwise, I'd agree with the rest of your points. > For me the flexibilty of using Zope any > way we see fit is its greatest strength. We made a decision to serve > "static" content using a simple fast server and dynamic content using Zope. > > Actually we have the main web site in Zope. Its the CMS for the main web > site and only accessible internally. This allows multiple users to access > and make changes, templating and so on. Since this content changes very > rarely we use wget hack to move the information to the main web site to be > served by IIS, since IIS can serve out many more pages per second that Zope > can (because it is doing some much less). This is a "right product for the > right job" decision. > > For the dynamic portions (mailing list arcive etc.) we use Zope and ZServer > quite happily on the front end. One day we may move to having the whole site > in Zope, who knows :). > > As mentioned we do a great deal for Open Source (ActivePerl, ActivePython, > PyXPCOM, PPM and so on) to name a just a bit. ActiveState is one of the very > few companies where we pay people to hack open source stuff all day. In the > same way Guido works for DC and spends time on Python, we have many talented > Python and Perl developers (David Ascher, Paul Prescod, Gurusamy Sarathy, > Jan Dubois) who in put a great deal of Open Source work. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZTopic error
"Priya Ramkumar" <[EMAIL PROTECTED]> wrote: > I am trying to use ZTopic for categorizing obejcts in a Zcatalog. After > specifying the criteria, when I try to view the list of topics, it gives me > the traceback error: > > Error Type: AttributeError > Error Value: Vocabulary > > Is there any bug fix for this? ZTopic is slightly out of date; in particular, it uses the (text) indices without wrapping them in their catalog, so they can't acquire their vocabulary object. The patch is a simple one-liner: $ diff -bu Topic.py.org Topic.p > --- Topic.py.orgWed Nov 3 16:25:15 1999 +++ Topic.pyThu Nov 30 21:27:48 2000 @@ -224,7 +224,7 @@ c=zcatalog._catalog for search_term in search_map.keys(): if c.indexes.has_key(search_term): -index=c.indexes[search_term] +index=c.indexes[search_term].__of__(c) search_results=index._apply_index(search_map) if search_results is not None: Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Can't import anything decent on old machine.
> "Darrin" <[EMAIL PROTECTED]> wrote: > Whenever I try to import a product I usualy get the following errors. > > BTW. I have been using Linux for years. I am trying this on a Debian 2.2 > system. Sure, I can recompile this box with woody instead of potato if > necessary. It's runing on an old P166. It has lots of ram (128 megs). If the > hardware is a problem then please let me know. > > I get the same error when trying to import several products. Did i miss > something in the FAQ? The traceback you posted looks as though you are trying to import a "product" tracefile someplace other than Control_Panel/Products, which is the only place possible for such beasts. You didn't post the actual exception type/value ("above" the traceback in the HTML page), which would help diagnose the problem better. Knowing the version of Zope and the specific products in question would help, too; I can't imagine that Debian version is an issue at all. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] "Picture of the day" product
On Wed, 17 Jan 2001, Timothy Wilson wrote: > On Wed, 17 Jan 2001, Tres Seaver wrote: > > > > What I'm not sure about is how to have Zope automatically > > > display the photo for a day, then archive it. Would a > > > boolean property of the ZClass work? Is it possible to have > > > Zope set the property of a ZClass instance at certain time? > > > Any thoughts on how this would be designed? > > > > This kind of thing is a "query-on-metadata" application; I > > would put all these images into a single folder (maybe > > chunked into subfolders by month?), mark them each with an > > 'effective' property (of type 'Date'), and then select the > > appropriate image via a catalog query, e.g.:: > > > >-- rest of example snipped -- > > Are you suggesting I use the standard Image class? What about > subclassing Image so I can add a display_date property and > whatever else I might need? Subclassing Image might be useful, but you could certainly get by without if, if all you need is to add a property or two: Images have a propertysheet to which you could add them. I suppose it is a matter of taste; I tend to avoid subclassing unless the object's behavior changes significantly. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stopping a
> "Jonothan Farr" <[EMAIL PROTECTED]> wrote: > > http://www.zope.org/Members/jfarr/Patches/dtml-break > > I requested that this page be cataloged but it never was. I don't know why about that one. > I also submitted it as > a patch to the distribution but it was refused. Something about a new dtml-in > implementation that I haven't seen materialize in the last 5 versions or so. I seem to recall that this one was me; I likely closed out your Collector issue (May last year, was it), expecting that Evan's (?) "loop variable" patch for the '' tag would get folded in, which never gelled. The sentiment against "DTML-as-scripting-language" also makes introducing more control structures difficult to sell; I don't buy that, myself, but have to listen to folks who do. Anyway, I'm sorry that your proposal fell through the cracks; the "hot money" these days is all on HiperDOM/XHTML stuff, rather than DTML, so it may stay there (especially if the patch is hard to apply to a recent Zope). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] "Picture of the day" product
Timothy Wilson <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > I was looking at linux.com the today and I noticed their "Daily Photo." I > occurred to me that that would be a fun addition to the school's page that > I'm developing. My first thought would be to: > > * inherit from Image > * add caption, date taken, etc. properties > * create an archive of past photos > > What I'm not sure about is how to have Zope automatically display the photo > for a day, then archive it. Would a boolean property of the ZClass work? Is > it possible to have Zope set the property of a ZClass instance at certain > time? Any thoughts on how this would be designed? This kind of thing is a "query-on-metadata" application; I would put all these images into a single folder (maybe chunked into subfolders by month?), mark them each with an 'effective' property (of type 'Date'), and then select the appropriate image via a catalog query, e.g.:: Or you could just have the catalog fetch the images sorted by effective/descending, and then pick off the first one; this would keep an image around until supplanted by a newer one. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to list objects across different containers in Zope's tree?
> Ausum <[EMAIL PROTECTED]> asked: > > Few days ago there was this same question although remained unsolved. > This is the case for a news site: > > News objects are within section folders, within day folders, within > months, and within a year folder. Just like this, at the root: > > http://zopesite:8080/2000/October/17/sports/newsobjectid_htm > > If I were at, ie, root/2001/January/thislist_htm , how can I list(and > retrieve) sport news appeared from October 29th to November 10th in year > 2000? Is it time to look for a database? This kind of stuff is what the ZCatalog is for. Check out the ZTopic product on zope.org as well. In addition, you might be interested in the PTK: http://www.zope.org/Products/PTK Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Session
Can y'all please trim the quotes a bit when following up? Those who want to see the thread in all its glory can use the archives. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Need help with ZGotW
On 12 Jan 2001, LARRY CHUON wrote: > Thank you, Tres. I hope your thanks aren't premature; I have a feeling I may have overlooked something (permission settings, most likely) needed to make ZGotW work (for non-managers) on a 2.2.* Zope. Please let me know if you run into further problems. > On Thu, 11 January 2001, Tres Seaver wrote: > > > > > LARRY CHUON <[EMAIL PROTECTED]> wrote > > > > > I have Zope-2-2-4 and just install ZGotW. When I try to add > > > ZGotW Issue and ZGotW Root, I receive errors such as "Empty > > > entry when integer expected" or "sequence index must be integer." > > > > The product you downloaded (version 0.0.2) was built for Zopes > > before version 2.2.*; I have uploaded a new version which is > > 2.2.* compatible: > > > > http://www.zope.org/Members/tseaver/ZGotW/ZGotW-0.0.3.tgz Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Need help with ZGotW
LARRY CHUON <[EMAIL PROTECTED]> wrote > I have Zope-2-2-4 and just install ZGotW. When I try to add > ZGotW Issue and ZGotW Root, I receive errors such as "Empty > entry when integer expected" or "sequence index must be integer." The product you downloaded (version 0.0.2) was built for Zopes before version 2.2.*; I have uploaded a new version which is 2.2.* compatible: http://www.zope.org/Members/tseaver/ZGotW/ZGotW-0.0.3.tgz Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re:[Zope] Storing and Using Object references
Tom Jenkins <[EMAIL PROTECTED]> wrote > > Hello all, > i have a question and I hope someone can point me in the right direction > to solve it. I need one zope object to hold a reference to another zope > object so the first object can call methods of the second object. oh, > these are python classes. > > Example: object 1 is : /container1/container1a/item1 object 2 is : > /container2/container2a/item1 object1 needs to hold a reference to > object2. I'm really stuck on how to store and access object2 from > object1. > > any pointers? If you store the path to the other object as an attribute on its referer, then you can use the OFS.Traversal interface to fetch the referred object on demand. E.g.:: class Foo: bar_path = None def setBar( self, bar ): """ Save bar's path so we can find it later. """ if bar is None: self.bar_path is None else: self.bar_path = bar.getPhysicalPath() def getBar( self ): """ Use stored path to retrieve bar. """ if self.bar_path is None: return None return self.restrictedTraverse( self.bar_path ) #^_could be 'unrestrictedTraverse', in trusted code Tres -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking kudos & namespaces
"Chris McDonough" <[EMAIL PROTECTED]> wrote > I think the idiom here will be: > > > > > > > But I don't see how to do that, because if I > > stick a dtml-with, for instance, into generic header code > > (included, for example, by standard-html-header, then this > > with statement is required to be *closed* when I edit it). > > Yeah, the split between header and footer is unfortunate > right now... one way to have the stuff available in all > your documents would be to use the request namespace in the > header: > > > > > > ...then in the rest of your documents, you could refer to > sessiondata: > > > > > > This is not particularly encouraged. Hopefully the upcoming > HiperDOM will solve the header/footer split problem. I think a cleaner near-term workaround is to have the standard header explicitly copy all the session key-variable pairs into REQUEST.other: (This presumes that the getSessionData() return value supplies an items() method, which I haven't actually checked). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Hookable PUT Creation
On Fri, 5 Jan 2001, Chris Withers wrote: > Tres Seaver wrote: > > > > http://dev.zope.org/Wikis/Proposals/HookablePUTCreation > > That gives me a NotFound :-S Hmm, sure enough. I wonder why the "DevSite" has to be there even inside dev.zope.org? At any rate, the "correct" URL is: http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Advice on searching/indexing Word documents?
[EMAIL PROTECTED] wrote: > > I really like the idea of extending OFS:File to support different file > types, but what I would like to see is something that is > format/filter/library agnostic. Please have a look at the "Hookable PUT" proposal (which has already been implemented for 2.3): http://dev.zope.org/Wikis/Proposals/HookablePUTCreation This project adds an API to the handler for HTTP/FTP PUT requests to non-existent objects (so that you can specify/tweak the object which is created). Handling PUT in the object directly (for WebDAV/FTP/HTTP "uploads") would be the job of your File-like object. The PTK's content objects do this now, for limited types of content (structured text with RFC822-style headers for the metadata); we plan to add other filters there, as well. We'd be glad of your help definining the API. Could you take the text of your message and create a "fishbowl" proposal with it on the dev.zope.org site? Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Editing Property Sheet HTML
"Geoffrey L. Wright" <[EMAIL PROTECTED]> wrote: > The question is ... how do I do it? I'd like to make the default > textarea field quite a bit bigger -- but I wasn't able to explore my > way to success in the interface, and about 20 mins of seaching has > yielded no answers. > > Then again, it's pretty late, so mebbe I'm just being dim If the propertysheet you want to customize belongs to a ZClass, then you are in luck. Try adding a "Property Sheet Interface" object to the methods tab of your ZClass: it will prompt you for the name of the sheet, and whether you want a "view" interface or an "edit" interface; it then creates a DTML Method with appropriate chrome for customization. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PTK
Nuno Goncalves <[EMAIL PROTECTED]> wrote: > Hi there ! > I'm trying to use ptk to build a portal in zope ! > Does anyone knows how to add a design scheme ? > initialy it shows onle the generic Portal interface. I wonder > if it is possible to build my own design scheme and how to add one! First, the ZopePTK mailinglist ([EMAIL PROTECTED], see the list info page at http://lists.zope.org/mailman/listinfo/zope-ptk) is the best place for PTK-specific questions. With regard to your question, you have several options: * Edit/replace the DTML which is copied into your portal instance at creation time. This option is the simplest one, but makes accomodating changes to the underlying PTK software (i.e., when we release a new version) somewhat difficult. It also does not allow you to replace DTML methods which are defined in the DemoPortal.Portal ZClass itself (rather than being copied in). If you follow this path, and end up replacing most or all of the DTML (and style sheets, Wizards, etc.), consider copying these files out to a separate folder, exporting it, and uploading it as a new, alternate "interface" (I'll gladly fold in new, complete interfaces). * Create a new ZClass in your own product, deriving from the DemoPortal.Product class. Override only the methods you need to; the others will be inherited. Create any additional methods you need to give the portal your chosen look-and-feel. * Create a new Portal-derivative in your own filesystem product. This option requires a fair amount of tedious work (DTML on the filesystem requires somewhat more effort to create/tweak than DTML in the ZODB). We understand the difficulties these options present, and are actively working on a more satisfactory solution. Tres. -- ======= Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] I love you! (Re: [Zope] Troubles importing module DemoPortal.zexp)
"Francisco M. Marzoa Alonso" <[EMAIL PROTECTED]> wrote: > You was on right, it has been imported succesfull now :D > > Thanks a lot, Morten :) > > El Lun 18 Dic 2000 12:58, escribiste: > > [Francisco M. Marzoa Alonso] > > > > | Error Type: ImportError > > | Error Value: No module named PythonMethod.PythonMethod > > | > > | Package files that I'm using are: > > | > > | Zope-2.2.2-linux2-x86.tgz > > | ZopePTK-0.9.2-src.tar.gz > > | > > | Can someone help me with this? > > > > I guess you need to install the PythonMethod product, downloadable > > from http://www.zope.org/Members/4am/PythonMethod . I'm glad Morten was able to help you with this. To raise the likelihood of finding helpful, PTK-aware folks like Morten, please ask PTK-specific questions on the ZopePTK mailing list: mailto:[EMAIL PROTECTED] Or consult the archives, linked from the subscription page: http://lists.zope.org/mailman/listinfo/zope-ptk (Note that your exact problem has come up several times in the last few weeks, and been answered, on that list). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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 http://lists.zope.org/mailman/listinfo/zope-dev )