[Zope] Re: cannot access POST content in Zope

2007-08-20 Thread Manuel Spuhler
Thank you Tres,

if you have this problem, there is something in the Zope FAQ (!)
http://wiki.zope.org/zope2/FAQ#i-want-to-post-xml-content-but-zope-assumes-a-xmlrpc-request

For my Zope 2.9, the configure.zcml file would not work.
At first sight the XmlFix could work for Zope 2.9, it didn't for me
because I have SOAPSupport installed, which already patch
ZPublisher.HTTPRequest

So I patched ZPublisher.HTTPRequest again

## this is MS hack to disable xmlrpc and send back the text/xml
  # Hm, maybe it's an XML-RPC
if (fs.headers.has_key('content-type') and
'text/xml' in fs.headers['content-type'] and method == 'POST'):
form['xml']= fs.value
self.maybe_webdav_client = 0

I had to add a xml key, because as Tres Seaver said, ( I just
understood what you wrote when I dug into Zope, thank you for your
help ) the xml body is not marshalled. Then I got my xml back in
request.form['xml']

I'm not a Zope specialist, so it might sound terrible to do it like
this. If you have a nice way to code it, I'd love to learn it. At last
it works fine for me.

Regards

Manuel Spuhler
www.rsr.ch
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] cannot access POST content in Zope

2007-08-17 Thread Manuel Spuhler

Hi Andreas,

thank for your answer



No idea where and how you look for the uploaded content.
Everything in Zope is available from the REQUEST. And of course you  
can _not_ upload something to the mutator method of some object.  
This makes zero sense.
You might write your script that takes the data from the REQUEST  
and calls the API method e.g. a mutator method.


I think you misunderstood, curl send it in a form,  content is not  
*uploaded* but encoded in a POST 'text/xml'
and it's sent to a  script  from which which I look at  
request.RESPONSE.form, but it's empty when content-type is  
'application/x-www-form-urlencoded'

my problem is probably about content-type



P.S. Plone specific questions belong to the plone-users list


i think it is a Zope question, below the fact I'm using Plone

Regards

M.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] cannot access POST content in Zope

2007-08-17 Thread Manuel Spuhler

sorry I mean



 empty when content-type is 'text/xml'


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] cannot access POST content in Zope

2007-08-17 Thread Manuel Spuhler

Hello Martijn,

many thanks for your answer



Zope special-cases POST requests with content-type text/xml; it treats
these as XML-RPC requests. I don't think you can work around this
either. :(


Ok, I see, this is bad for me :-/



Take a look at HTTPRequest.processInputs in lib/python/HTTPRequest.py,
together with lib/python/xmlrpc.py in your Zope installation, to see
if you find a way around this, or where to patch to disable this.

The easier way would for you to alter the format in which the SMS
gateway contacts the Zope server, though. A properly encoded POST
request (multipart/form-data) would be much preferable and easier to
deal with than patching Zope ;).


I'll try the easiest way first,
but as it's not standard, I might have to patch Zope

in HTTPRequest.py I found

# Hm, maybe it's an XML-RPC
if (fs.headers.has_key('content-type') and
'text/xml' in fs.headers['content-type'] and
method == 'POST'):
# Ye haaa, XML-RPC!

This could make my day ;-)

Regards

Manuel Spuhler



--
Martijn Pieters


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] cannot access POST content in Zope

2007-08-16 Thread Manuel Spuhler
Hello,

I am trying to record the result of a POST request sent to Plone.

I can get the content of the POST when I send the file post.xml (valid xml)

curl http://elevator.sytes.net/RSR/setSMS -d @post.xml

In this case, CONTENT_TYPE headers is set to
'application/x-www-form-urlencoded' by curl.

but the content of the POST is empty when I do

curl http://elevator.sytes.net/RSR/setSMS -H Content-Type: text/xml
-d @post.xml

I'm working on integrating SMS on Plone, and the external system sends
me a text/xml header, text/xml is the right type, I think, according
rfc 3023

I have been tracking the frames through tcpdump and the request looks
good before zope.

I have then parsed the code of Zope to find where I could change this,
but I can't figure it out for the moment, and maybe it's something
which need to be changed.

Could you help me to fix this please?

Best regards

Manuel Spuhler
www.rsr.ch


Zope 2.9.7-final, python 2.4.4, Plone 2.5.3
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] documentation about the :method

2007-02-08 Thread Manuel Spuhler

Hello Martin,

quoted from http://www.plope.com/Books/2_7Edition/ScriptingZope.stx
action
Appends the attribute value to the original form action of the form.
This is mostly useful for the case in which you have multiple submit
buttons on one form. Each button can be assigned to a script that gets
called when that button is clicked to submit the form. A synonym for
action is method.

so basically, I interpretted it like: 'foo:action' == 'foo:method',
but it's unclear. Thanks for your precision.

Manuel



2007/2/8, Martijn Pieters [EMAIL PROTECTED]:

On 2/7/07, Andreas Jung [EMAIL PROTECTED] wrote:
 http://www.plope.com/Books/2_7Edition/ScriptingZope.stx

Andreas, that doesn't speak a word about the form-field modifier 'method'.

  I am looking for some documentation about the :method used in some
  forms, for instance  name=discussion_reply:method, but can't find
  anything.

If the request finds a form field ending in :method in the request,
the id before it is appended to the request URL. This way you can have
multiple callables (scripts, objects, methods, whatever) process the
information from one form, depending on what submit button was
pressed.

It works as follows:

1/ create a form that POSTS to server/path/
2/ use submit buttons named like 'foo:method' and 'bar:method'
3/ Create 'foo' and 'bar' in /path/ (or have them available there
through acquisition or skins)

Now, when a user clicks the 'foo:method' button, Zope receives a form
for server/path/, and modifies the request to go to server/path/foo
instead. If 'bar:method' was pressed, the request ends  up at
server/path/bar instead.

HTH,

--
Martijn Pieters


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] documentation about the :method

2007-02-07 Thread Manuel Spuhler

Hello,

I posted this question in the Plone-Users List, but it might be more a
Zope stuff.

I am looking for some documentation about the :method used in some
forms, for instance  name=discussion_reply:method, but can't find anything.

Thanks for any pointers

Manuel Spuhler
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] documentation about the :method

2007-02-07 Thread Manuel Spuhler

Hi Marco,

thanks for your input. What I can't understand is that in some case
the string before the :method is the id of the current template, so
I have current_template:method  and 'current_template' is a page
template, not a method, that's why I don't get it.

regards

M.

2007/2/7, Marco Bizzarri [EMAIL PROTECTED]:

On 2/7/07, Manuel Spuhler [EMAIL PROTECTED] wrote:
 Hello,

 I posted this question in the Plone-Users List, but it might be more a
 Zope stuff.

 I am looking for some documentation about the :method used in some
 forms, for instance  name=discussion_reply:method, but can't find anything.

 Thanks for any pointers

 Manuel Spuhler

I can't provide pointers, but can share what I understand about it.

If the user clicks on an input submit with the name testMethod:method, the
testMethod will be invoked instead of the action of your form.

So, in your example, if you click on the discussion_reply, the discussion_reply
method/script will be called instead.

Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/




--
Manuel Spuhler

Développeur Web -  www.rsr.ch
Radio Suisse Romande
30, av. Temple
CH - 1010 Lausanne

Mail: [EMAIL PROTECTED]
Phone: +41 21 318 60 86
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-15 Thread manuel spuhler
Hello David,  sorry, I meant you before, but hey, hello too Dieter ;-)

I think I broke the thread, sorry for reposting:

I finally manage to install and run Zope 2.8.6 on Mac Intel after
installing the Universal package of python 2.4.3 for os x
(http://www.python.org/download/releases/2.4.3/).

Then I did the usual unix stuff:
$./configure --with-python=/usr/local/bin/python --prefix=/opt/Zope2.8
 make make install
$ /opt/Zope2.8/bin/mkzopeinstance.py

Even if this Python version is not supported, I didn't notice (yet;-)
any problem. As far as I know, it's the 1st Zope 2.8.6 and Plone 2.11
on Mac Intel and it's at least as fast as on Linux !!!

Thank you all for your help and happy zoping!

Manuel


Zope Version
(Zope 2.8.6-final, python 2.4.3, darwin)
Python Version
2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)]
System Platform
darwinope Version
(Zope 2.8.6-final, python 2.4.3, darwin)
Python Version
2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)]
System Platform
darwin
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread manuel spuhler
Hello Dieter,

Thanks for your help, I have Zope 2.8.6 and Python 2.3.5 compiled with
Fink. I also had the same problem with python 2.3.5 from Apple, which
is known to lack some features, so you might be right with conflicting
Python version. Under Unbutu, I used to compile Zope with python-devel
package installed, but can't find it for os x. I'm going to try a few
more python distro, like darwinport or macpython to see if it works.

Manuel



2006/4/14, David H [EMAIL PROTECTED]:
  Dieter Maurer wrote:
  manuel spuhler wrote at 2006-4-12 21:40 +0200:


  ...
  File /opt/Zope2.8/lib/python/ZODB/__init__.py, line 21,
 in ?
  from persistent import TimeStamp
  File /opt/Zope2.8/lib/python/persistent/__init__.py,
 line 19, in ?
  from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
 ImportError: Inappropriate file type for dynamic loading

  Something is wrong with your cPersistent.so file.

  It should be a dynamically loaded shared object but somehow it is not.

 I cannot tell you why...



  Manuel,

  Last time I saw cPersistent.so mentioned as a problem it had to do with
 conflicting python versions.  No idea either, otherwise.
  Did you mention your zope version *and* the python versions you are using?
 (check your control panel) Didnt see the start of this thread.

  David



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope 2.8.6 on Mac Intel: Resolved

2006-04-14 Thread manuel spuhler
Hello David,  sorry, I meant you before, but hey, hello too Dieter ;-)

I finally manage to install and run Zope 2.8.6 on Mac Intel after
installing the Universal package of python 2.4.3 for os x 
(http://www.python.org/download/releases/2.4.3/).

Then I did the usual unix stuff:
$./configure --with-python=/usr/local/bin/python --prefix=/opt/Zope2.8
 make make install
$ /opt/Zope2.8/bin/mkzopeinstance.py

Even if this Python version is not supported, I didn't notice (yet;-)
any problem. As far as I know, it's the 1st Zope 2.8.6 and Plone 2.11
on Mac Intel and it's at least as fast as on Linux !!!

Thank you all for your help and happy zoping!

Manuel


Zope Version
(Zope 2.8.6-final, python 2.4.3, darwin)
Python Version
2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)]
System Platform
darwinope Version
(Zope 2.8.6-final, python 2.4.3, darwin)
Python Version
2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)]
System Platform
darwin
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread manuel spuhler
Thank you, I tried that already, but for some reasons, it did'nt work

2006/4/14, Jens Vagelpohl [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I don't see how a packaged Python that is possibly compiled with
 dubious options and split up along dubious lines into Python, Python-
 dev and Python-whatever is better than a self-compiled Python on OS X.

 The following document tells you how to do it:

 http://www.zope.org/Members/jens/docs/Document.2003-12-27.2431/view

 Self-compiling is not rocket science.

 jens


 On 14 Apr 2006, at 22:21, manuel spuhler wrote:

  Hello Dieter,
 
  Thanks for your help, I have Zope 2.8.6 and Python 2.3.5 compiled with
  Fink. I also had the same problem with python 2.3.5 from Apple, which
  is known to lack some features, so you might be right with conflicting
  Python version. Under Unbutu, I used to compile Zope with python-devel
  package installed, but can't find it for os x. I'm going to try a few
  more python distro, like darwinport or macpython to see if it works.
 
  Manuel
 
 
 
  2006/4/14, David H [EMAIL PROTECTED]:
   Dieter Maurer wrote:
   manuel spuhler wrote at 2006-4-12 21:40 +0200:
 
 
   ...
   File /opt/Zope2.8/lib/python/ZODB/__init__.py, line 21,
  in ?
   from persistent import TimeStamp
   File /opt/Zope2.8/lib/python/persistent/__init__.py,
  line 19, in ?
   from cPersistence import Persistent, GHOST, UPTODATE, CHANGED,
  STICKY
  ImportError: Inappropriate file type for dynamic loading
 
   Something is wrong with your cPersistent.so file.
 
   It should be a dynamically loaded shared object but somehow it is
  not.
 
  I cannot tell you why...
 
 
 
   Manuel,
 
   Last time I saw cPersistent.so mentioned as a problem it had to
  do with
  conflicting python versions.  No idea either, otherwise.
   Did you mention your zope version *and* the python versions you
  are using?
  (check your control panel) Didnt see the start of this thread.
 
   David

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (Darwin)

 iD8DBQFEQA4ZRAx5nvEhZLIRAuxjAJ4jAG6yti+W8hAIqfs6A1+//CybmACggGch
 PTs20xqyKq0mp0ImM5FhdEk=
 =cd3I
 -END PGP SIGNATURE-
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-12 Thread manuel spuhler
Hello,

I re-installed Tiger on my Mac from scratch, and tried to compile Zope
(with python from Fink). Hopefully, everything went fine this time.

Then I succeeded to instanciate Zope.

And I started Zope, and it failed, bouhouhou.

As I am totally new in Python/C I don't know what the error means.
Have you an idea for me please?

Here is the trace:

/plone/bin/zopectl start
Traceback (most recent call last):
  File /opt/Zope2.8/lib/python/Zope2/Startup/zopectl.py, line 322, in ?
main()
  File /opt/Zope2.8/lib/python/Zope2/Startup/zopectl.py, line 280, in main
options.realize(args)
  File /opt/Zope2.8/lib/python/Zope2/Startup/zopectl.py, line 91, in realize
ZDOptions.realize(self, *args, **kw)
  File /opt/Zope2.8/lib/python/zdaemon/zdoptions.py, line 273, in realize
self.load_schema()
  File /opt/Zope2.8/lib/python/zdaemon/zdoptions.py, line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
  File /opt/Zope2.8/lib/python/ZConfig/loader.py, line 31, in loadSchema
return SchemaLoader().loadURL(url)
  File /opt/Zope2.8/lib/python/ZConfig/loader.py, line 65, in loadURL
return self.loadResource(r)
  File /opt/Zope2.8/lib/python/ZConfig/loader.py, line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
  File /opt/Zope2.8/lib/python/ZConfig/schema.py, line 27, in parseResource
xml.sax.parse(resource.file, parser)
  File /opt/Zope2.8/lib/python/Zope2/Startup/__init__.py, line 33, in parse
check_python_version()
  File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/xml/sax/expatreader.py,
line 107, in parse
  File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/xml/sax/xmlreader.py,
line 123, in parse
  File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/xml/sax/expatreader.py,
line 207, in feed
  File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/xml/sax/expatreader.py,
line 300, in start_element
  File /opt/Zope2.8/lib/python/ZConfig/schema.py, line 99, in startElement
getattr(self, start_ + name)(attrs)
  File /opt/Zope2.8/lib/python/ZConfig/schema.py, line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File /opt/Zope2.8/lib/python/ZConfig/schema.py, line 201, in
get_sect_typeinfo
datatype = self.get_datatype(attrs, datatype, null, base)
  File /opt/Zope2.8/lib/python/ZConfig/schema.py, line 194, in get_datatype
return self._registry.get(dtname)
  File /opt/Zope2.8/lib/python/ZConfig/datatypes.py, line 398, in get
t = self.search(name)
  File /opt/Zope2.8/lib/python/ZConfig/datatypes.py, line 423, in search
package = __import__(n, g, g, component)
  File /opt/Zope2.8/lib/python/Zope2/Startup/datatypes.py, line 20, in ?
from ZODB.config import ZODBDatabase
  File /opt/Zope2.8/lib/python/ZODB/__init__.py, line 21, in ?
from persistent import TimeStamp
  File /opt/Zope2.8/lib/python/persistent/__init__.py, line 19, in ?
from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: Inappropriate file type for dynamic loading
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-22 Thread manuel spuhler
Zope/Plone binary installer from http://plone.org/products/plone runs perfectly on Mac Intel !;-)
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread manuel spuhler
you need zlib support compiled into python, this is only done, if thezlib header files are found at configure time
do you have it?I have zlib included at configure time
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread manuel spuhler
on osx i would suggest using darwinports anywayTried with darwinports compiled form source (best on mac intel), and got the same error. 
$ ./configure --with-python=/opt/local/bin/python2.3  make... error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not existmake: *** [build] Error 1
Anybody can tell me where I could start to try to fix this?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-19 Thread manuel spuhler
Hello,

Thank you for your hints. I successfully compiled python2.3.5 for OS
10.4, as described in Florent Guillaume's blog, but when I try to
compile Zope, I get the same error:

$ ./configure --prefix=/opt/Zope2.8 --with-python=/usr/local/bin/python2.3

Using Python interpreter at /usr/local/bin/python2.3

Configuring Zope installation

  - Zope top-level binary directory will be /opt/Zope2.8.
  - Makefile written.

  Next, run make.

$ make
/usr/local/bin/python2.3 /Users/spuhlema/Desktop/Zope-2.8.6-final/setup.py \
build
--build-base=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3
--build-lib=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib
--build-scripts=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-scripts
--build-temp=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-temp
running build
running build_py
error: package directory
'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not
exist
make: *** [build] Error 1

I guess Python doesn't compile equally on PowerPc and Intel.
Any idea?


2006/3/19, Jens Vagelpohl [EMAIL PROTECTED]:
  $ make
  /usr/bin/python /Users/spuhlema/Desktop/Zope-2.8.6-final/
  setup.py \
  build
  --build-base=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/
  python-2.3
  --build-lib=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/
  python-2.3/build-lib
  --build-scripts=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-
  base/python-2.3/build-scripts
  --build-temp=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/
  python-2.3/build-temp

 This line shows you are using the system Python at /usr/bin/python.
 Don't. It's no good at all for compiling anything. Run configure
 with the --with-python=/path/to/python flag to use a self-compiled
 Python.

 I have never used the Fink Python. It is child's play to compile
 Python yourself (with the exception of Python 2.3.5 on OS X 10.4), so
 that's the way to go. Here's the instructions I work from:

 http://www.zope.org/Members/jens/docs/Document.2003-12-27.2431

 These are not written for OS X/i386, but I'd be surprised if they
 didn't work on both platforms.

 jens

 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] zope 2.8.6 on Mac Intel

2006-03-18 Thread manuel spuhler
Hi,

does anyone know how-to compile Zope 2.8.6 on a OS X system with an
Intel processor?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope 2.8.6 on Mac Intel

2006-03-18 Thread manuel spuhler
I did not yet installed expat, so I ignore it at start. I don't think
it's the problem, for I tried with python from fink, expat installed
and got the same error.


Here is the traceback

$ ./configure --prefix=/opt/Zope2.8 --ignore-expat

Configuring Zope installation

Testing for an acceptable Python interpreter...

Python version 2.3.5 found at /usr/bin/python

The optimum Python version (2.3.5) was found at /usr/bin/python.

  - Zope top-level binary directory will be /opt/Zope2.8.
  - Makefile written.

  Next, run make.

$ make
/usr/bin/python /Users/spuhlema/Desktop/Zope-2.8.6-final/setup.py \
build
--build-base=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3
--build-lib=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib
--build-scripts=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-scripts
--build-temp=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-temp
running build
running build_py
creating /Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3
creating 
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib
creating 
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig
creating 
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig/components
creating 
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig/components/basic
creating 
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig/components/basic/tests
copying ZConfig/components/basic/tests/__init__.py -
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig/components/basic/tests
copying ZConfig/components/basic/tests/test_mapping.py -
/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/python-2.3/build-lib/ZConfig/components/basic/tests
error: package directory
'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not
exist
make: *** [build] Error 1
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )