[Zope-dev] PythonWin/Textpad, external import of Zope module and Persistence

Emile van Sebille Emile van Sebille" <emile@fcfw.fenx.com
Wed, 14 Aug 2002 06:41:27 -0700


----- Original Message ----- 
From: "Johan Carlsson [Torped]"

> The only thing I want to do in this first phase is to be able to make 
> syntax/sanity checks.
> 

I use something like this for writing and testing external methods, having TextPad run the same python zope uses: 

if __name__ == '__main__':
    class EmptyClass: pass
    REQUEST = EmptyClass()
    REQUEST.form = {'sortSeq' : 'Date'}
    #REQUEST.form = {'sortSeq' : 'Item'}

    print BacklogDetail(REQUEST=REQUEST)
--

Emile van Sebille
emile@fenx.com

---------