def get_notepad_pages_localdokuwiki(pagesdir='/var/lib/dokuwiki/data/pages'):
 ipaddr_page = re.compile('^\\d+\\.\\d+\\.\\d+\\.\\d+\\.txt$')
 return [page[:(-4)] for page in os.listdir(pagesdir) if ipaddr_page.match(page)]

def get_notepad_pages_localdokuwiki ( pagesdir = '/var/lib/dokuwiki/data/pages' ) : ipaddr_page = re . compile ( '^\\d+\\.\\d+\\.\\d+\\.\\d+\\.txt$' ) return [ page [ : ( - 4 ) ] for page in os . listdir ( pagesdir ) if ipaddr_page . match ( page ) ]
returns a list of the ip addresses for which a dokuwiki page exists .