<s> from django . contrib . flatpages . models import FlatPage <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> import authority <EOL> from authority . permissions import BasePermission <EOL> class FlatPagePermission ( BasePermission ) : <EOL> """<STR_LIT>""" <EOL> label = '<STR_LIT>' <EOL> checks = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def top_secret ( self , flatpage = None , lala = None ) : <EOL> if flatpage and flatpage . registration_required : <EOL> return self . browse_flatpage ( obj = flatpage ) <EOL> return False <EOL> top_secret . short_description = _ ( '<STR_LIT>' ) <EOL> authority . register ( FlatPage , FlatPagePermission ) </s>
