Module Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assert CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str While CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str orelse Return Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A re postgres.orm Model N/A name_pattern N/A N/A re compile ^[A-Za-z0-9,._ -]+$ slugize N/A N/A slug N/A N/A N/A Convert a string to a string for an URL.
     N/A N/A N/A N/A name_pattern match slug None N/A slug N/A N/A slug lower N/A c N/A , . _ N/A N/A slug N/A N/A slug replace c - N/A N/A -- slug N/A N/A slug N/A N/A slug replace -- - N/A slug N/A N/A slug strip - N/A slug N/A get_list_for N/A N/A db participant_id N/A N/A N/A Return a listing of communities.

    :database: One SELECT, multiple rows

     N/A N/A participant_id None N/A N/A N/A N/A db all 
            SELECT c.*
              FROM communities c
          ORDER BY nmembers DESC, slug
         N/A N/A N/A N/A db all 
            SELECT c.*
              FROM current_community_members ccm
              JOIN communities c ON c.slug = ccm.slug
             WHERE ccm.is_member AND ccm.participant = %s
          ORDER BY c.nmembers ASC, c.slug
         N/A participant_id N/A Community N/A Model N/A N/A Model a community on Gratipay.
     N/A typname communities from_slug N/A N/A cls slug N/A N/A N/A N/A N/A N/A cls db one 
            SELECT c.*::communities FROM communities c WHERE slug=%s;
         N/A slug N/A classmethod get_members N/A N/A self limit offset N/A None None N/A N/A N/A N/A N/A self db all 
            SELECT p.*::participants
              FROM current_community_members c
              JOIN participants p ON p.id = c.participant
             WHERE c.slug = %s
               AND c.is_member
               AND p.is_suspicious IS NOT true
          ORDER BY c.ctime
             LIMIT %s
            OFFSET %s;
         N/A N/A self slug limit offset N/A check_membership N/A N/A self participant N/A N/A N/A N/A N/A N/A self db one 
            SELECT is_member
              FROM current_community_members
             WHERE slug=%s AND participant=%s
         N/A N/A self slug N/A participant id N/A N/A