def get_review_request_fieldsets(include_main=False, include_change_entries_only=False):
 if (include_main and include_change_entries_only):
  return list(fieldset_registry)
 else:
  excluded_ids = []
  if (not include_main):
   excluded_ids.append(u'main')
  if (not include_change_entries_only):
   excluded_ids.append(u'_change_entries_only')
  return [fieldset for fieldset in fieldset_registry if (fieldset.fieldset_id not in excluded_ids)]

def get_review_request_fieldsets ( include_main = False , include_change_entries_only = False ) : if ( include_main and include_change_entries_only ) : return list ( fieldset_registry ) else : excluded_ids = [ ] if ( not include_main ) : excluded_ids . append ( u'main' ) if ( not include_change_entries_only ) : excluded_ids . append ( u'_change_entries_only' ) return [ fieldset for fieldset in fieldset_registry if ( fieldset . fieldset_id not in excluded_ids ) ]
returns a list of all registered fieldset classes .