Exemple #1
0
class MoinWikiPageAdaptor(PageAdaptor):
    def __init__(self, request, pagename_fs):
        PageAdaptor.__init__(self, request, pagename_fs)
        self.pagename = wikiutil.unquoteWikiname(pagename_fs)
        self.page = WikiPage(request, self.pagename)

    def get_body(self):
        return self.page.get_raw_body()

    def exists(self, rev=0, domain=None, includeDeleted=False):
        return self.page.exists(rev, domain, includeDeleted)

    def is_write_file(self, newtext):
        return True

    def last_modified(self):
        return os.path.getmtime(self.page._text_filename())

    def isWritable(self):
        return self.page.isWritable()

    def delete(self):
        pass
Exemple #2
0
 def __init__(self, request, pagename_fs):
     PageAdaptor.__init__(self, request, pagename_fs)
     self.pagename = wikiutil.unquoteWikiname(pagename_fs)
     self.page = WikiPage(request, self.pagename)