﻿ticket,summary,type,release,owner,status,created,modified,_description,_reporter
14162,Don't use monkey patch to TracError.__str__,defect,,codingking,new,2022-10-19T13:03:47+02:00,2022-10-19T13:03:47+02:00,"I noticed the plugin uses monkey patch to `TracError.__str__` at source:/collapsibleplugin/0.12/traccollapsible/__init__.py@:29. Don't absolutely use it.

{{{
# Ignore errors to avoid Internal Server Errors
from trac.core import TracError
TracError.__str__ = lambda self: unicode(self).encode('ascii', 'ignore')
}}}",Jun Omae
14155,Cannot install CollapsiblePlugin in Trac 1.5 / Python 3,defect,,codingking,new,2022-09-08T15:57:06+02:00,2022-09-08T17:26:01+02:00,"I get the following error when trying to install the plugin in Python 3:
{{{
# python3 setup.py install

Traceback (most recent call last):
  File ""/root/TracPlugins/collapsibleplugin/0.12/setup.py"", line 93, in <module>
    package_dir = dict([p, i[0]] for p, i in PKG_INFO.iteritems()),
AttributeError: 'dict' object has no attribute 'iteritems'
}}}

Seems {{{iteritems}}} was renamed to {{{items}}}. If I make that change in {{{setup.py}}}, then I can install.

When Trac 1.5 loads this, it complains as follows:
{{{
2022-09-08 15:50:06,545 Trac[loader] ERROR: Skipping ""traccollapsible = traccollapsible"":
Traceback (most recent call last):
  File ""/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/loader.py"", line 80, in _load_eggs
    entry.load(require=True)
  File ""/usr/lib/python3.10/site-packages/pkg_resources/__init__.py"", line 2471, in load
    return self.resolve()
  File ""/usr/lib/python3.10/site-packages/pkg_resources/__init__.py"", line 2477, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File ""<frozen importlib._bootstrap>"", line 1027, in _find_and_load
  File ""<frozen importlib._bootstrap>"", line 1002, in _find_and_load_unlocked
  File ""<frozen importlib._bootstrap>"", line 945, in _find_spec
  File ""<frozen importlib._bootstrap_external>"", line 1439, in find_spec
  File ""<frozen importlib._bootstrap_external>"", line 1411, in _get_spec
  File ""<frozen zipimport>"", line 170, in find_spec
  File ""<frozen importlib._bootstrap>"", line 431, in spec_from_loader
  File ""<frozen importlib._bootstrap_external>"", line 741, in spec_from_file_location
  File ""<frozen zipimport>"", line 229, in get_filename
  File ""<frozen zipimport>"", line 760, in _get_module_code
  File ""<frozen zipimport>"", line 689, in _compile_source
  File ""/usr/lib/python3.10/site-packages/TracCollapsiblePlugin-0.1-py3.10.egg/traccollapsible/__init__.py"", line 34
    except Exception, exc:
           ^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized (__init__.py, line 34)
}}}

So, changing {{{except Exception, exc:}}} to {{{except (Exception, exc):}}} is needed. Then the plugin works in Python 3.",anonymous
13957,Macro works strangely in preview when using nested.,defect,1.4,codingking,new,2021-02-17T03:35:10+01:00,2021-02-17T03:36:48+01:00,"{{{
[[collapsibleStart(big1)]]
[[collapsibleStart(small2)]]
[[collapsibleEnd]]
[[collapsibleStart(small3)]]
[[collapsibleEnd]]
[[collapsibleStart(small4)]]
[[collapsibleEnd]]
[[collapsibleEnd]]
}}}

I expect like this.
{{{
big1[
     small2[]
     small3[]
     small4[]
]
}}}

but it works like below in preview

{{{
big1[
     small2[]
]
small3[]
small4[]
}}}


However, it works normally after applied.",mgs1994@…
12187,unable to use markup,enhancement,,codingking,new,2015-02-11T10:32:45+01:00,2015-02-11T10:32:45+01:00,"unable to embed images inside collapsed menu or title
unable to use wiki markup in title


{{{
[[CollapsibleStart ('''Quick Start Guide''' [=#point0] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]))]]
'''Quick Start Guide''' [=#point0] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page])
[[Image(source:/wiki/Wiki-Pictures/Common/Icons/quick-start-guide/Setting_Up_the_Language.png,align=left,link=[#point0.1])]]

[[CollapsibleEnd]]
}}}
",professor_jonnyathotmail.com
11627,CollapsiblePlugin does not work from report,defect,1.0,codingking,new,2014-03-16T23:26:10+01:00,2014-03-26T23:33:48+01:00,"When writing a custom report, you can use the ""description"" column to display wikiformatted text (e.g. ""description AS description""). This performs wiki formatting, including macro expansion.

However, this collapsible macro does not work in that context.

It would appear that the report page does not load folding.js, nor does it call $("".foldable"").enableFolding(true, true). I suspect that is the source of the problem.

(Having collapsable sections in report result tables would be very nice.)",kenclary@…
8942,Does not do anything,defect,0.11,codingking,assigned,2011-07-04T13:35:59+02:00,2012-06-09T03:34:27+02:00,"Hi there, I put the collapsibleplugin start and end command in a Wikipage, and some wiki text inbetween. Could not see any difference. Nothing happened, nothing to expand or not expand the text. Also putting the title always in h3 is not necessarily what fits into existing documents. I tried it with two browsers: firefox 3.6.18 and rekonq 0.6.1. If using a title, it did not show with firefox but rekonq only. Regards, Markus",anonymous
