On Feb 22, 2008, at 17:52 , Andreas Jung wrote:

Hi,

I (and some co-workers) encountered lately issues with traversal when running scripts using "zopectl run" from the command line. The lookup
code fore views apparently expects always the existence of a REQUEST.
What's the best approach to fix this issue in the traversal machinery?

Is your use case not covered by creating a "fake" request using Testing.makerequest.makerequest, like so:

if __name__ == "__main__":
    from Testing.makerequest import makerequest
    app = makerequest(app)
    <do stuff>

jens



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

Reply via email to