Re: [Repoze-dev] python 2.5 support?

2010-01-19 Thread Diez B. Roggisch
On Thursday 14 January 2010 18:33:27 Hanno Schlichting wrote:
 On Thu, Jan 14, 2010 at 6:30 PM, Diez B. Roggisch

 diez.roggi...@ableton.com wrote:
  I have an in-work (but stalled) branch to fix those issues.  You could
  try un-stalling it:
 
    svn+ssh://svn.zope.org/repos/main/Zope/branches/tseaver-fix_wsgi
 
  Sorry if this mail appears twice, it seems it didn't get through this
  morning.
 
  I can't access that branch, nor download a zipped version or some such
  through ViewCVS.

 You need to have commit access to the repository to use the svn+ssh
 url. Did you try the svn:// version?

 svn co svn://svn.zope.org/repos/main/Zope/branches/tseaver-fix_wsgi

That worked, thanks. Sorry for not thinking about that myself.

I made the branch work  fixed a small bug that after being applied seems to 
make things run. 

I attached a patch, just FYI.

The next question is: I really enjoy the WEDAV-support for editing 
DTML-methods and the like through Emacs.

Is there any way to mount the webdav server under a different url using 
paster? That would be golden

Diez
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] python 2.5 support?

2010-01-12 Thread Diez B. Roggisch
On Monday 21 December 2009 11:35:21 Tres Seaver wrote:
 Diez B. Roggisch wrote:
  zopelib was a way to get egg-based deployment of Zope prior to the fully
  egg-based 2.12.  You need either to upgrade to use Zope 2.12 (and drop
  zopelib), or else stay on Python 2.4.
 
  Ok, I'm happy to upgrade to zope2.12. In fact, I just installed it. But
  now obviously the recipes given on repoze.org doen't work. Googling for
  zope2  WSGI-integration only leads to them.
 
  Any suggestions on how to make zope2 work with mod_wsgi?

 The function, 'ZPublisher.WSGIPublisher.publish_module' is a WSGI
 application:  likely what you need is a your_app.wsgi module which calls
 the Zope starup code and then sets that function as 'spplication'.
 Something like (untested):

   # foo.wsgi
   from Zope2.startup import startup
   from ZPublisher.WSGIPublisher import publish_module as application
   startup()

 If you need to wire in other configuration, etc., then you likely want
 to use a PasteDeploy config file.  In that case, you need an app
 factory, something like:

   # your_app.py
   from Zope2.startup import startup
   from ZPublisher.WSGIPublisher import publish_module

   def zope_app_factory(global_config, **local_config):
   startup()
   return publish_module

 and then configure that in Paste:

   [app:your_app]
   use = your_app:zope_app_factory

 If you get this working, let us know, and we will get something like it
 added to Zope or repoze.zope2.


Ok, this is what I've got so far:

from paste import httpserver

from Zope2.Startup.run import configure
from Zope2 import startup
configure('./etc/zope.conf')
startup()

from ZPublisher.WSGIPublisher import publish_module as zope_application

def application(environ, start_response):
environ[SERVER_SOFTWARE] = bob
return zope_application(environ, start_response)


httpserver.serve(application, host='127.0.0.1', port='8080')


As you can see, you need to set that environ-key - otherwise, WSGIPublisher 
will die. It appears in the returned headers, but other than that it doesn't 
seem to have any impact.

I found the actual code based on this post:

  https://mail.zope.org/pipermail/zope-dev/2009-December/038862.html

In there, a problem is mentioned about with certain streamed content.

And I fear I've hit that problem as well - the ZMI looks as if it's missing 
parts. For example, the tab's rounded corners seem to be missing, the 
tree-view of the folder-structure isn't rendered correctly and so forth.

Any suggestions on this?

Regards,

Diez

-- 
Diez B. Roggisch

Ableton AG, Sitz: Berlin, Amtsgericht Berlin-Charlottenburg, HRB 72838
Vorstand: Gerhard Behles, Jan Bohl, Bernd Roggendorf
Vorsitzender des Aufsichtsrats: Uwe Struck
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] python 2.5 support?

2009-12-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Diez B. Roggisch wrote:
 zopelib was a way to get egg-based deployment of Zope prior to the fully
 egg-based 2.12.  You need either to upgrade to use Zope 2.12 (and drop
 zopelib), or else stay on Python 2.4.
 
 
 Ok, I'm happy to upgrade to zope2.12. In fact, I just installed it. But 
 now obviously the recipes given on repoze.org doen't work. Googling for 
 zope2  WSGI-integration only leads to them.
 
 Any suggestions on how to make zope2 work with mod_wsgi?

The function, 'ZPublisher.WSGIPublisher.publish_module' is a WSGI
application:  likely what you need is a your_app.wsgi module which calls
the Zope starup code and then sets that function as 'spplication'.
Something like (untested):

  # foo.wsgi
  from Zope2.startup import startup
  from ZPublisher.WSGIPublisher import publish_module as application
  startup()

If you need to wire in other configuration, etc., then you likely want
to use a PasteDeploy config file.  In that case, you need an app
factory, something like:

  # your_app.py
  from Zope2.startup import startup
  from ZPublisher.WSGIPublisher import publish_module

  def zope_app_factory(global_config, **local_config):
  startup()
  return publish_module

and then configure that in Paste:

  [app:your_app]
  use = your_app:zope_app_factory

If you get this working, let us know, and we will get something like it
added to Zope or repoze.zope2.



Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksvT2kACgkQ+gerLs4ltQ5L+ACgprTm8Fec+RjMsyfBOPh4+DWZ
YqcAoIzal0eM+oZwgRa6avrvRN2g+VDm
=j65l
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] python 2.5 support?

2009-12-20 Thread Diez B. Roggisch
 zopelib was a way to get egg-based deployment of Zope prior to the fully
 egg-based 2.12.  You need either to upgrade to use Zope 2.12 (and drop
 zopelib), or else stay on Python 2.4.


Ok, I'm happy to upgrade to zope2.12. In fact, I just installed it. But 
now obviously the recipes given on repoze.org doen't work. Googling for 
zope2  WSGI-integration only leads to them.

Any suggestions on how to make zope2 work with mod_wsgi?

Thanks,

Diez
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] python 2.5 support?

2009-12-15 Thread Malthe Borch
2009/12/15 Diez B. Roggisch diez.roggi...@ableton.com:
 I guess the question has been asked before, and I'm aware that the state of
 python 2.5 support is ultimately a zope-issue.

Python 2.5 is supported since two years. We commonly use Python 2.6 though.

\malthe
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] python 2.5 support?

2009-12-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Diez B. Roggisch wrote:
 On Tuesday 15 December 2009 17:55:58 Malthe Borch wrote:
 2009/12/15 Diez B. Roggisch diez.roggi...@ableton.com:
 I guess the question has been asked before, and I'm aware that the state
 of python 2.5 support is ultimately a zope-issue.
 Python 2.5 is supported since two years. We commonly use Python 2.6 though.
 
 Hm, I might have confused something then. But it says so on the Zope 2.11.4 
 release page:
 
   http://www.zope.org/Products/Zope/2.11.4/Zope-2-11-4-released
 
 that
 
 
 Zope 2.11 requires Python 2.4.5 (Python 2.4.4 is still acceptable). Older 
 Python versions are no longer supported. Python 2.5 is not supported at this 
 time.
 

Zope 2.11 is now the old stable version:  it won't ever be *supported*
on Pythonn 2.x where x = 4.  It may still *run* on a later Pyhont, however.

 And building zopelib with python2.5 lead to segfaults on my machine, and in 
 the installation instructions on 
 
  http://repoze.org/quickstart.html
 
 it says explicitly
 
 
 Please note that none of repoze.plone, repoze.zope2 or repoze.grok work 
 properly under Python 2.5. These packages require Python 2.4.
 

zopelib was a way to get egg-based deployment of Zope prior to the fully
egg-based 2.12.  You need either to upgrade to use Zope 2.12 (and drop
zopelib), or else stay on Python 2.4.



Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksnyI4ACgkQ+gerLs4ltQ42aQCfWUD8cuq795K+Dvv0ZzjYohnd
jkgAni7jhJIiQ9xhHXqd0L0WbPH07mp+
=9vgC
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev