archive-fr.com » FR » O » OPUS-PROJECT.FR

Total: 702

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • TracLinks (diff) – Opus Project
    seen as a kind of InterWiki link specialized for targeting other Trac projects 120 121 Any type of Trac links could be written in one Trac environment and actually refer to resources present in another Trac environment provided the Trac link is prefixed by the name of that other Trac environment followed by a colon That other Trac environment must be registered under its name or an alias See InterTrac for details 122 123 A distinctive advantage of InterTrac links over InterWiki links is that the shorthand form of Trac links usually have a way to understand the InterTrac prefixes For example links to Trac tickets can be written T234 if T was set as an alias for Trac links to Trac changesets can be written trac 1508 124 125 Server relative links 126 127 It is often useful to be able to link to objects in your project that 128 have no built in Trac linking mechanism such as static resources newticket 129 a shared register page on the server etc 130 131 To link to resources inside the project use either an absolute path from the project root 132 or a relative link from the URL of the current page Changed in 0 11 133 134 135 newticket Create a new ticket 136 home 137 138 139 Display newticket newticket home 140 141 To link to another location on the server outside the project use the location link syntax Changed in 0 11 142 143 144 register Register Here 145 146 147 Display register Register Here 148 149 Quoting space in TracLinks 150 151 Immediately after a TracLinks prefix targets containing space characters should 152 be enclosed in a pair of quotes or double quotes 153 Examples 154 wiki The whitespace convention 155 attachment the file txt or 156 attachment the file txt 157 attachment the file txt ticket 123 158 159 Escaping Links 160 161 To prevent parsing of a TracLink you can escape it by preceding it with a exclamation mark 162 163 NoLinkHere 164 42 is not a link either 165 166 167 Display 168 NoLinkHere 169 42 is not a link either 170 171 172 Parameterized Trac links 173 174 The Trac links target Trac resources which have generally more than one way to be rendered according to some extra parameters For example a Wiki page can accept a version or a format parameter a report can make use of dynamic variables etc 175 176 Any Trac links can support an arbitrary set of parameters written in the same way as they would be for the corresponding URL Some examples 177 wiki WikiStart format txt 178 ticket 1 version 1 179 newticket component module1 create a ticket for module1 180 181 182 TracLinks Reference 183 The following sections describe the individual link types in detail as well as several notes advanced usage of links 184 185 attachment links 186 187 The link syntax for attachments is as follows 188 attachment the file txt creates

    Original URL path: http://www.opus-project.fr/trac/wiki/TracLinks?action=diff&version=1 (2016-01-11)
    Open archived version from archive


  • TracLogging (diff) – Opus Project
    8 Supported Logging Methods 9 10 The log method is set using the log type option in wiki TracIni logging section trac ini which takes any of the following values 11 12 none Suppress all log messages 13 file Log messages to a file specified with the log file option in wiki TracIni logging section trac ini 14 stderr Output all log entries to console wiki TracStandalone tracd only 15 syslog UNIX Send all log messages to the local syslogd via named pipe dev log By default syslog will write them to the file var log messages 16 eventlog Windows Use the system s NT Event Log for Trac logging 17 18 Log Levels 19 20 The verbosity level of logged messages can be set using the log level option in wiki TracIni logging section trac ini The log level defines the minimum level of urgency required for a message to be logged and those levels are 21 22 CRITICAL Log only the most critical typically fatal errors 23 ERROR Log failures bugs and errors 24 WARN Log warnings non interrupting events 25 INFO Diagnostic information log information about all processing 26 DEBUG Trace messages profiling etc 27 28 Log Format 29 30 Starting with Trac 0 10 4 see 2844 it is possible to set the output format for log entries This can be done through the log format option in wiki TracIni logging section trac ini The format is a string which can contain any of the http docs python org lib node422 html Python logging Formatter variables Additonally the following Trac specific variables can be used 31 basename s The last path component of the current environment 32 path s The absolute path for the current environment 33 project s The originating project s name 34 35

    Original URL path: http://www.opus-project.fr/trac/wiki/TracLogging?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracModPython (diff) – Opus Project
    from root while having the possibility of placing a custom home page for root in your DocumentRoot folder 189 190 You can also use the same authentication realm for all of the projects using a LocationMatch directive 191 192 xml 193 LocationMatch projects login 194 AuthType Basic 195 AuthName Trac 196 AuthUserFile var trac htpasswd 197 Require valid user 198 LocationMatch 199 200 201 Virtual Host Configuration 202 203 Below is the sample configuration required to set up your trac as a virtual server i e when you access it at the URLs like 204 http trac mycompany com 205 206 207 xml 208 VirtualHost 209 DocumentRoot var www myproject 210 ServerName trac mycompany com 211 Location 212 SetHandler mod python 213 PythonInterpreter main interpreter 214 PythonHandler trac web modpython frontend 215 PythonOption TracEnv var trac myproject 216 PythonOption TracUriRoot 217 Location 218 Location login 219 AuthType Basic 220 AuthName MyCompany Trac Server 221 AuthUserFile var trac myproject htpasswd 222 Require valid user 223 Location 224 VirtualHost 225 226 227 This does not seem to work in all cases What you can do if it does not 228 Try using LocationMatch instead of Location 229 Location may in your server setup refer to the complete host instead of simple the root of the server This means that everything including the login directory referenced below will be sent to python and authentication does not work i e you get the infamous Authentication information missing error If this applies to you try using a sub directory for trac instead of the root i e web and web login instead of and login 230 231 For a virtual host that supports multiple projects replace TracEnv var trac myproject with TracEnvParentDir var trac 232 233 Note DocumentRoot should not point to your Trac project env As Asmodai wrote on trac suppose there s a webserver bug that allows disclosure of DocumentRoot they could then leech the entire Trac environment 234 235 Troubleshooting 236 237 In general if you get server error pages you can either check the Apache error log or enable the PythonDebug option 238 239 xml 240 Location projects myproject 241 242 PythonDebug on 243 Location 244 245 246 For multiple projects try restarting the server as well 247 248 Expat related segmentation faults expat 249 250 This problem will most certainly hit you on Unix when using Python 2 4 251 In Python 2 4 some version of Expat an XML parser library written in C is used 252 and if Apache is using another version this results in segmentation faults 253 As Trac 0 11 is using Genshi which will indirectly use Expat that problem 254 can now hit you even if everything was working fine before with Trac 0 10 255 256 See Graham Dumpleton s detailed http www dscpl com au wiki ModPython Articles ExpatCausingApacheCrash explanation and workarounds for the issue 257 258 Form submission problems 259 260 If you re experiencing problems submitting some of the forms

    Original URL path: http://www.opus-project.fr/trac/wiki/TracModPython?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracModWSGI (diff) – Opus Project
    16 17 import trac web main 18 application trac web main dispatch request 19 20 21 The TRAC ENV variable should naturally be the directory for your Trac environment if you have several Trac environments in a directory you can also use TRAC ENV PARENT DIR instead while the PYTHON EGG CACHE should be a directory where Python can temporarily extract Python eggs BR 22 For clarity you should give this file a wsgi extension You should probably put the file in it s own directory since you will open up its directory to Apache 23 You can create a wsgi files which handles all this for you by running the TracAdmin command deploy 24 25 If you have installed trac and eggs in a path different from the standard one you should add that path by adding the following code on top of the wsgi script 26 27 import site 28 site addsitedir usr local trac lib python2 4 site packages 29 30 Change it according to the path you installed the trac libs at 31 32 After you ve done preparing your wsgi script add the following to your httpd conf 33 34 35 WSGIScriptAlias trac usr local trac mysite apache mysite wsgi 36 37 Directory usr local trac mysite apache 38 WSGIApplicationGroup GLOBAL 39 Order deny allow 40 Allow from all 41 Directory 42 43 44 Here the script is in a subdirectory of the Trac environment In order to let Apache run the script access to the directory in which the script resides is opened up to all of Apache Additionally the WSGIApplicationGroup directive ensures that Trac is always run in the first Python interpreter created by mod wsgi this is necessary because the Subversion Python bindings which are used by Trac don t always work in other subinterpreters and may cause requests to hang or cause Apache to crash as a result After adding this configuration restart Apache and then it should work 45 46 To test the setup of Apache mod wsgi and Python itself ie without involving Trac and dependencies this simple wsgi application can be used to make sure that requests gets served use as only content in your wsgi script 47 48 49 def application environ start response 50 start response 200 OK Content type text html 51 return html body Hello World body html 52 53 54 See also the mod wsgi http code google com p modwsgi wiki IntegrationWithTrac installation instructions for Trac 55 56 For troubleshooting tips see the TracModPython Troubleshooting mod python troubleshooting section as most Apache related issues are quite similar plus discussion of potential http code google com p modwsgi wiki ApplicationIssues application issues when using mod wsgi 57 58 Trac with PostgreSQL 59 60 When using the mod wsgi adapter with multiple Trac instances and PostgreSQL or MySQL as a database back end the server can get a lot of open database connections and thus PostgreSQL processes 61 62 A workable solution is to

    Original URL path: http://www.opus-project.fr/trac/wiki/TracModWSGI?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracNavigation (diff) – Opus Project
    it is now possible to customize the main and meta navigation entries in some basic ways 4 5 The new mainnav and metanav configuration sections can now be used to customize the text and link used for the navigation items or even to disable them 6 7 mainnav corresponds to the main navigation bar the one containing entries such as Wiki Timeline Roadmap Browse Source and so on This navigation bar is meant to access the default page of the main modules enabled in Trac and accessible for the current user 8 9 metanav corresponds to the meta navigation bar by default positioned above the main navigation bar and below the Search box It contains the Log in Logout Help Guide etc entries This navigation bar is meant to access some global information about the Trac project and the current user 10 11 Note that it is still not possible to customize the contextual navigation bar i e the one usually placed below the main navigation bar 12 13 Example 14 15 In the following example we rename the link to the Wiki start Home and hide the Help Guide link 16 We also make the View Tickets entry link

    Original URL path: http://www.opus-project.fr/trac/wiki/TracNavigation?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracNotification (diff) – Opus Project
    May cause some issues with touchy anti spam anti virus engines 35 qp or quoted printable best for european languages more compact than base64 not recommended for non ASCII text less compact than base64 36 none no encoding Use with plain english only ASCII E mails with non ASCII chars won t be delivered 37 ticket subject template since 0 11 A http genshi edgewall org wiki Documentation text templates html Genshi text template snippet used to get the notification subject 38 39 Either smtp from or smtp replyto or both must be set otherwise Trac refuses to send notification mails 40 41 The following options are specific to email delivery through SMTP 42 smtp server SMTP server used for notification messages 43 smtp port since 0 9 Port used to contact the SMTP server 44 smtp user since 0 9 User name for authentication SMTP account 45 smtp password since 0 9 Password for authentication SMTP account 46 use tls since 0 10 Toggle to send notifications via a SMTP server using http en wikipedia org wiki Transport Layer Security TLS such as GMail 47 48 49 Example Configuration SMTP 50 51 notification 52 smtp enabled true 53 smtp server mail example com 54 smtp from notifier example com 55 smtp replyto myproj projects example com 56 smtp always cc ticketmaster example com theboss myproj example com 57 58 59 60 Customizing the e mail subject 61 The e mail subject can be customized with the ticket subject template option which contains a http genshi edgewall org wiki Documentation text templates html Genshi text template snippet The default value is 62 63 prefix ticket id summary 64 65 The following variables are available in the template 66 67 env The project environment see trac source trunk trac env py env py 68 prefix The prefix defined in smtp subject prefix 69 summary The ticket summary with the old value if the summary was edited 70 ticket The ticket model object see trac source trunk trac ticket model py model py Individual ticket fields can be addressed by appending the field name separated by a dot e g ticket milestone 71 72 Sample Email 73 74 42 testing 75 76 Id 42 Status assigned 77 Component report system Modified Fri Apr 9 00 04 31 2004 78 Severity major Milestone 0 9 79 Priority lowest Version 0 6 80 Owner anonymous Reporter jonas example com 81 82 Changes 83 component changset view search system 84 priority low highest 85 owner jonas anonymous 86 cc daniel example com 87 daniel example com jonas example com 88 status new assigned 89 90 Comment 91 I m interested too 92 93 94 Ticket URL http example com trac ticket 42 95 My Project http myproj example com 96 97 98 Using GMail as the SMTP relay host 99 100 Use the following configuration snippet 101 102 notification 103 smtp enabled true 104 use tls true 105 mime encoding base64 106 smtp server smtp

    Original URL path: http://www.opus-project.fr/trac/wiki/TracNotification?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracPermissions (diff) – Opus Project
    41 TICKET VIEW View existing wiki TracTickets tickets and perform wiki TracQuery ticket queries 42 TICKET CREATE Create new wiki TracTickets tickets 43 TICKET APPEND Add comments or attachments to wiki TracTickets tickets 44 TICKET CHGPROP Modify wiki TracTickets ticket properties priority assignment keywords etc except description field cc field add remove when logged in or set email to pref 45 TICKET MODIFY Includes both TICKET APPEND and TICKET CHGPROP and in addition allows resolving wiki TracTickets tickets 46 TICKET EDIT CC Full modify cc field 47 TICKET EDIT DESCRIPTION Modify description field 48 TICKET ADMIN All TICKET permissions plus the deletion of ticket attachments and modification of the description field 49 50 Attention the view tickets button appears with the REPORT VIEW permission 51 52 Roadmap 53 54 MILESTONE VIEW View a milestone 55 MILESTONE CREATE Create a new milestone 56 MILESTONE MODIFY Modify existing milestones 57 MILESTONE DELETE Delete milestones 58 MILESTONE ADMIN All MILESTONE permissions 59 ROADMAP VIEW View the wiki TracRoadmap roadmap page is not yet the same as MILESTONE VIEW see 4292 60 ROADMAP ADMIN to be removed with 3022 replaced by MILESTONE ADMIN 61 62 Reports 63 64 REPORT VIEW View wiki TracReports reports i e the view tickets link 65 REPORT SQL VIEW View the underlying SQL query of a wiki TracReports report 66 REPORT CREATE Create new wiki TracReports reports 67 REPORT MODIFY Modify existing wiki TracReports reports 68 REPORT DELETE Delete wiki TracReports reports 69 REPORT ADMIN All REPORT permissions 70 71 Wiki System 72 73 WIKI VIEW View existing wiki TracWiki wiki pages 74 WIKI CREATE Create new wiki TracWiki wiki pages 75 WIKI MODIFY Change wiki TracWiki wiki pages 76 WIKI DELETE Delete wiki TracWiki wiki pages and attachments 77 WIKI ADMIN All WIKI permissions plus the management of readonly pages 78 79 Permissions 80 81 PERMISSION GRANT add grant a permission 82 PERMISSION REVOKE remove revoke a permission 83 PERMISSION ADMIN All PERMISSION permissions 84 85 86 Others 87 88 TIMELINE VIEW View the wiki TracTimeline timeline page 89 SEARCH VIEW View and execute wiki TracSearch search queries 90 CONFIG VIEW Enables additional pages on About Trac that show the current configuration or the list of installed plugins 91 EMAIL VIEW Shows email addresses even if wiki 0 11 TracIni trac show email addresses configuration option is false 92 93 Granting Privileges 94 95 You grant privileges to users using wiki TracAdmin trac admin The current set of privileges can be listed with the following command 96 97 trac admin path to projenv permission list 98 99 100 This command will allow the user bob to delete reports 101 102 trac admin path to projenv permission add bob REPORT DELETE 103 104 105 The permission add command also accepts multiple privilege names 106 107 trac admin path to projenv permission add bob REPORT DELETE WIKI CREATE 108 109 110 Or add all privileges 111 112 trac admin path to projenv permission add bob TRAC ADMIN 113 114 115

    Original URL path: http://www.opus-project.fr/trac/wiki/TracPermissions?action=diff&version=1 (2016-01-11)
    Open archived version from archive

  • TracPlugins (diff) – Opus Project
    applies to plugins installed in the path specified in the inherit plugins dir configuration option This is done in the components section of the configuration file for example 74 75 components 76 tracspamfilter enabled 77 78 79 The name of the option is the Python package of the plugin This should be specified in the documentation of the plugin but can also be easily discovered by looking at the source look for a top level directory that contains a file named init py 80 81 Note After installing the plugin you need to restart your web server 82 83 Uninstalling 84 85 easy install or python setup py does not have an uninstall feature Hower it is usually quite trivial to remove a globally installed egg and reference 86 1 Do easy install m plugin name to remove references from PYTHONLIB site packages easy install pth when the plugin installed by setuptools 87 1 Delete executables from usr bin usr local bin or C Python Scripts For search what executables are there you may refer to console script section of setup py 88 1 Delete the egg file or folder from where it is installed usually inside PYTHONLIB site packages 89 1 Restart web server 90 91 If you are uncertain about the location of the egg here is a small tip to help locate an egg or any package replace myplugin with whatever namespace the plugin uses as used when enabling the plugin 92 93 import myplugin 94 print myplugin file 95 opt local python24 lib site packages myplugin 0 4 2 py2 4 egg myplugin init pyc 96 97 98 Setting up the Plugin Cache 99 100 Some plugins will need to be extracted by the Python eggs runtime pkg resources so that their contents are actual files on the file system The directory in which they are extracted defaults to python eggs in the home directory of the current user which may or may not be a problem You can however override the default location using the PYTHON EGG CACHE environment variable 101 102 To do this from the Apache configuration use the SetEnv directive as follows 103 104 SetEnv PYTHON EGG CACHE path to dir 105 106 107 This works whether you are using the wiki TracCgi CGI or the wiki TracModPython mod python front end Put this directive next to where you set the path to the wiki TracEnvironment Trac environment i e in the same Location block 108 109 For example for CGI 110 111 Location trac 112 SetEnv TRAC ENV path to projenv 113 SetEnv PYTHON EGG CACHE path to dir 114 Location 115 116 117 or for mod python 118 119 Location trac 120 SetHandler mod python 121 122 SetEnv PYTHON EGG CACHE path to dir 123 Location 124 125 126 Note SetEnv requires the mod env module which needs to be activated for Apache In this case the SetEnv directive can also be used in the mod python Location block 127

    Original URL path: http://www.opus-project.fr/trac/wiki/TracPlugins?action=diff&version=1 (2016-01-11)
    Open archived version from archive