Re: [Zope3-Users] Many problems with static-apidoc script...

2006-10-28 Thread Florian Lindner
Am Samstag, 28. Oktober 2006 01:18 schrieb KLEIN Stéphane:
 Hi,

 I've one zope3 instance in : ~/zope/instance/2/

 When I do :

 cd ~/zope/instance/2/bin
 ./static-apidoc -d ~/zope/doc/

 I've this error :

[...]


 What is my mistake ? How can I use static-apidoc script ?

At the moment you can't really use it. It's broken. I've lately done some work 
at it but were not able to fix it entirely.

You should get this: (with the SVN trunk)

horus bin # ./static-apidoc -d /home/florian/z3-doc/
INFO: PublisherBrowser is broken. Please use OnlineBrowser instead 
(--webserver).

with the webserver option:

horus bin # ./static-apidoc --webserver -d /home/florian/z3-doc/
INFO: Starting retrieval.
[...]

it should work. Don't forget to set username and password and a zope instance 
needs to be running. The scripts runs fine (when I tried it the last time) 
but the generated HTML pages are not changed from dynamic to static apidoc 
entirely and therefore not really work.

Regards,

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


Re: [Zope3-Users] Many problems with static-apidoc script...

2006-10-28 Thread KLEIN Stéphane

2006/10/28, Florian Lindner [EMAIL PROTECTED]:

Am Samstag, 28. Oktober 2006 01:18 schrieb KLEIN Stéphane:
 Hi,

 I've one zope3 instance in : ~/zope/instance/2/

 When I do :

 cd ~/zope/instance/2/bin
 ./static-apidoc -d ~/zope/doc/

 I've this error :

[...]


 What is my mistake ? How can I use static-apidoc script ?

At the moment you can't really use it. It's broken. I've lately done some work
at it but were not able to fix it entirely.

You should get this: (with the SVN trunk)


Ok, /trunk/src/zope/app/apidoc/static.py work fine.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Many problems with static-apidoc script...

2006-10-27 Thread KLEIN Stéphane

Hi,

I've one zope3 instance in : ~/zope/instance/2/

When I do :

cd ~/zope/instance/2/bin
./static-apidoc -d ~/zope/doc/

I've this error :

Traceback (most recent call last):
 File ./static-apidoc, line 31, in ?
   main()
 File /home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py,
line 504, in main
   maker.start()
 File /home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py,
line 193, in start
   self.browser = PublisherBrowser()
 File /home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py,
line 141, in __init__
   functional.Functional.setUp()
 File /home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py,
line 198, in setUp
   FunctionalTestSetup(self.config_file)
 File /home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py,
line 139, in __init__
   self.app = Debugger(self.db, config_file)
 File /home/harobed/zope/opt2//lib/python/zope/app/debug/debug.py,
line 35, in __init__
   config(config_file)
 File /home/harobed/zope/opt2//lib/python/zope/app/appsetup/appsetup.py,
line 110, in config
   context = xmlconfig.file(file, context=context, execute=execute)
 File /home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py,
line 579, in file
   include(context, name, package)
 File /home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py,
line 508, in include
   f = openInOrPlain(path)
 File /home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py,
line 419, in openInOrPlain
   fp = open(filename)
IOError: [Errno 2] No such file or directory:
'/home/harobed/zope/instances/2/bin/ftesting.zcml'

When I do :

cd ~/zope/instance/2/
bin/static-apidoc -d ~/zope/doc/

I've this error :

Traceback (most recent call last):
 File bin/static-apidoc, line 31, in ?
   main()
 File /home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py,
line 504, in main
   maker.start()
 File /home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py,
line 200, in start
   self.browser._links_factory.urltags = urltags
 File /home/harobed/zope/opt2//lib/python/mechanize/_mechanize.py,
line 505, in __getattr__
   raise AttributeError(
AttributeError: class 'zope.app.apidoc.static.PublisherBrowser'
instance has no attribute _links_factory (perhaps you forgot to
.select_form()?)

What is my mistake ? How can I use static-apidoc script ?

Thanks for your help
Stephane
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users