[Trac] Re: Edit do not reflect immediately
On Dec 22, 2:25 pm, Sneha sneha.shet...@gmail.com wrote: On Dec 21, 11:13 pm, Remy Blank remy.bl...@pobox.com wrote: Sneha wrote: Is anyone in this group also facing the similar problem? Is there any solution for this issue? Make sure your trac.ini file is writable by the web server. -- Remy signature.asc 1KViewDownload Thanks Remy for the prompt response! We are currently running the Trac over Windows server. I tried giving the write access to the trac.ini to everyone, but still the same issue is occurring. Can anyone please guide me to the correct way of assigning write permissions to the trac.ini file? The section in httpd.conf file for more info - Location /trac SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir E:\\Trac_projects PythonOption TracUriRoot /trac PythonOption PYTHON_EGG_CACHE E:\\egg_cache\\.egg-cache /Location Does anyone know how to make the Trac conf file writable by Apache on the Windows server? Will creating global trac.ini inside Trac-source/ conf help in flushing the cached data? -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
W. Martin Borgert wrote: For distributions such as Debian or Ubuntu it is very important not to duplicate software in the archive, mainly, but not only, for security reasons. Therefore, JQuery is packaged as a Debian package that is used by Trac, but also by other web applications. If e.g. a security bug is found in JQuery, we need only to update the JQuery package with a fixed version and do not need to care about Trac and e.g. half a dozen other packages. While I understand (and agree with) the general idea, I wonder if that situation really applies to jQuery (core, not jQuery UI, see below): - Maybe I'm a bit naive, but what security issues could be in a JavaScript library? Security is provided by the browser, not the libraries, isn't it? - Trac expects to find jquery.js in trac/htdocs/js. So in the Debian packaging, you replace the file provided with Trac with a symlink to the separately-packaged jquery.js? - Do you keep several versions of jQuery installed at the same time on a system, and for every package you link to the required version? Packaging jQuery with Trac (besides simplifying dependencies) ensures that we can make changes to the Trac code required by a jQuery update in sync with the update. If Trac would use an embedded copy of JQuery, why not also include Genshi, Pygments, PySQLite/PsycoPG etc.? I hope, you don't do that :~) Certainly not. There's (at least) one difference with jQuery: it doesn't have a standard packaging, and therefore no standard location in the filesystem where we could easily find it. And even if it did, it's a single file, so I guess it seemed simpler to just include it. I also notice that Gentoo doesn't have a jQuery package (just a data point, certainly not an authoritative argument). This would probably be different for jQuery UI, though. I assume it includes images for the UI controls, so the single file argument drops. Does Debian package jQuery UI? How does it link it into the packages that need it? -- Remy signature.asc Description: OpenPGP digital signature
[Trac] Can't login after upgrading to 11.6
Hi I upgraded my Trac from 11.5 (I guess) to 11.6. Now, I can't login anymore (see Traceback below). I had installed some plugins like UserAdmin or however it was called (to allow users to register themselves). Couldn't find anything on google yet, except a 3 year old, solved trac- ticket (http://trac.edgewall.org/ticket/5383). Any suggestions? - Traceback (most recent call last): File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/api.py, line 377, in send_error 'text/html') File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/chrome.py, line 733, in render_template message = req.session.pop('chrome.%s.%d' % (type_, i)) File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/api.py, line 195, in __getattr__ value = self.callbacks[name](self) File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/main.py, line 265, in _get_session return Session(self.env, req) File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/session.py, line 149, in __init__ if req.authname == 'anonymous': File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/api.py, line 195, in __getattr__ value = self.callbacks[name](self) File /usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/ web/main.py, line 134, in authenticate authname = authenticator.authenticate(req) File build/bdist.linux-i686/egg/acct_mgr/web_ui.py, line 437, in wrap return func(self, *args, **kwds) File build/bdist.linux-i686/egg/acct_mgr/web_ui.py, line 447, in authenticate req.environ['REMOTE_USER'] = self._remote_user(req) File build/bdist.linux-i686/egg/acct_mgr/web_ui.py, line 474, in _remote_user if AccountManager(self.env).check_password(user, password): File build/bdist.linux-i686/egg/acct_mgr/api.py, line 140, in check_password valid = store.check_password(user, password) File build/bdist.linux-i686/egg/acct_mgr/db.py, line 76, in check_password return self.hash_method.check_hash(user, password, hash) File build/bdist.linux-i686/egg/acct_mgr/pwhash.py, line 52, in check_hash return hash == self.generate_hash(user, password) File build/bdist.linux-i686/egg/acct_mgr/pwhash.py, line 48, in generate_hash user,password,realm = _encode(user, password, self.realm) File build/bdist.linux-i686/egg/acct_mgr/pwhash.py, line 56, in _encode return [a.encode('utf-8') for a in args] AttributeError: 'NoneType' object has no attribute 'encode' -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] ImportError: No module named pyPgSQL
hi all: I am installing trac in pkgutil THROUGH Solaris10 I have the version of python 2.5 by default and 2.6. My problem is that apache THROUGH access I get the following error and if you can run import makes both ... could help Traceback (most recent call last): File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/web/api.py, line 367, in send_error 'text/html') File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/web/chrome.py, line 708, in render_template data = self.populate_data(req, data) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/web/chrome.py, line 618, in populate_data d['chrome'].update(req.chrome) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/web/api.py, line 194, in __getattr__ value = self.callbacks[name](self) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/web/chrome.py, line 476, in prepare_request for category, name, text in contributor.get_navigation_items(req): File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/ticket/web_ui.py, line 163, in get_navigation_items if 'TICKET_CREATE' in req.perm: File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 524, in has_permission return self._has_permission(action, resource) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 538, in _has_permission check_permission(action, perm.username, resource, perm) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 425, in check_permission perm) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 282, in check_permission get_user_permissions(username) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 357, in get_user_permissions for perm in self.store.get_user_permissions(username): File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/perm.py, line 173, in get_user_permissions db = self.env.get_db_cnx() File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/env.py, line 273, in get_db_cnx return DatabaseManager(self).get_connection() File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/db/api.py, line 76, in get_connection return self._cnx_pool.get_cnx(self.timeout or None) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/db/pool.py, line 174, in get_cnx return _backend.get_cnx(self._connector, self._kwargs, timeout) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/db/pool.py, line 107, in get_cnx cnx = connector.get_connection(**kwargs) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/db/postgres_backend.py, line 46, in get_connection cnx = PostgreSQLConnection(path, user, password, host, port, params) File /opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/ trac/db/postgres_backend.py, line 118, in __init__ from pyPgSQL import PgSQL ImportError: No module named pyPgSQL -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
On Tue, Dec 22, 2009 at 11:44 PM, W. Martin Borgert deba...@debian.org wrote: Quoting Olemis Lang ole...@gmail.com: - Why not to include jQuery UI so that plugin developers be able to use those widgets in their own plugins and also custom widgets without bundling jQuery UI core files ? - The same for a jQuey UI theme for Trac ;o) Looking forward to your comments ;o) As one of the packagers of Trac for Debian I have to oppose. (Well, not strongly, but oppose.) For distributions such as Debian or Ubuntu it is very important not to duplicate software in the archive, mainly, but not only, for security reasons. +1 In any case, as Debian packager of Trac I would have to use the Debian JQuery package, not an embedded copy in the Trac archive. If, however, the JQuery version embedded in Trac and the one in Debian diverge, if Debian uses a newer version, I fear, that resulting problems would not have high priority, because the embedded copy works. Well, the risk is probably not so high, but in any case I would prefer to not include any 3rd party SW in the Trac release. Which is cool from a packager perspective but, what about the programmers outside the (great) Debian world ? They have to bundle jQuery UI over and over in every plugin to ensure that it will work everywhere ... If Trac would use an embedded copy of JQuery, why not also include Genshi, Pygments, PySQLite/PsycoPG etc.? I hope, you don't do that :~) I agree with you about not including Py libs in trac package, but perhaps we are talking about two different things. I am mentioning a poor little JS lib bundled with Trac since a long time ago whereas all you mention are Python libs . Isn't it possible to do for jQuery UI (i.e. libjs-jquery-ui) the same thing you do (and I can't figure out ;o) when packaging Trac w/ jQuery (i.e. libjs-jquery) ? @ Remy Blank Q: - Does Debian package jQuery UI? How does it link it into the packages that need it? `libjs-jquery-ui`, and `libjs-jquery` is in recommends so I suppose there's another copy inside Trac ? PS: Hey ! Everybody ! I talked to Santa and he'll bring us many great Trac plugins, so Merry Christmas ! o|;o) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Implemented common `/rpc` path. HTTP 415 error if no match found. Details : - Use content typ... - http://bitbucket.org/osimons/trac-rpc-mq/changeset/1933a7c9c607/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
On Wed, Dec 23, 2009 at 11:30 AM, Olemis Lang ole...@gmail.com wrote: On Tue, Dec 22, 2009 at 11:44 PM, W. Martin Borgert deba...@debian.org wrote: Quoting Olemis Lang ole...@gmail.com: [...] PS: Hey ! Everybody ! I talked to Santa and he'll bring us many great Trac plugins, so Merry Christmas ! o|;o) /me hoping for an international conspiration for a 0.12 + jQuery UI release (but Santa told me it's top-secret, and if I insisted he wouldn't take me to Dream-land and I'd miss the big party :( ...) sight :P -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Protocol tab(s) selected in docs on accessing protocol page - http://bitbucket.org/osimons/trac-rpc-mq/changeset/183f38fc0fe9/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
Olemis Lang wrote: On Wed, Dec 23, 2009 at 11:30 AM, Olemis Lang ole...@gmail.com wrote: On Tue, Dec 22, 2009 at 11:44 PM, W. Martin Borgert deba...@debian.org wrote: Quoting Olemis Lang ole...@gmail.com: [...] PS: Hey ! Everybody ! I talked to Santa and he'll bring us many great Trac plugins, so Merry Christmas ! o|;o) /me hoping for an international conspiration for a 0.12 + jQuery UI release (but Santa told me it's top-secret, and if I insisted he wouldn't take me to Dream-land and I'd miss the big party :( ...) I think it's a bit premature for 0.12. We don't have yet any use for jQuery UI in Trac itself, so if we would add it just for the plugins without a good internal use case, we will probably not do it correctly. Such an use case could be the date picker for the date fields in the custom query ... some attempts have been made, but nothing satisfying yet. Once 0.12 is out, hopefully someone will send a good patch. Btw, I don't see it as a problem to bundle it with Trac. We would have our own copy, with a well tested version, so what? Debian or other packagers can decide to strip it out and add whatever hoops they want. It will then be up to them to ensure that in the end, the .js files will still be installed when doing a trac-admin env deploy folder. But for Windows for example, it would be silly to require a separate download. So maybe for 0.12.1, once we have a good example usage in Trac core. Ah, and o|;o) too ;-) -- Christian -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Trac Wiki won't display images
I use the following line to display an image in the Trac Wiki: [[Image(/attachments/pic.jpg)]] However, when I click on the link, I get: {{{ Error: Not Found No handler matched request to /attachments/pic.jpg }}} I'm very new to Trac, so I've looked through FAQ's and the list, and I haven't found anything concerning this. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Trac Wiki won't display images
zlacelle wrote: I use the following line to display an image in the Trac Wiki: [[Image(/attachments/pic.jpg)]] If the image is attached to the page where you want to display it, you should use: [[Image(attachment:pic.jpg)]] -- Remy signature.asc Description: OpenPGP digital signature
Re: [Trac] Trac Wiki won't display images
On Wed, Dec 23, 2009 at 07:42:00PM +0100, Remy Blank wrote: zlacelle wrote: I use the following line to display an image in the Trac Wiki: [[Image(/attachments/pic.jpg)]] If the image is attached to the page where you want to display it, you should use: [[Image(attachment:pic.jpg)]] -- Remy If its attached to the page you want to display it, you can be even more short-handed: [[Image(pic.jpg)]] -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: Trac Wiki won't display images
It's actually not an attachment, since for some reason attachments aren't working (I go to attach something, and it goes through with no attachment showing...but that's another problem). I just have these files located on disk. On Dec 23, 1:49 pm, Jeff Hammel jham...@openplans.org wrote: On Wed, Dec 23, 2009 at 07:42:00PM +0100, Remy Blank wrote: zlacelle wrote: I use the following line to display an image in the Trac Wiki: [[Image(/attachments/pic.jpg)]] If the image is attached to the page where you want to display it, you should use: [[Image(attachment:pic.jpg)]] -- Remy If its attached to the page you want to display it, you can be even more short-handed: [[Image(pic.jpg)]] -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Advanced use of Genshi substitutions using wiki docs
This one is about Genshi, but it's for a Trac plugin. Hope you don't mind ;o) I'd like to do the following : 1- Retrieve a text written using WikiFormatting. Wiki text contains some Genshi template expressions (done !) 2- Render the text as (X)HTML leaving template expressions intact (done !) 3- Transform the text using a known dict as context , thus expanding template expressions 4- Insert that text in an specific place inside another «static» XML template using same rendering context Q: - Is there a way to pass the output of 2) directly to 4) ? I mean to have something in the «static» template just like ${wiki_tx(text)} and expand the contents inside the wiki text too when transforming the «static» template I thought I knew, but I either forgot or was dreaming ... -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Assessment of unittest 2.7 API : new features and opinions - http://feedproxy.google.com/~r/simelo-en/~3/cVOgG8NIBFY/assessment-of-unittest-27-api-new.html -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
Quoting Remy Blank remy.bl...@pobox.com: - Maybe I'm a bit naive, but what security issues could be in a JavaScript library? Security is provided by the browser, not the libraries, isn't it? In the case of JavaScript, the code runs in the browser, so maybe it could influence client-side security. But in any case, there can be errors in jQuery that need fixes, and there is no need to replace Trac plus other servers, if you can just update jQuery. - Trac expects to find jquery.js in trac/htdocs/js. So in the Debian packaging, you replace the file provided with Trac with a symlink to the separately-packaged jquery.js? Yes. - Do you keep several versions of jQuery installed at the same time on a system, and for every package you link to the required version? There is only one jQuery package in Debian. I hope, that no need arises to keep multiple versions around. Debian could cope with that (we have a lot of libraries etc. in multiple versions), but currently this is not supported for the jQuery package. Packaging jQuery with Trac (besides simplifying dependencies) ensures that we can make changes to the Trac code required by a jQuery update in sync with the update. This is also my fear: If jQuery is packaged with Trac, Trac will maybe depend on a specific version of jQuery and it might be harder for Debian and other distributions to make it work with the version that is supported by the distribution. For jQuery this is risk is probably very low, but it exists. I also notice that Gentoo doesn't have a jQuery package (just a data point, certainly not an authoritative argument). I have a friend at Gentoo, I will immediately tell him, how much better Debian and Ubuntu are, because we have this package :~) This would probably be different for jQuery UI, though. I assume it includes images for the UI controls, so the single file argument drops. Does Debian package jQuery UI? How does it link it into the packages that need it? Currently we have in Debian: libjs-jquery: 1.3.3 libjs-jquery-ui: 1.7.2 libjs-flot: 0.5 Any package that needs a JavaScript Library just symlinks to file it needs. E.g. libjs-jquery provides (among others) the file /usr/share/javascript/jquery/jquery.js The Trac package has a symlink /usr/share/pyshared/trac/htdocs/js/jquery.js to the above file. For Windows-Users it might better to have a kind of Trac meta-package, which contains not only Trac and jQuery, but also other important dependencies, i.e. Python libraries. Whenever I have to work with Windows, I feel relieved, when there is an installer with all I need. Cheers -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] About including jQuery UI in Trac ...
On Wed, Dec 23, 2009 at 6:04 PM, W. Martin Borgert deba...@debian.org wrote: Quoting Remy Blank remy.bl...@pobox.com: [...] Packaging jQuery with Trac (besides simplifying dependencies) ensures that we can make changes to the Trac code required by a jQuery update in sync with the update. This is also my fear: If jQuery is packaged with Trac, Trac will maybe depend on a specific version of jQuery and it might be harder for Debian and other distributions to make it work with the version that is supported by the distribution. For jQuery this is risk is probably very low, but it exists. I am not an expert but I thought `apt` solved this kind of things if e.g. jquery=1.2 was specified in dependencies. Then if there were multiple versions then it selects =1.2.6 (probably multiple repos in sources.list ...) I also notice that Gentoo doesn't have a jQuery package (just a data point, certainly not an authoritative argument). I have a friend at Gentoo, I will immediately tell him, how much better Debian and Ubuntu are, because we have this package :~) lol This would probably be different for jQuery UI, though. I assume it includes images for the UI controls, so the single file argument drops. Does Debian package jQuery UI? How does it link it into the packages that need it? Currently we have in Debian: libjs-jquery: 1.3.3 libjs-jquery-ui: 1.7.2 Hehehe ... and trac works with jquery 1.3.3. or 1.2.6 ? Well, probably does not matter . The only thing that would be needed is a symlink to compatible versions of jQuery + jQuery UI . In the end , major changes are included by Debian packagers too , isn't it ? In the end what programmers (me) care about is about relying on the fact that jQuery UI is there and therefore they won't need to bundle it with each plugin (and not all are in Debian ;o) . Whether it is a symlink or another copy, it's just an implementation detail. libjs-flot: 0.5 cool ! Any package that needs a JavaScript Library just symlinks to file it needs. Love Debian ! -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: All tabs synchronized in RPC docs UI. - http://bitbucket.org/osimons/trac-rpc-mq/changeset/9689e6018102/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] About including jQuery UI in Trac ...
-Original Message- From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of W. Martin Borgert Sent: Wednesday, December 23, 2009 3:04 PM To: trac-users@googlegroups.com; Remy Blank Subject: Re: [Trac] About including jQuery UI in Trac ... Quoting Remy Blank remy.bl...@pobox.com: - Maybe I'm a bit naive, but what security issues could be in a JavaScript library? Security is provided by the browser, not the libraries, isn't it? In the case of JavaScript, the code runs in the browser, so maybe it could influence client-side security. But in any case, there can be errors in jQuery that need fixes, and there is no need to replace Trac plus other servers, if you can just update jQuery. - Trac expects to find jquery.js in trac/htdocs/js. So in the Debian packaging, you replace the file provided with Trac with a symlink to the separately-packaged jquery.js? Yes. - Do you keep several versions of jQuery installed at the same time on a system, and for every package you link to the required version? There is only one jQuery package in Debian. I hope, that no need arises to keep multiple versions around. Debian could cope with that (we have a lot of libraries etc. in multiple versions), but currently this is not supported for the jQuery package. Packaging jQuery with Trac (besides simplifying dependencies) ensures that we can make changes to the Trac code required by a jQuery update in sync with the update. This is also my fear: If jQuery is packaged with Trac, Trac will maybe depend on a specific version of jQuery and it might be harder for Debian and other distributions to make it work with the version that is supported by the distribution. For jQuery this is risk is probably very low, but it exists. I also notice that Gentoo doesn't have a jQuery package (just a data point, certainly not an authoritative argument). I have a friend at Gentoo, I will immediately tell him, how much better Debian and Ubuntu are, because we have this package :~) This would probably be different for jQuery UI, though. I assume it includes images for the UI controls, so the single file argument drops. Does Debian package jQuery UI? How does it link it into the packages that need it? Currently we have in Debian: libjs-jquery: 1.3.3 libjs-jquery-ui: 1.7.2 libjs-flot: 0.5 Any package that needs a JavaScript Library just symlinks to file it needs. E.g. libjs-jquery provides (among others) the file /usr/share/javascript/jquery/jquery.js The Trac package has a symlink /usr/share/pyshared/trac/htdocs/js/jquery.js to the above file. For Windows-Users it might better to have a kind of Trac meta-package, which contains not only Trac and jQuery, but also other important dependencies, i.e. Python libraries. Whenever I have to work with Windows, I feel relieved, when there is an installer with all I need. Just remember the alternative is that every plugin has its own copy. However much work it might be to retrofit Trac to use a central version, it will be much harder to do this for every plugin that wants to use jQuery UI. --Noah -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] About including jQuery UI in Trac ...
Quoting Noah Kantrowitz n...@coderanger.net: Just remember the alternative is that every plugin has its own copy. However much work it might be to retrofit Trac to use a central version, it will be much harder to do this for every plugin that wants to use jQuery UI. No question: This would be worse. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.