Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#270 closed defect (fixed)

Version for 0.9.4

Reported by: movex@… Owned by: John Hampton
Priority: low Component: TracBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.8

Description

Hi,

will you make a version for 0.9.4 ?

Attachments (0)

Change History (9)

comment:1 Changed 19 years ago by John Hampton

I need testers for 0.9.4. I think it will work, but my dev system is trunk based at the moment.

If anyone want's to try it on 0.9.4 I would be greatly appreciative.

If not, one of these days I'll setup a 0.9.4 installation.

comment:2 Changed 19 years ago by movex@…

I've tested it on 0.9.4, it doen't work. Here the log:

2006-04-01 Trac[loader] ERROR: Failed to load plugin tBlog from /var/trac/tufast/plugins/tBlog-0.1-py2.3.egg
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 77, in load_components
    entry_point.load()
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a7-py2.3.egg/pkg_resources.py", line 1625, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/tBlog/__init__.py", line 1, in ?
  File "build/bdist.linux-i686/egg/tBlog/status.py", line 10, in ?
ImportError: No module named api

comment:3 Changed 19 years ago by John Hampton

Status: newassigned

OK, I still haven't setup a 0.9.4 instance, however, the error that you are receiving shouldn't be because of 0.9.4

I would suggest checking out the source from subversion and building it

# python setup.py bdist_egg

Make sure that you have the TagsPlugin and then look at the trac.log file when trying out the blog plugin. It's possible that the blog plguin is trying to load before the TagsPlugin. If that's the case, then the only solution for 0.9.4 is to install the TagsPlugin globally by checking out the source and doing:

# python setup.py install

Note, with the newest version of the blog plugin, you will also need to have the WebAdmin plugin.

comment:4 Changed 19 years ago by movex@…

Type: taskdefect

Ok, I didn't get it work on 0.94, thus everything is globally installed and working. so I tried a fresh 0.94 and then 0.10dev installation.

Now there is another problem:

Trac[main] ERROR: sort() takes no keyword arguments
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 299, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 175, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 93, in process_request
  File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 223, in _generate_blog
TypeError: sort() takes no keyword arguments

at web_ui.py

        tlist = entries.keys()
        tlist.sort(reverse=True)

In python2.3 there is no "reverse" which was new in 2.4 So for people with 2.3 could help

        tlist = entries.keys()
        tlist.sort()
        tlist.reverse()

After this, I can create a new entry but not see it afterwords.

comment:5 Changed 19 years ago by joergprante@…

It installs on 0.9.4 as follows: Trac Tags has been installed from checked-out revision 84 (version 0.1), then upgraded to SVN (version 0.2) - both steps required dependent trac-admin upgrade steps.

Then installed trac blog plugin from SVN.

I can tag a wiki entry with 'blog'. But it does not show up as a blog. In the lower right corner, it shows tags and a link blog just like a normal tag.

comment:6 Changed 19 years ago by anonymous

Alright, my mistake - just forgot to enable the plugin in the webadmin panel. But after doing that, I get this error message:

Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 100, in dispatch
    chrome.populate_hdf(req, chosen_handler)
  File "/usr/lib/python2.3/site-packages/trac/web/chrome.py", line 250, in populate_hdf
    for category, name, text in contributor.get_navigation_items(req):
  File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 38, in get_navigation_items
AttributeError: 'CGIRequest' object has no attribute 'href'

comment:7 Changed 19 years ago by joergprante@…

Replacing all occurences of req.href with self.env.href in web_ui.py helped. The blog button appears and the tagged wiki entries look like a blog.

Thanks!

comment:8 Changed 19 years ago by John Hampton

Resolution: fixed
Status: assignedclosed

(In [613]) * Setup 0.9.4 branch and fixed outstanding issues with plugin on 0.9.4. Closes #270

comment:9 Changed 19 years ago by John Hampton

Trac Release: 0.8

The only remaining issue is that of plugin loading order. TracBlogPlugin needs WebAdminPlugin and TagsPlugin to load before it can successfully load. Using 0.9.4 the only way to solve this is to install the WebAdminPlugin and the TagsPlugin to the python site-packages dir (usually /usr/lib/python2.4/site-packages/). Place the .egg files in there and then install the TracBlogPlugin into the ./plugins dir of the trac environment. That should work.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.