[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/ Collector #1926: add tests for both not-yet-encrypted and pre-encrypted passwords handed to '_doAddUser'.

2005-10-21 Thread Tres Seaver
Log message for revision 39545: Collector #1926: add tests for both not-yet-encrypted and pre-encrypted passwords handed to '_doAddUser'. Changed: U Zope/branches/Zope-2_8-branch/lib/python/AccessControl/tests/testUserFolder.py U

[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/tests/testUserFolder.py Forward-port tests for collector #1926 from 2.8 branch.

2005-10-21 Thread Tres Seaver
Log message for revision 39547: Forward-port tests for collector #1926 from 2.8 branch. Changed: U Zope/trunk/lib/python/AccessControl/tests/testUserFolder.py -=- Modified: Zope/trunk/lib/python/AccessControl/tests/testUserFolder.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Collector #1927: Don't save rendered HTML / warnings as persistent attributes.

2005-10-21 Thread Tres Seaver
Log message for revision 39550: Collector #1927: Don't save rendered HTML / warnings as persistent attributes. Changed: U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt U Zope/branches/Zope-2_8-branch/lib/python/Products/ZReST/ZReST.py A

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZReST/ Forward-port fix for collector #1927 from 2.8 branch.

2005-10-21 Thread Tres Seaver
Log message for revision 39551: Forward-port fix for collector #1927 from 2.8 branch. Changed: U Zope/trunk/lib/python/Products/ZReST/ZReST.py A Zope/trunk/lib/python/Products/ZReST/tests/ -=- Modified: Zope/trunk/lib/python/Products/ZReST/ZReST.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Products/ZReST/tests/test_ZReST.py Repair copy-paste error.

2005-10-21 Thread Tres Seaver
Log message for revision 39552: Repair copy-paste error. Changed: U Zope/branches/Zope-2_8-branch/lib/python/Products/ZReST/tests/test_ZReST.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/Products/ZReST/tests/test_ZReST.py

[Zope-dev] Re: Mountpoints

2005-10-21 Thread Florent Guillaume
Tim Peters wrote: I think it's worse, but mostly because a key with name name is also an option in _related_ sections, but with unrelated meaning. For example, if you had a nested zeoclient section there it could also have specified a name key, which would have nothing to do with the zodb key

Re: [Zope-dev] Re: [Zope-CMF] Better DeprecationWarnings (was Re: SVN: CMF/trunk/CMFDefault/Portal.py - reverted Portal.py change of r39125 to fix BBB temporarily)

2005-10-21 Thread Tim Peters
[Tim Peters] Note: sometimes _internals_ use deprecated gimmicks in order to support deprecated gimmicks too, and then stacklevel=3 is too small. It's happened so rarely in ZODB that I haven't tried to do something about that yet. [Chris Withers] Interestingly, I've found that even this is

[Zope-dev] Re: Mountpoints

2005-10-21 Thread Tim Peters
[Tim Peters] I think it's worse, but mostly because a key with name name is also an option in _related_ sections, but with unrelated meaning. For example, if you had a nested zeoclient section there it could also have specified a name key, which would have nothing to do with the zodb key

[Zope-dev] Re: Mountpoints

2005-10-21 Thread Jim Fulton
Tim Peters wrote: [Tim Peters] I think it's worse, but mostly because a key with name name is also an option in _related_ sections, but with unrelated meaning. For example, if you had a nested zeoclient section there it could also have specified a name key, which would have nothing to do with

Re: [Zope-dev] Re: Mountpoints

2005-10-21 Thread Chris McDonough
On Fri, 2005-10-21 at 11:13 -0400, Jim Fulton wrote: Not really: a DB's database_name was introduced specifically for the new-in-ZODB-3.5 multidatabase feature, and has no meaning or use apart from its multidatabase role. That's better explained in the ZConfig description section for

Re: [Zope-dev] Re: Mountpoints

2005-10-21 Thread Tim Peters
[Chris McDonough] | Note that I don't have a strong opinion about this either way but I will note that at least Zope 2's subclass of the zodb config handler will need to continue to be willing to use the section title as the database name for backwards compatibility reasons, as people who have

[Zope-dev] Why is test.py silent by default

2005-10-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The default usecase for running tests should be a developer making changes and running tests. In this case, silent mode is unhelpful; it gives no feedback until the very end of the run, which takes a **long** time for the whole Zope2 tree. The dots

Re: [Zope-dev] Why is test.py silent by default

2005-10-21 Thread Jim Fulton
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The default usecase for running tests should be a developer making changes and running tests. In this case, silent mode is unhelpful; it gives no feedback until the very end of the run, which takes a **long** time for the whole

Re: [Zope-dev] Why is test.py silent by default

2005-10-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The default usecase for running tests should be a developer making changes and running tests. In this case, silent mode is unhelpful; it gives no feedback

Re: [ZWeb] Re: [Zope.org-internal] Re: [Zopeorg-webmaster] Download of Zope 2.8.3 is not possible

2005-10-21 Thread Michael Haubenwallner
Chris Withers wrote: Jim Fulton wrote: I made an attempt to document the hardware setup. I announced this a long time ago. If you have the right privileges, you can: svn co svn+ssh://svn.zope.org/repos/zope.org/system-documentation/trunk I don't think it's up to date, but it does

[Zope] ZCatalog: searching where on index == another index

2005-10-21 Thread Etienne Labuschagne
Hi all, Is there a way to search for all the records where one indexed field equals another indexed field? Equivalent SQL query would be: SELECT * FROM table WHERE field1 = field2 I know I can get all the unique values for field1 and then do a search for records where field2 = [unique field1

Re: [Zope] ZCatalog: searching where on index == another index

2005-10-21 Thread Andreas Jung
--On 21. Oktober 2005 13:00:35 +0200 Etienne Labuschagne [EMAIL PROTECTED] wrote: Hi all, Is there a way to search for all the records where one indexed field equals another indexed field? no. -aj pgpT5FL2z86QW.pgp Description: PGP signature

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-21 Thread Anders Bruun Olsen
On Thu, Oct 20, 2005 at 09:43:24PM +0200, Dieter Maurer wrote: asonhe is not there, but vitester has a __getitem__ method which executes a PageTemplateFile instance and returns it. I.e. Thus, it returns a string. However, ZPublisher requires that all intermediate traversal steps return an

[Zope] FTP or WebDav creates empty files

2005-10-21 Thread D Washburn
I have a desktop program that develops DTML pages for a ZOPE/PLONE website. I planned to upload them via FTP or WebDav. When they arrive they are empty. I can upload graphics via FTP and the images arrive OK. So basic transfer works. Any ideas on setting or changes needed to make the text

Re: [Zope] database connections from external method

2005-10-21 Thread Chris Withers
Vangelis Mihalopoulos wrote: Tino Wildenhain wrote: The threading is handled by the ZDA, so you can use query() or what the method actually is. I couldn't find a method like that... any hints? Have a look at the ZSQL methods code, I remember this being pretty old and convoluted :-(

Re: [Zope] database connections from external method

2005-10-21 Thread Chris Withers
Vangelis Mihalopoulos wrote: I am loading the zodb in read-only mode. If someone breaks into Zope What do you mean by this? (which btw i believe to be very secure) The why do you consider it a risk? i don't want him to be able to directly access (read/write) the database i am using.

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-21 Thread Chris Withers
Anders Bruun Olsen wrote: Ahh.. that makes sense I guess. It just seems counterintuitive that you can return a string in a normal function, but not in __getitem__. I have a feeling you're after traverse_subpath, which is available in both Python Scripts and Page Templates... cheers, Chris

Re: [Zope] [OT] ParsedXML dev mail list

2005-10-21 Thread Chris Withers
Garito wrote: Sorry for the off topic but I try to subscribe to ParsedXML dev mail list but I can't (mail list doesn't exists) Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product? You could always try asking about your problem on this list... cheers, Chris -- Simplistix -

Re: [Zope] Re: implicit vs. explicit ownership?

2005-10-21 Thread Chris Withers
Jürgen Herrmann wrote: hmm, i'm a bit confused now. do you say that changeOwnershipType() only has to do with executeable ownership? Yep, I think so... especially i have to know which methods of the IOwned interface are essential and have to be reimplemented properly on my objects. Why do

Re: [Zope] write file to FS (LocalFS?)

2005-10-21 Thread Chris Withers
Dieter Maurer wrote: Be careful with External Methods and locks: An External Method does not share the module namespace with the same External Methods in other workers. Thus, you should not use locks defined in the source file of the External Method (but outside in a true Python

Re: [Zope] Re: inheriting from SimpleUserFolder's User

2005-10-21 Thread Chris Withers
Florent Guillaume wrote: Actually all third-party userfolders I know of reimplement allowed() in terms of calling getRolesInContext(). SUF doesn't, it aims to keep Simple ;-) I would like to see this fixed in Zope though, I agree the code that's there probably isn't much fo a performance

[Zope] Re: implicit vs. explicit ownership?

2005-10-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Jürgen Herrmann wrote: hmm, i'm a bit confused now. do you say that changeOwnershipType() only has to do with executeable ownership? Yep, I think so... especially i have to know which methods of the IOwned interface

[Zope] Question: What Workflow tool to choose?

2005-10-21 Thread Robert Boyd
I've been tasked with rapidly developing a demo for a proposed workflow application using Zope. I have plenty of CMF experience including customized workflows based on DCWorkflow, but I'm wondering what other workflows are actively supported and of production quality. In the past I've read blurbs

Re: [Zope] Question: What Workflow tool to choose?

2005-10-21 Thread Andreas Jung
--On 21. Oktober 2005 12:18:31 -0400 Robert Boyd [EMAIL PROTECTED] wrote: I've been tasked with rapidly developing a demo for a proposed workflow application using Zope. I have plenty of CMF experience including customized workflows based on DCWorkflow, but I'm wondering what other

Re: [Zope] [OT] ParsedXML dev mail list

2005-10-21 Thread Fred Drake
On 10/21/05, Chris Withers [EMAIL PROTECTED] wrote: Garito wrote: Sorry for the off topic but I try to subscribe to ParsedXML dev mail list but I can't (mail list doesn't exists) Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product? You could always try asking about your

Re: [Zope] ZCatalog: searching where on index == another index

2005-10-21 Thread Dieter Maurer
Etienne Labuschagne wrote at 2005-10-21 13:00 +0200: Is there a way to search for all the records where one indexed field equals another indexed field? Equivalent SQL query would be: SELECT * FROM table WHERE field1 = field2 If the index has only a few different values, enumerating them may be

Re: [Zope] FTP or WebDav creates empty files

2005-10-21 Thread Dieter Maurer
D Washburn wrote at 2005-10-21 10:03 -0400: I have a desktop program that develops DTML pages for a ZOPE/PLONE website. I planned to upload them via FTP or WebDav. When they arrive they are empty. This usually works. Are you sure, your files do not contain bugs? Can you upload the same file

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-21 Thread Dieter Maurer
Anders Bruun Olsen wrote at 2005-10-21 15:06 +0200: ... Ahh.. that makes sense I guess. It just seems counterintuitive that you can return a string in a normal function, but not in __getitem__. Can can return a string from __getitem__ (without problem), *but* you cannot use this string during

[Zope] Zope crashing a RedHat installation?

2005-10-21 Thread Aaron Bauman
Hi, We're running Zope 2.7.3, Plone 1.0.something relatively large Data.fs ( 300MB ) Decent amount of anonymous traffic, But relatively low administrative use (1 - 2 users usually). Could these factors be brining the machine down? I've been getting intermittent 'corrupted data' messages for

Re: [Zope] Zope crashing a RedHat installation?

2005-10-21 Thread Rakotomandimby Mihamina
On Fri, 2005-10-21 at 15:50 -0400, Aaron Bauman wrote: Hi, Hi, We're running Zope 2.7.3, Plone 1.0.something relatively large Data.fs ( 300MB ) But relatively low administrative use (1 - 2 users usually). Could these factors be brining the machine down? What products? just Plone 1.0.x?

Re: [Zope] Zope crashing a RedHat installation?

2005-10-21 Thread Jens Vagelpohl
On 21 Oct 2005, at 20:50, Aaron Bauman wrote: Hi, We're running Zope 2.7.3, Plone 1.0.something relatively large Data.fs ( 300MB ) Decent amount of anonymous traffic, But relatively low administrative use (1 - 2 users usually). Could these factors be brining the machine down? I've been

[Zope] Zope Install Best Practice - Newbie Questions

2005-10-21 Thread Russell Winter
Folks, First post from a real newbie, I have currently got Zope installed under a test server and would like to ensure that I get things right for our production environment. Being a complete newbie to Zope I would like to be sure I am doing things right and understood the numerous

Re: [Zope] fine grained, dynamic permissions based on attribute values

2005-10-21 Thread Robert Boyd
On 10/18/05, Chris Crownhart [EMAIL PROTECTED] wrote: Good day, I am wondering if/how I could control the permissions on an object based on the value of an attribute. So, as an example, I have multiple users, and multiple values for the category field. I would like User A to access the

Re: [Zope] Zope Install Best Practice - Newbie Questions

2005-10-21 Thread robert rottermann
Russel, we do install our zope/plone instances in a simmilar way you did. in addition to the steps you described we the do the following - make Zope-2.7 and Zope-2.8 a softlink to the respective source directory and then create the instances from the Zope-2.X/bin directory. the

[Zope] Re: use Data.fs from mountpoint B to populate mountpoint A - how?

2005-10-21 Thread Dieter Maurer
Please send all Zope related questions to a Zope related mailing list and not to me privately. Usually, I do not answer questions sent to me privately! I added zope@zope.org. Christoph Berendes wrote at 2005-10-21 14:12 -0400: I created a mount point, /default_site and a corresponding directory

Re: [Zope-DB] MySQL

2005-10-21 Thread Michele Marcionelli
Ciao Dario, I want to use MySQL in my Zope Installation. But I'm not able to install software (I don't really understand what shall I use and what shall I do...) I'm using Zope: 2.8.1 MySQL 4.1 Windows XP You have to install MySQL for Python:

Re: [Zope-DB] MySQL

2005-10-21 Thread Michele Marcionelli
When I try to execute MySQL-python.exe-1.2.0.win32-py2.4.exe I receive a message Box saying: ...MSVCR71.dll not found (I receive a message in italian..) Thanks Dario I'm sorry, but I don't live in the Windows world... With a quick google-search I found: .NET Framework SDK Version 1.1:

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Chris Withers
Cynthia Kiser wrote: open. FYI just closing the database connection via the ZMI does not release the idle connections Oracle still sees. Yes, that button actually does nothing ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Chris Withers
Dieter Maurer wrote: Usually, there is not need for a sophisticated connection management. Just do not create unnecessary DA instances. Yes, this is the most common mistake... Bugs should be fixed and not worked around with more complex software (complex connection management). Well, it