Changes between Version 33 and Version 34 of ScreenshotsPlugin
- Timestamp:
- Jan 29, 2010, 4:06:25 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ScreenshotsPlugin
v33 v34 30 30 31 31 ||'''Option'''||'''Description'''||'''Default Value'''|| 32 ||default_components|| default values for component filter || none || 32 ||additional_tags|| what additional screenshot attributes will be inserted as tags || author,components,versions,name || 33 ||default_components|| default values for component filter || all || 33 34 ||default_description|| description attached to the screenshot if not explicitly specified in request || $description || 34 35 ||default_filter_relation|| how the filters should be related by default || or || … … 37 38 ||default_order_directions|| whether to start with the first or last item by default || asc || 38 39 ||default_orders|| if not specified otherwise, by which criteria should we order? || id || 39 ||default_versions|| default values for version filter || none||40 ||default_versions|| default values for version filter || all || 40 41 ||ext|| list of allowed file extension which can be uploaded || jpg,png || 41 42 ||formats|| in which formats images can be downloaded || raw,html,jpg,png || … … 46 47 {{{default_format}}} and {{{formats}}} must be supported by your PIL library installation. There are two meta formats: {{{raw}}} denotes original format of uploaded image and {{{html}}} is image embedded in HTML page. {{{ext}}} can also include the {{{zip}}} extension, which is not included by default for security reasons. If a {{{zip}}} file containing multiple images is uploaded, all of the images applying to the other extensions specified by {{{ext}}} will be added with the same metadata entered for the {{{zip}}} file - and the {{{zip}}} file itself will be abandoned. 47 48 48 {{{default_components}}} and {{{default_versions}}} options sets default values for component and version filter. Set these variables according your Trac setup, otherwise, you wouldn't see any screenshots with default filter. 49 {{{default_components}}} and {{{default_versions}}} options sets default values for component and version filter. 50 51 Another possible value for {{{additional_tags}}} except of those listed as default is {{{description}}}. 49 52 50 53 If you run Trac in environment which needs to enable plugins explicitly put in trac.ini these lines: … … 78 81 79 82 Screenshots plugin defines four permissions - each one in this list depends on the one mentioned before it, and adds its permissions upon that (with ''SCREENSHOTS_FILTER'' and ''SCREENSHOTS_ORDER'' being on the same level): 80 ||'''SCREENSHOTS_VIEW'''||permits to browse screenshots and see screenshot uploads in timeline|| 83 ||'''SCREENSHOTS_ADD'''||permission to upload screenshots|| 84 ||'''SCREENSHOTS_ADMIN'''||permission to upload, delete, view, filter and order screenshots|| 85 ||'''SCREENSHOTS_DELETE'''||permission to delete screenshots|| 81 86 ||'''SCREENSHOTS_FILTER'''||allows to modify component and version filter|| 82 87 ||'''SCREENSHOTS_ORDER'''||permits to change the order they are displayed in|| 83 ||'''SCREENSHOTS_ADMIN'''||permission to upload/delete screenshots|| 88 ||'''SCREENSHOTS_VIEW'''||permits to browse screenshots and see screenshot uploads in timeline|| 89 84 90 ''If you use apache, please restart it, before setting permissions.'' You can add these permissions by typing following commands from commandline or you can use WebAdminPlugin to do it for you: 85 91 86 92 {{{ 87 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW 93 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN 94 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD 95 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE 88 96 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER 89 97 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER 90 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ ADMIN98 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW 91 99 }}} 92 100