[Zope3-Users] Urgent: What to do with ZODB.FileStorage.FileStorage.CorruptedTransactionError

2008-04-28 Thread Fet Biz

Yes, I has known that I got the Error.
But What to do with it? (And Why?)

Appreciate!
Iap

===

CRITICAL ZODB.FileStorage /home/workspace/zope3/var/Data.fs data record 
exceeds transaction record at 36977087

Traceback (most recent call last):
 File "zope3/bin/runzope", line 49, in ?
   run()
 File "zope3/bin/runzope", line 45, in run
   main(["-C", CONFIG_FILE] + sys.argv[1:])
 File "/usr/local/Zope-3.4.0c1/lib/python/zope/app/twisted/main.py", line 
74, in main

   service = setup(load_options(args))
 File "/usr/local/Zope-3.4.0c1/lib/python/zope/app/twisted/main.py", line 
147, in setup

   db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0]
 File "/usr/local/Zope-3.4.0c1/lib/python/zope/app/appsetup/appsetup.py", 
line 213, in multi_database

   db = factory.open()
 File "/usr/local/Zope-3.4.0c1/lib/python/ZODB/config.py", line 97, in open
   storage = section.storage.open()
 File "/usr/local/Zope-3.4.0c1/lib/python/ZODB/config.py", line 135, in 
open

   quota=self.config.quota)
 File "/usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py", 
line 164, in __init__

   ltid=ltid, start=start, read_only=read_only,
 File "/usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py", 
line 1729, in read_index

   name, pos)
 File "/usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py", 
line 53, in panic

   raise CorruptedTransactionError(message)
ZODB.FileStorage.FileStorage.CorruptedTransactionError: %s data record 
exceeds transaction record at %s



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] weird parsing, is this a bug? Re: What's wrong to this html block to testbrowser.Browser?

2008-04-20 Thread Fet Biz
I found that "" is critical to the testbrowser.browser's content 
parsing:


Block A: (with a "" in 1st line and 2 options of : throws 
ParseError: OPTION outside of SELECT)


value="uid=MailUser,dc=totalbb,dc=net.dc=tw"/>


  uid=MailUser,dc=totalbb,dc=net.dc=twuid=powerMailUser,dc=totalbb,dc=net.dc=tw 
Block B: (with only one "option", does not raise ParseError) 
   
uid=MailUser,dc=totalbb,dc=net.dc=tw 
Block C:(remove the "", even 2 options does not raise 
ParseError)---
-
uid=MailUser,dc=totalbb,dc=net.dc=tw
uid=powerMailUser,dc=totalbb,dc=net.dc=tw 
 the 
traceback:Traceback (most recent call last):  File 
"/mnt/data/workspace/ooldapsoap/ooldapproxysoap.py", line 17, in__call__result = self.func(*args,**kw)  File "/mnt/data/workspace/ooldapsoap/ooldapproxysoap.py", line 78, in_soap_addEntr
ycode,message = self.browser.addEntry(folderpath,objectClass,**attrs)  File "/mnt/data/workspace/ooldapsoap/browser.py", line 100, in addEntry
code,message  = self._findSoapResult()  File "/mnt/data/workspace/ooldapsoap/browser.py", line 24, in_findSoapResultcodeControl = 
self.Browser.getControl(name="soap_result_code")  File "/usr/local/Zope-3.4.0c1/lib/python/zope/testbrowser/browser.py",line 335, in getControl  
  intermediate, msg = self._get_all_controls(  File "/usr/local/Zope-3.4.0c1/lib/python/mechanize/_mechanize.py", line309, in formsreturn 
self._factory.forms()  File "/usr/local/Zope-3.4.0c1/lib/python/mechanize/_html.py", line 560, informsself._forms_genf = CachingGeneratorFunction(  
File "/usr/local/Zope-3.4.0c1/lib/python/mechanize/_html.py", line 276, informsencoding=encoding,  File 
"/usr/local/Zope-3.4.0c1/lib/python/ClientForm/ClientForm.py", line929, in ParseResponseencoding,  File 
"/usr/local/Zope-3.4.0c1/lib/python/ClientForm/Cli
entForm.py", line959, in ParseFilefp.feed(data)  File "/usr/local/lib/python2.4/sgmllib.py", line 95, in feedself.goahead(0)  File 
"/usr/local/lib/python2.4/sgmllib.py", line 129, in goaheadk = self.parse_starttag(i)  File "/usr/local/lib/python2.4/sgmllib.py", line 283, 
in parse_starttagself.finish_starttag(tag, attrs)  File "/usr/local/lib/python2.4/sgmllib.py", line 317, in finish_starttag
self.handle_starttag(tag, method, attrs)  File "/usr/local/lib/python2.4/sgmllib.py", line 357, in handle_starttagmethod(attrs)  File 
"/usr/local/Zope-3.4.0c1/lib/python/ClientForm/ClientForm.py", line811, in do_option_AbstractFormParser._start_option(self, attrs)  File 
"/usr/local/Zope-3.4.0c1/lib/python/ClientForm/ClientForm.py", line547, in _start_optionraise ParseError("OPTION outside of 
SELECT")ParseError: OPTION outside of SELECT
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] What's wrong to this html block to testbrowser.Browser?

2008-04-19 Thread Fet Biz

If the retrieved Browser.contents contains the following block :


   value="uid=MailUser,dc=totalbb,dc=net.dc=tw">uid=MailUser,dc=totalbb,dc=net.dc=tw
   value="uid=powerMailUser,dc=totalbb,dc=net.dc=tw">uid=powerMailUser,dc=totalbb,dc=net.dc=tw




it complains:

 File "/usr/local/Zope-3.4.0c1/lib/python/ClientForm/ClientForm.py", line 
548, in _start_option

   raise ParseError("OPTION outside of SELECT")
ParseError: OPTION outside of SELECT

What's the problem of this block of html ?
Appreciate any suggestion.

Iap, Singuan 


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] How to set "excutable" permission for a container ?

2008-04-12 Thread Fet Biz

Hi,

Suppose "a" is an instance object of class A which implements interface IA,
in the configiure.zcml, "b" is a view for class A.

"a" is locked by requiring permission "A.canEdit".
"b" is intents to be public accessible (zope.Public).

My problem is that, since "b" is below "a", it's URL is:
http://host.domain:8080/a/b

but
http://host.domain:8080/a

is not accessible for public. then http://host.domain:8080/a/b is also not 
accessible neither.

although, "zope.Public" is declared in configure.zcml.

How can I get the "b" to be public? Just like the file permissions in the 
file system.
which means, If file "b" contains in folder "a", we can set chmod "o+x" to 
"a" and "o+r" to "b",

which results "b" is accessible and "a" is not accessible?

(The use case is "a" for the membership container, "b" is the membership 
apply form which should be public to non-members)


Thanks in advance

Iap, Singuan 


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] if "make check(test)" failure, should I "make install"?

2008-02-19 Thread Fet Biz
What to do next?

If the make test results:
--
 

Ran 9471 tests with 4 failures and 9 errors in 12 minutes 31.391 seconds.

Tests with errors:
   testInheritanceAcrossModules (zodbcode.tests.test_class.TestClass)
   testPersistentSubclass (zodbcode.tests.test_class.TestClass)
   testSavePersistentSubclass (zodbcode.tests.test_class.TestClass)
   testClass (zodbcode.tests.test_module.TestModule)
   testUpdateClass (zodbcode.tests.test_module.TestModule)
   testClassReload (zodbcode.tests.test_module.TestModuleReload)
   testAPPE (zope.server.ftp.tests.test_ftpserver.Tests)
   testSTOR (zope.server.ftp.tests.test_ftpserver.Tests)
   testSTOR_over (zope.server.ftp.tests.test_ftpserver.Tests)

Tests with failures:
   checkOldStyleRoot (ZODB.tests.testPersistentMapping.PMTests)
   testPatch (zodbcode.tests.test_patch.TestPatch)
   testPASS (zope.server.ftp.tests.test_ftpserver.Tests)
   
/root/zope3/Zope-3.4.0c1/build/lib.linux-i686-2.4/zope/testing/testrunner-layers-ntd.txt

--
 

Appreciate any suggestions.

Singuan Iap___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users