You don't have to import anything it's done automatically by the framework. But you need to install python-pyme. (If I remember well the package python-pyme depends on libgpgme11). So install python-pyme and spicify sign_passphrase and other. And have a gnupg settings for web2py user. That is you should be able to sign and encrypt message (like text file) with the user running web2py.
- [web2py] PGP Mail Confusion horridohobbyist
- [web2py] Re: PGP Mail Confusion szimszon
- [web2py] Re: PGP Mail Confusion horridohobbyist
- [web2py] Re: PGP Mail Confusion horridohobbyist
- Re: [web2py] Re: PGP Mail Confusion Michele Comitini
- Re: [web2py] Re: PGP Mail Confus... Martin Weissenboeck
- [web2py] Re: PGP Mail Confus... horridohobbyist