parameters: (self, channel)
return_statement: return base_domain
docstring: base domain when fetching slide list data related to a given channel
  
           * website related domain, and restricted to the channel and is not a
             category slide (behavior is different from classic slide);
           * if publisher: everything is ok;
           * if not publisher but has user: either slide is published, either
             current user is the one that uploaded it;
           * if not publisher and public: published;
docstring_summary: base domain when fetching slide list data related to a given channel
docstring_tokens: base domain when fetching slide list data related to a given channel
function: def _get_channel_slides_base_domain(self, channel):
          """ base domain when fetching slide list data related to a given channel
  
           * website related domain, and restricted to the channel and is not a
             category slide (behavior is different from classic slide);
           * if publisher: everything is ok;
           * if not publisher but has user: either slide is published, either
             current user is the one that uploaded it;
           * if not publisher and public: published;
          """
          base_domain = expression.AND([request.website.website_domain(), ['&', ('channel_id', '=', channel.id), ('is_category', '=', False)]])
          if not channel.can_publish:
              if request.website.is_public_user():
                  base_domain = expression.AND([base_domain, [('website_published', '=', True)]])
              else:
                  base_domain = expression.AND([base_domain, ['|', ('website_published', '=', True), ('user_id', '=', request.env.user.id)]])
          return base_domain
function_tokens: def _get_channel_slides_base_domain ( self , channel ) : base_domain = expression . AND ( [ request . website . website_domain ( ) , [ '&' , ( 'channel_id' , '=' , channel . id ) , ( 'is_category' , '=' , False ) ] ] ) if not channel . can_publish : if request . website . is_public_user ( ) : base_domain = expression . AND ( [ base_domain , [ ( 'website_published' , '=' , True ) ] ] ) else : base_domain = expression . AND ( [ base_domain , [ '|' , ( 'website_published' , '=' , True ) , ( 'user_id' , '=' , request . env . user . id ) ] ] ) return base_domain