Changes between Version 43 and Version 44 of ScreenshotsPlugin
- Timestamp:
- Mar 4, 2015, 9:26:04 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ScreenshotsPlugin
v43 v44 54 54 If you run Trac in an environment which needs to enable plugins explicitly, put these lines in trac.ini: 55 55 56 {{{ 56 {{{#!ini 57 57 [components] 58 58 TracScreenshots.init.ScreenshotsInit = enabled … … 69 69 70 70 If you don't have TagsPlugin installed replace last line with: 71 {{{ 71 {{{#!ini 72 72 tracscreenshots.tags.screenshotstags = disabled 73 73 }}} … … 75 75 Create directory you have specified with {{{path}}} config option and make sure it is accessible by Trac server. The next step is to upgrade your environment: 76 76 77 {{{ 78 #trac-admin <path_to_environment> upgrade77 {{{#!sh 78 $ trac-admin <path_to_environment> upgrade 79 79 }}} 80 80 … … 91 91 If you use Apache, please restart it before setting permissions. You can add these permissions by typing the following commands from the command line or you can use WebAdminPlugin to do it for you: 92 92 93 {{{ 94 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN95 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD96 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE97 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER98 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER99 #trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW93 {{{#!sh 94 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN 95 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD 96 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE 97 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER 98 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER 99 $ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW 100 100 }}} 101 101 … … 137 137 Example: 138 138 139 {{{140 141 }}} 142 143 For creating image maps you might consider using tools like http://www.maschek.hu/imagemap/imgmap.139 {{{ 140 [[Screenshot(2,width=400,height=300,description=The $name by $author: $description,align=left)]] 141 }}} 142 143 For creating image maps you might consider using tools like [http://www.maschek.hu/imagemap/imgmap imgmap]. 144 144 145 145 {{{[[ScreenshotsList()]]}}} macro displays list of all available screenshots on wiki page. Accepts one argument which is template for list items formatting. Possible variables in this template are: … … 159 159 Example: 160 160 161 {{{162 161 {{{ 162 [[ScreenshotsList($name - $description ($widthx$height))]] 163 163 }}} 164 164 … … 187 187 188 188 Preparing the plugin from source requires the additional step of compiling message catalog files. This will be done automatically by invoking a suitable Babel install. Walk through: 189 {{{ 189 {{{#!sh 190 190 cd tracscreenshots 191 191 python ./setup.py compile_catalog -f