load_site problems (was: Re: [Zope] (no subject))

Gerhard Venter loper@ananzi.co.za
Wed, 22 Jan 2003 16:50:11 +0200


OK, I have learned that ZPublisher is not a Zope product
like CMF, and I have it in my filesystem where you said it
was.  I list the whole output at the end of this message.
 Thanks for your help.

Dieter Maurer wrote:

>Please use a good subject for your messages!
>
I normally do..!
>Gerhard Venter wrote at 2003-1-21 18:28 +0200:
> > I wanted to use load_site.py, but it seemed to fail,
> > because of errors like:
> > 400 Bad Request for  .......manage_addFolder
>You must provide more information. You stripped too
much...
>
> > and also because I don't have Zpublisher installed.  
>This almost surely means "ZPublisher". It is part
>of the Zope distribution and lives in
"<ZopeDir>/lib/python".
>
> > Some files were imported, but no subfolders.
>Maybe, the folder names were illegal in Zope?
>
>Tell us what the "........" above have been!
>
>
>Dieter

sv1:~ # python /opt/zope/utilities/load_site.py -v -u
superuser:mypassword http://<mydomain>/
/data3/docs/<myfolder>/<myfolder>website/
/opt/zope/lib/python/ZPublisher/BaseRequest.py:20:
RuntimeWarning: Python C API version mismatch for module
ExtensionClass: This Python has API version 1011, module
ExtensionClass has version 1010.
  from ExtensionClass import Base
upload_dir /data3/docs/<myfolder>/<myfolder>website/
Traceback (most recent call last):
  File "/opt/zope/utilities/load_site.py", line 302, in ?
    if __name__=='__main__': main()
  File "/opt/zope/utilities/load_site.py", line 102, in
main
    for f in files: upload_file(object, f)
  File "/opt/zope/utilities/load_site.py", line 112, in
upload_file
    if os.path.isdir(f): return upload_dir(object, f)
  File "/opt/zope/utilities/load_site.py", line 129, in
upload_dir
    call(object.manage_addFolder, id=name)
  File "/opt/zope/utilities/load_site.py", line 106, in
call
    try: apply(f,args, kw)
  File "/opt/zope/lib/python/ZPublisher/Client.py", line
155, in __call__
    self.handleError(query, ec, em, headers, response)
  File "/opt/zope/lib/python/ZPublisher/Client.py", line
170, in handleError
    raise t,
RemoteException(t,v,f,l,self.url,query,ec,em,response)
bci.NotFound: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US">    <head>     <meta
http-equiv="Content-Type" (File:
/opt/zope/lib/python/OFS/ObjectManager.py Line: 53)
400 Bad Request for http://<mydomain>//manage_addFolder


 
==
Download ringtones, logos and picture messages at Ananzi Mobile Fun.
http://www.ananzi.co.za/cgi-bin/goto.pl?mobile