Opened 14 years ago
Closed 12 years ago
#7422 closed enhancement (fixed)
MovieMacro for 0.12
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | MovieMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
is MovieMacro working on trac 0.12? I have installed last version of MovieMacro macros, but it don't work propetly.
Attachments (0)
Change History (12)
comment:1 Changed 14 years ago by
Type: | task → enhancement |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 12 years ago by
Alternative solution is to change paths in get_absolute_url(?)
-
movie/macro.
old new 48 48 return url 49 49 50 50 if scheme in ('htdocs', 'chrome'): 51 return ujoin(base, 'chrome', path)51 return ujoin(base, 'chrome', netloc, path) 52 52 53 53 if scheme in ('source',): 54 54 return ujoin(base, 'export', path) … … 57 57 return ujoin(base, 'raw-attachment/ticket', path) 58 58 59 59 if scheme in ('wiki',): 60 return ujoin(base, 'raw-attachment/wiki', path)60 return ujoin(base, 'raw-attachment/wiki', netloc, path) 61 61 62 62 return url
comment:4 Changed 12 years ago by
And naturally the ticket path needs to be changed as well. Support for source (or other VCS backends on that matter) has not been changed/tested.
-
movie/macro.py
48 48 return url 49 49 50 50 if scheme in ('htdocs', 'chrome'): 51 return ujoin(base, 'chrome', path)51 return ujoin(base, 'chrome', netloc, path) 52 52 53 53 if scheme in ('source',): 54 54 return ujoin(base, 'export', path) 55 55 56 56 if scheme in ('ticket',): 57 return ujoin(base, 'raw-attachment/ticket', path)57 return ujoin(base, 'raw-attachment/ticket', netloc, path) 58 58 59 59 if scheme in ('wiki',): 60 return ujoin(base, 'raw-attachment/wiki', path)60 return ujoin(base, 'raw-attachment/wiki', netloc, path) 61 61 62 62 return url
comment:5 Changed 12 years ago by
Owner: | changed from Louis Cordier to Ryan J Ollos |
---|
The code should be refactored to make better use of the Trac API. I don't see much activity on the plugin lately, so I'll assume it's unmaintained and push a fix in a few moments.
comment:6 Changed 12 years ago by
Btw, I'm using these example files for testing: http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
comment:7 Changed 12 years ago by
comment:8 Changed 12 years ago by
Please report back if you are able to test, and if I get some positive feedback I will close out the ticket.
comment:9 Changed 12 years ago by
Confirmed: version 0.2dev-r12015 seems to work just fine.
Sources tested:
- wiki attachment
- ticket attachment
- youtube url
comment:10 Changed 12 years ago by
Status: | new → assigned |
---|
Thanks. I'm going to push a few more patches. I'll CC you on the tickets in case you might have an interested in testing out a newer version of the plugin.
comment:12 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
changing
htdocs://movie/img/black.jpg -> htdocs://movie/movie/img/black.jpg
and
htdocs://movie/swf/FlowPlayerDark.swf -> htdocs://movie/movie/swf/FlowPlayerDark.swf
in
macro.py
makes it work again.