[Moin-user] edit only on ssl

Cornelius Kölbel cornelius.koelbel at lsexperts.de
Thu May 18 07:32:01 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

THanks for this help.
Unfortunately I have never written any code in python.
I changed in my wikiconfig.oy this:

    class SecurityPolicy(Permissions):
        def edit(self, pagename, **kw):
            from MoinMoin import webapi
            return not request.is_ssl() and Permissions.edit(self,
pagename, **kw)

I get an error "global name 'request' is not defined"
This is obviously due to the fact, that i load a wrong "module".
It seems I have to change the line

            from MoinMoin import webapi

But i got no idea to what.

Kind regards
Cornelius

Thomas Waldmann schrieb:
>> Unfirtunately web.isSSL is not contained in moin moin 1.5.3.
>
> Use this:
>
> if request.is_ssl: # do stuff for ssl
>
>
>
> ------------------------------------------------------- Using
> Tomcat but need to do more? Need to support web services, security?
>  Get stuff done quickly with pre-integrated technology to make your
>  job easier Download IBM WebSphere Application Server v.1.0.1 based
>  on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
>
> _______________________________________________ Moin-user mailing
> list Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEbIUVtVsWxaSPzvkRA3/NAKDZqHQKQUHIeH5FXukPQ8KOI1NyKQCgoO46
TU8PXGR18oiU5N35dtYmd1w=
=NqhL
-----END PGP SIGNATURE-----





More information about the Moin-user mailing list