[Zope-dev] Auto password expiry based on time

2003-08-15 Thread Exteam
Hi all, I have been trying to find a way to make the password to a zope site expire after a limited fixed time, unsuccesfully using python. I know I have to use acl_users but which file to modify in zope (which is used to log in the user)is the question. Also does this mean I have to recompile

Re: [Zope-dev] why cant i import types

2003-08-15 Thread paolo
Add a folder called GlobalModules in your Products directory and put in that folder a file called '__init__.py' with this content: from Products.PythonScripts.Utility import allow_module allow_module('types') with this you can't use "from types import *" but you can use the second form

Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi Chris, thank you. By the time I got it working when I first used filestorage, bootet zope so it created all folders as it wants and then stop zope and use that Data.fs for ZEO. Then I was able to mount the zeo as / I'll investigate this further and provide the examples. For now even the fallbac

Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Chris McDonough
This is because the default is to mount a temporary storage at /temp_folder. Since you overrode the default, you need to specify the tempfolder storage in the config. Something like this (untested) as an additional zodb_db entry should work: name sessions mount-point /temp_folder

Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Just a step in between: I found ZODB/component.xml, where there seem to be the definition of the relevant section of zope.conf. server localhost:12345 mount-point / cache-size 5000 pool-size 7 version-pool-size 3 version-cache-size 100 path $INSTANCE/var

Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi Chris, Chris McDonough wrote: mkzopeclient -z should go away. You should use the zope.conf file to configure mounted databases. Unfortunately I haven't had time to include adequate examples in the sample config, but it might help a bit to look at the lib/python/Zope/Startup/zopeschema.xml fil

Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Chris McDonough
mkzopeclient -z should go away. You should use the zope.conf file to configure mounted databases. Unfortunately I haven't had time to include adequate examples in the sample config, but it might help a bit to look at the lib/python/Zope/Startup/zopeschema.xml file. On Fri, 2003-08-15 at 15:11, T

[Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi, looking thru code, examples and documentation, it seems DBTab is included into Zope2.7. Now how to configure it? Should I use a dbtab.conf file as it was with 2.6? The mkzopeclient.py with -z option just builts a custom_zodb.py which does not seem to be very 2.7-alike. Shouldn't that configura

Re: [Zope-dev] Packing (still) hosed in 2.6.2?

2003-08-15 Thread Anthony Baxter
>>> "Jeremy Hylton" wrote > I don't recall that any of the pack bugs that we fixed caused this sort of > error. My first guess would be that the file is a bit damaged, perhaps in a > way that the old pack did not check. > Can you run fsdump.py and see if that output sheds any light. It will give

[Zope-dev] 501 NotImplemented in Zope 2.7 beta1

2003-08-15 Thread Jim Washington
I have been noticing a few "501 Not Implemented" errors in the ZMI in 2.7 beta. The ones I have encountered are fixed by changing method="get" to method="post" in the html/dtml forms in e.g., Aqueduct.py. I do not know the "proper" fix. Also, this is weird enough (and perhaps merely a beta issu

Re: [Zope-dev] Packing (still) hosed in 2.6.2?

2003-08-15 Thread Anthony Baxter
Woohoo! Fixed. I created an empty file, then used copyTransactionsFrom to copy all transactions across. This patched the backpointers. fsrecover.py should probably get some smarts to do something like this as well, but I've spent far too long on this problem already... :-/ from ZODB import FileS