(self, obj_str)
Generate revoke for one section / subject type (user or group)
Generate revoke for one section / subject type (user or group)
Generate revoke for one section / subject type ( user or group )
def gen_revoke(self, obj_str):
        "Generate revoke for one section / subject type (user or group)"

        if len(self.seq_list) > 0:
            obj_str += ", " + ", ".join(self.seq_list)
        obj_str = obj_str.strip().replace('\n', '\n    ')
        print "REVOKE ALL ON %s\n  FROM %s CASCADE;" % (obj_str, self.all_subjs)
def gen_revoke ( self , obj_str ) : if len ( self . seq_list ) > 0 : obj_str += ", " + ", " . join ( self . seq_list ) obj_str = obj_str . strip ( ) . replace ( '\n' , '\n    ' ) print "REVOKE ALL ON %s\n  FROM %s CASCADE;" % ( obj_str , self . all_subjs )