moin
moin copied to clipboard
Links to tickets and blogs removed from UI, both are broken, incomplete
Original report by RogerHaase (Bitbucket: RogerHaase, GitHub: RogerHaase).
Belated entry to document changeset to reverse should someone want to work on tickets or blogs.
Changeset: 3281 (bbf44e3eed6c) remove links to tickets and blogs from UI, both are broken, incomplete; create new branch to fix ~ July 2017
I was interested in trying out the Blog feature and ran across a comment in moin/items/init.py
def _select_itemtype(self):
"""
TODO: Here we bypass the code that allows a user to select an itemtype just before
creating a new item:
Default - Wiki item
User profile - User profile item (not implemented yet!)
Blog - Blog item
Blog entry - Blog entry item
Ticket - Ticket item
Blogs and Tickets are broken, why User Profile is here is an undocumented mystery (it is
probably no longer required).
If you want to work on tickets or blogs, create a new branch and revert the change
made on or about 2017-07-04:
"""
git blame points this to 5c3ee4bf0 (I'm guessing was the SHA for the older bitbucket repo?). Per the comment/suggestion I (git) reverted bbf44e3eed6c) and ran but moin2 but Blog/Ticket still does not show up an an item type to create. Any hints how to restore these item types?
From a fresh current branch, comment out these lines near line 1685 in /src/moin/items/__init__.py.
# ~ return render_template('modify_select_contenttype.html',
# ~ fqname=self.fqname,
# ~ item_name=self.name,
# ~ itemtype='default', # create a normal wiki item
# ~ group_names=content_registry.group_names,
# ~ groups=content_registry.groups,
# ~ similar_names=similar_names,
# ~ )
Restart server, click on Index, New Item, enter an item name, click Create; I get choice of:
Default
User Profile**
Blog
Blog Entry
Ticket
click on Blog, choose MoinMoin, get Create New Item dialog, choose create from scratch, get Traceback - flatland schema has no attribute 'itemtype'
iirc, you must first create a blog item, then you or others may create Blog Entries as comments linked to the Blog. As you get the Blog working, you will break reports and other things.
** remove User Profile, cannot be edited by user
See issues with blog label