Opened 3 years ago
Last modified 3 years ago
#14044 new defect
not work with Trac 1.4?
Reported by: | Owned by: | ttressieres | |
---|---|---|---|
Priority: | normal | Component: | DownloadsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.4 |
Description (last modified by )
Hi I have just installed fresh Trac 1.4.3. (we need to upgrade and move our actual Trac 0.12 to new OS :). So after installation plugin downloadsplugin-18442.zip it is not work with Trac 1.4.3. IS this plugin still alive? looks like not. After installation and adding default new tags like below:
[downloads] additional_tags = author,component,version,architecture,platform,\ type # If TagsPlugin is installed architecture_sort = name architecture_sort_direction = asc consoleadmin_user = anonymous download_sort = time download_sort_direction = desc ext = zip,gz,bz2,rar max_size = 268697600 path = ../downloads platform_sort = name platform_sort_direction = asc type_sort = name type_sort_direction = asc unique_filename = False visible_fields = id,file,description,size,time,count,author,tags,\ component,version,architecture,platform,type [components] tracdownloads.* = enabled
Trac not work. I can't made project upgrade:
[root@centos8-1 ~]# trac-admin /opt/Trac/Firstproject/ upgrade Error: Unable to check for upgrade of tracdownloads.init.DownloadsInit: TypeError: environment_needs_upgrade() takes exactly 2 arguments (1 given)
Any help?
Attachments (3)
Change History (16)
comment:1 Changed 3 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 3 years ago by
Trac Release: | → 1.4 |
---|
comment:3 Changed 3 years ago by
Changed 3 years ago by
Attachment: | t14044.diff added |
---|
comment:5 Changed 3 years ago by
$ curl https://trac-hacks.org/raw-attachment/ticket/14044/t14044.diff -o /tmp/t14044.diff $ svn export https://trac-hacks.org/svn/downloadsplugin/trunk /tmp/downloadsplugin $ cd /tmp/downloadsplugin $ patch -p0 </tmp/t14044.diff $ python setup.py bdist_egg
Changed 3 years ago by
Attachment: | legacy_henshi_needed.PNG added |
---|
comment:6 Changed 3 years ago by
Hi I found update command in google. After your patch implementation, trac-admin project_name upgrade commands finish with succes. I see new Donwloads button on project menu tab. But IDownloads page can't be present. I attached screen legacy_henshi_needed.PNG
Changed 3 years ago by
Attachment: | admin_panel.PNG added |
---|
comment:7 Changed 3 years ago by
Hi also not working any links from admin panel "Download system" section. Only blank white page (no html any content).
comment:8 Changed 3 years ago by
what is actually the last Trac stable version with this plugin works?
comment:9 Changed 3 years ago by
The project wiki page is tagged with Trac 1.2, so likely that version.
comment:10 Changed 3 years ago by
Hi, I was on holidays, I will update the trunk tomorrow to update this plugin to work with Trac 1.4. Regards
comment:12 Changed 3 years ago by
Hi Today I have to install newest Trac 1.4.3 on new fresh environement. I have just installed the newest plugin. downloadsplugin-18457.zip. I created new project. Add to trac.ini:
[components] tracdownloads.* = enabled [downloads] additional_tags = author,component,version,architecture,platform,\ type # If TagsPlugin is installed architecture_sort = name architecture_sort_direction = asc consoleadmin_user = anonymous download_sort = time download_sort_direction = desc ext = zip,gz,bz2,rar max_size = 268697600 path = /var/lib/trac/projects/secondproject platform_sort = name platform_sort_direction = asc type_sort = name type_sort_direction = asc unique_filename = False visible_fields = id,file,description,size,time,count,author,tags,\ component,version,architecture,platform,type
I did also command: trac-admin /var/lib/trac/projects/secondproject upgrade
no errors. I can add files from trac-admin command line. But I don't see downloads tab in project GUI.
comment:13 Changed 3 years ago by
Sorry my last post was as anonymous and without formatted text. It looks like patch for version 1.4 has missing something in GUI files.
The plugin is currently not compatible with Trac 1.4.x. Could you please try t14044.diff patch and let us know the results?