Menu

#326 Wiki OGoLinkPath provides no separator

0.49
accepted
Protocol
General-Bug
2017-03-24
2017-01-13
grwebguy
No

{OGoLinkPath{}OGoLinkPath} Outputs links with no spaces or slash between

Discussion

  • Adam Tauno Williams

    There is also an exception raised if the folder has no "index.markdown"

    2017-01-18T21:29:51:folder::ls:DEBUG: access processing disabled!
    2017-01-18T21:29:51:context:DEBUG: duration of folder::ls was 0.008
    2017-01-18T21:29:51:http:ERROR: 'NoneType' object has no attribute 'object_id'
    Traceback (most recent call last):
      File "build/bdist.linux-x86_64/egg/coils/net/http_handler.py", line 215, in process_request
        getattr(handler, 'do_{0}'.format(self.command))()
      File "/usr/lib/python2.7/site-packages/OpenGroupware-0.1.49rc106-py2.7.egg/coils/protocol/wiki/wikipage.py", line 153, in do_GET
        handle, mimetype = self.render_from_markdown(handle, mimetype, )
      File "/usr/lib/python2.7/site-packages/OpenGroupware-0.1.49rc106-py2.7.egg/coils/protocol/wiki/wikipage.py", line 111, in render_from_markdown
        md.convertFile(input=handle, output=scratch, )
      File "/usr/lib/python2.7/site-packages/markdown/__init__.py", line 360, in convertFile
        html = self.convert(text)
      File "/usr/lib/python2.7/site-packages/markdown/__init__.py", line 292, in convert
        root = self.parser.parseDocument(self.lines).getroot()
      File "/usr/lib/python2.7/site-packages/markdown/blockparser.py", line 63, in parseDocument
        self.parseChunk(self.root, '\r'.join(lines))
      File "/usr/lib/python2.7/site-packages/markdown/blockparser.py", line 78, in parseChunk
        self.parseBlocks(parent, text.split('\r\r'))
      File "/usr/lib/python2.7/site-packages/markdown/blockparser.py", line 95, in parseBlocks
        if processor.run(parent, blocks) is not False:
      File "/usr/lib/python2.7/site-packages/OpenGroupware-0.1.49rc106-py2.7.egg/coils/protocol/wiki/extensions/linkpath.py", line 59, in run
        if target.object_id != self.document.object_id:
    AttributeError: 'NoneType' object has no attribute 'object_id'
    
     
  • Adam Tauno Williams

    • labels: wiki --> wiki, OGoLinkPath, markdown
    • status: open --> accepted
    • assigned_to: Adam Tauno Williams
    • Layer: Undefined --> Protocol
     
  • grwebguy

    grwebguy - 2017-03-24

    If the link-path paragraph container were given a class, say 'ogo-path-links', the separator and spacing could be coded by the css.

     

Log in to post a comment.

MongoDB Logo MongoDB