[Zope-dev] I have two question. Would you help me please.

2002-01-10 Thread
Hello. First of all Happy New Year!This is korea. I am a zope student. On studying I have two question.Q1. How call the ZSQLMethod into script python.Firrst I write the script python named 'myscript' and the ZSQLMethod named 'mySqlMethod' myscript (script

Re: [Zope-dev] I have two question. Would you help me please.

2002-01-10 Thread Vincenzo Di Somma
Hi, Q1. How call the ZSQLMethod into script python. take a look at http://www.zope.org/Members/spinwing/ZSQL_Results Q2. How to display the list type data. You should give us more info, errors or trace back. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede:

[Zope-dev] Big problem.

2002-01-10 Thread Andrew T Sydelko
Urgh! While trying to get Zope 2.5.0b3 working I accidentally started a 2.5.0b3 ZEO client on a Zope 2.4.3 ZEO server. Doing this caused some stuff (Sessions?) to be added to the database. When the live 2.4.3 ZEO client stopped, it wouldn't restart with the following traceback: --

[Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Jeremy Hylton
Could you just undo enough transactions to get back to the old state? Or do you need to keep some of the changes you made? Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

[Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Andrew Sydelko
Jeremy Hylton wrote: Could you just undo enough transactions to get back to the old state? Or do you need to keep some of the changes you made? I'm not familiar with any tools that can go through transactions like this. Can you poing me towards a tool that allows me to see all the transactions

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Chris McDonough
Ugg. This is my fault. Get the tranalyzer (http://www.zope.org/Members/htrd/tranalyzer) Follow the instructions from Itamar's howto here: http://www.zope.org/Members/itamar/CorruptedZODB Andrew Sydelko wrote: Jeremy Hylton wrote: Could you just undo enough transactions to get back to the

[Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Jeremy Hylton
I don't know if a tool exists either. I think something quick could be hacked together, but I doubt I'd have time to do it anytime soon. I don't know if you up for some programming to accomplish this goal or not. There are a couple of ideas I have along these lines in case you or someone else

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Andrew Sydelko
Chris McDonough wrote: Try the original tranalyzer here instead: http://www.zope.org/Members/tsarna/Tranalyzer That's better, but it bombs out part way thru: Traceback (most recent call last): File ./tranalyzer.py, line 333, in ? main(sys.argv) File ./tranalyzer.py, line 325, in main

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Chris McDonough
Darn. At this point you can try just hacking off bits of file at the end of a *copy* of the Data.fs you have by using the trunctate method described in Itamar's howto. Start small and just cut off pieces at the end of the file until you're able to start Zope again. You might lose some data

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Chris McDonough
Note that untarring the attached products into your 2.4 Products directory should allow you to start 2.4 up with the Data.fs from your foray into 2.5 without needing to truncate anything. At that point you should be able to delete the session_data_manager, temp_folder, and browser_id_manager

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Andrew Sydelko
Chris McDonough wrote: Note that untarring the attached products into your 2.4 Products directory should allow you to start 2.4 up with the Data.fs from your foray into 2.5 without needing to truncate anything. At that point you should be able to delete the session_data_manager,

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Chris McDonough
Whoops, that wasn't quite enough. Also do this: Create the following Python file as unscrew.py in your 2_4/lib/python directory and run it. import Zope app = Zope.app() app._delObject('session_data_manager') app._delObject('browser_id_manager') app._delObject('temp_folder') del

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Andrew Sydelko
Chris McDonough wrote: Make sure you try the unscrew.py thing I sent over before doing that... Just tried it. It seemed to run fine, but I still get 404 Not found on /manage_main and 400 Bad Request on / --andy. ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Re: [ZODB-Dev] Big problem.

2002-01-10 Thread Andrew Sydelko
Chris McDonough wrote: Make sure you try the unscrew.py thing I sent over before doing that... sitting here waiting for you response to my last email saying that didn't work, I realized I hadn't deleted the cache before restarting. So, now that that the cache is gone, I restarted it up and it

[Zope-dev] more problems.

2002-01-10 Thread Andrew Sydelko
So, I thought I fixed my problems... But now I can't get to / or /manage_main again. Although I _can_ ftp in to see stuff. I don't understand the problem here... / returns 400 Bad Request /manage_main returns 404 Not Found --andy. ___ Zope-Dev

[Zope-dev] Re: [ZODB-Dev] more problems.

2002-01-10 Thread Chris McDonough
Is this before or after you applied the unscrew.py script? Andrew Sydelko wrote: So, I thought I fixed my problems... But now I can't get to / or /manage_main again. Although I _can_ ftp in to see stuff. I don't understand the problem here... / returns 400 Bad Request /manage_main

[Zope-dev] granting access to a single attribute with declarative security

2002-01-10 Thread Michael R. Bernstein
On Wed, 2002-01-09 at 10:13, Wolfram Kerber wrote: I didn't think you could have more than one setDefaultAccess in a class. If you can, then you can set: security.setDefaultAccess('deny') security.setDefaultAccess({'meta_type': 1}) The last 'setDefaultAccess' statement in a class