[Grok-dev] buildout-generated config files in grokproject

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Feb 10 05:32:30 EST 2009

Uli Fouquet, on 2009-02-06:
> What currently is a bit annoying: when starting an instance in
> foreground, there is a message displayed saying::
>   $ ./bin/paster serve parts/etc/deploy.ini 
>   ------
>   2009-02-06T12:06:47 WARNING root Developer mode is enabled: this is a
>   security risk and should NOT be enabled on production servers. 
>   Developer mode can be turned off in etc/zope.conf
> The real path of zope.conf, however, is ``parts/etc/zope.conf``. Is
> there a way to fix this?

Well, the user should not touch parts/etc/zope.conf themselves, but
change etc/zope.conf and run bin/buildout.  We could add a comment in
etc/zope.conf that the user must run bin/buildout after making a

BTW, 'bin/xxx-ctl fg' and 'bin/paster server parts/etc/deploy.ini'
work fine: they ask me to log in.  But when I use debug.ini I just get
an Unauthorized error, without being offered a chance to login.  If I
am already logged in (because I first used deploy.ini) then debug.ini
works fine.  I don't know if this is something to fix in the debug.ini
of grokproject or somewhere else.  Here is the error:

URL: http://localhost:8080/
File '/home/maurits/shared-eggs/Paste-1.7.2-py2.4.egg/paste/evalexception/middleware.py', line 306 in respond
  app_iter = self.application(environ, detect_start_response)
File '/home/maurits/shared-eggs/zope.app.wsgi-3.4.1-py2.4.egg/zope/app/wsgi/__init__.py', line 54 in __call__
  request = publish(request, handle_errors=handle_errors)
File '/home/maurits/shared-eggs/zope.publisher-3.4.6-py2.4.egg/zope/publisher/publish.py', line 130 in publish
  obj = request.traverse(obj)
File '/home/maurits/shared-eggs/zope.publisher-3.4.6-py2.4.egg/zope/publisher/browser.py', line 534 in traverse
  ob, add_steps = publication.getDefaultTraversal(self, ob)
File '/home/maurits/shared-eggs/grok-1.0a1-py2.4.egg/grok/publication.py', line 104 in getDefaultTraversal
  obj, path = super(GrokBrowserPublication, self).getDefaultTraversal(
File '/home/maurits/shared-eggs/zope.app.publication-3.4.3-py2.4.egg/zope/app/publication/browser.py', line 66 in getDefaultTraversal
  return ob.browserDefault(request)
Unauthorized: (<grokui.admin.view.Index object at 0x9daf8ac>, 'browserDefault', 'grok.ManageApplications')

CGI Variables
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
  HTTP_ACCEPT_ENCODING: 'gzip,deflate'
  HTTP_ACCEPT_LANGUAGE: 'en,nl;q=0.5'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_HOST: 'localhost:8080'
  HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux i686; nl; rv: Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5'
  PATH_INFO: '/'
  SERVER_PORT: '8080'

WSGI Variables
  application: <zope.app.wsgi.WSGIPublisherApplication object at 0xb743efcc>
  paste.evalexception: <z3c.evalexception.ZopeEvalException object at 0xb743efac>
  paste.evalexception.debug_count: 1234261591
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0xb796402c>
  paste.throw_errors: True
  wsgi process: 'Multithreaded'
  wsgi.handleErrors: False


Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]

More information about the Grok-dev mailing list