Attachment 'SlideShow_typos_moin18.diff'

Download

   1 --- Slideshow.py.orig	2008-01-04 11:01:00.000000000 +0100
   2 +++ Slideshow.py	2008-11-04 02:33:19.000000000 +0100
   3 @@ -39,8 +39,8 @@
   4      Shortcuts:
   5       Exit: ESC-key
   6       Agenda: a
   7 -     Next slide: courser-key, spacebar
   8 -     Previous slide: courser-key
   9 +     Next slide: cursor-key, spacebar
  10 +     Previous slide: cursor-key
  11       
  12      Additional navigation:
  13       * a invisible area in the right bottom corner there mouse clicks move
  14 @@ -201,7 +201,7 @@
  15      #-- Quering slideshow
  16      
  17      def name(self):
  18 -        return self._page.split_title(self._request, force=1)
  19 +        return self._page.split_title(force=1)
  20          
  21      def stylesheet(self):
  22          return self._headers.get('Stylesheet', 'projection')
  23 @@ -213,7 +213,7 @@
  24          if not self._parserClass:
  25              # Ignore the page parser and use always wiki parser
  26              ## name = self._headers.get('format', 'wiki')
  27 -            name = 'wiki'
  28 +            name = 'text_moin_wiki'
  29              Parser = wikiutil.importPlugin(self._request.cfg, 'parser', name, 
  30                                             'Parser')
  31              if Parser is None:
  32 @@ -233,7 +233,7 @@
  33              self._isEditable = self._request.user.may.write(self._page.page_name)
  34          return self._isEditable
  35      
  36 -    #-- Accssing slides
  37 +    #-- Accessing slides
  38      
  39      def __getitem__(self, index):
  40          return self.titleAt(index), self.bodyAt(index)
  41 @@ -333,11 +333,11 @@
  42          request = self.request
  43          _ = request.getText
  44          
  45 -        request.http_headers()
  46 +        request.emit_http_headers()
  47          
  48          # Slide content uses the slideshow language
  49          request.setContentLanguage(self.slides.language())
  50 -        wikiutil.send_title(request, self.slides.name(), page=self.page,
  51 +        request.theme.send_title(self.slides.name(), page=self.page,
  52                              print_mode=1, media='projection')     
  53          request.write(self.logo())
  54          request.write(self.title())
  55 @@ -356,7 +356,7 @@
  56          request.write(self.navigationScript())
  57          request.write(self.navigation())
  58          
  59 -        wikiutil.send_footer(request, self.pagename, print_mode=1)
  60 +        request.theme.send_footer(self.pagename, print_mode=1)
  61  
  62      #-- User input handling 
  63      
  64 @@ -449,7 +449,7 @@
  65              return ''.join(items)
  66          return self.formatter.text(text) + smiley + icon
  67  
  68 -    #-- Adpating to language direction
  69 +    #-- Adapting to language direction
  70      
  71      def adaptToLanguage(self, direction):
  72          # In RTL, directional items should be switched
  73 @@ -516,12 +516,12 @@
  74  
  75      def author(self):
  76          """ Return formatted name of the author """
  77 -        auhtor = self.slides._headers.get("Author","")
  78 +        author = self.slides._headers.get("Author","")
  79          items = []
  80 -        if auhtor:
  81 +        if author:
  82              items = [
  83                   self.formatter.startContent("author"),
  84 -                 self.formatter.text(auhtor),
  85 +                 self.formatter.text(author),
  86                   self.formatter.endContent(),]
  87              return ''.join(items)
  88  
  89 @@ -598,7 +598,7 @@
  90          boxhtml = """
  91  
  92  <div id="%(boxid)s" class="%(boxid)s"  style="visibility:hidden;" onmouseout="navigation('show')">
  93 - <div calss="popupboxheader">
  94 + <div class="popupboxheader">
  95    <div class="popupboxicon" ondblclick="%(boxid)s('toogle')"> %(icon)s </div>
  96    <div class="popupboxtitle" ondblclick="%(boxid)s('toogle')"> %(boxtitle)s </div>
  97    <div class="popupboxclosebutton" ondblclick="%(boxid)s('toogle')"> %(closebutton)s </div>
  98 @@ -734,7 +734,7 @@
  99              help = help.group( 0 )
 100          else:
 101              help = ""
 102 -        help = __doc__
 103 +        #help = __doc__
 104          help = "{{{" + help + "}}}"
 105          link, popupbox = self.popUpBox(boxtitle=_("Help"), content=self.getHTML(help),boxid="help", attributes={'title': _('Show slide help'),'onmouseover' : "navigation('show')"},smiley="(info)")
 106          items.append(link + popupbox)
 107 @@ -859,3 +859,4 @@
 108      request.clock.start('slideshow')
 109      SlideShow(request, pagename).render()
 110      request.clock.stop('slideshow')
 111 +
 112 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-11-15 01:17:54, 47.9 KB) [[attachment:SlideShow-1.4-1.zip]]
  • [get | view] (2008-01-04 10:29:28, 187.8 KB) [[attachment:SlideShow1.4.zip]]
  • [get | view] (2008-11-04 02:05:55, 4.1 KB) [[attachment:SlideShow_typos_moin18.diff]]
  • [get | view] (2008-01-04 10:23:57, 19.7 KB) [[attachment:screen01.png]]
  • [get | view] (2008-01-04 10:24:06, 21.4 KB) [[attachment:screen02.png]]
  • [get | view] (2008-01-04 10:24:13, 25.9 KB) [[attachment:screen03.png]]
  • [get | view] (2008-01-04 10:24:19, 17.6 KB) [[attachment:screen04.png]]
  • [get | view] (2008-01-04 10:24:26, 35.9 KB) [[attachment:screen05.png]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.