Re: [Trac] Upgrading and migrating at the same time
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04.11.2013 21:02, KB wrote: > I'm currently using Trac 0.12.2 and need to upgrade to 1.0. > However, I also need to migrate Trac to a different vm. Do I need > to upgrade to 1.0 on the old vm before migrating? Or should I be > migrating and then upgrading? I've read the information on > upgrading and migrating - just want to make sure I'm doing them in > the right order. There is no need to do the 1.0 install twice. I would move a copy of the 0.12 environment(s), keeping the original (read-only after successful upgrade) as a backup. Watch out for some immediate adjustments, i.e. if file paths change on the move. Steffen Hoffmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlJ4JR4ACgkQ31DJeiZFuHfwvgCfbRft4ysf7wTZ5aiHkRLCYmqy obgAoI/iSm5MCScRTg6mbNdRthkv/a/b =Da5I -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Wiki formatting and javascript scripts
Roger > On Nov 4, 2013, at 9:11 PM, Steffen Hoffmann wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> On 04.11.2013 13:52, roger.oberholt...@gmail.com wrote: >> But I no longer have a body tag. > > Is this another/follow-up question? If so, it was very subtle IMHO. Same question. Just the next step in solving it. Since I don't think I can put a tag in a Trac #!html block, I am not sure how to call a function in the script. In my case it is the init() function in the javascript I have included in the block. Roger -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] Upgrading and migrating at the same time
I'm currently using Trac 0.12.2 and need to upgrade to 1.0. However, I also need to migrate Trac to a different vm. Do I need to upgrade to 1.0 on the old vm before migrating? Or should I be migrating and then upgrading? I've read the information on upgrading and migrating - just want to make sure I'm doing them in the right order. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] Trac 1.0.1 ticket templates not found
I did a new/clean install of Trac 1.0.1 on FreeBSD 9.1. The install was from the FreeBSD ports and I followed the setup instructions from the Trac website. Everything is working fine except for anything to do with tickets. I get this error when I click on "View Tickets" and similar errors when I try to view anything to do with the tickets: Oops… > > Trac detected an internal error: > > TemplateNotFound: Template "report_list.html" not found > > This is probably a local installation issue. > > >> Found a bug in Trac? > > >> If you think this should work and you can reproduce the problem, you >> should consider creating a bug report. > > >> Before you do that, though, please first try searching for similar >> issues, as it is quite likely that this problem has been reported before. >> For questions about installation and configuration of Trac or its plugins, >> please try the mailing list instead of creating a ticket. > > >> Otherwise, please a new bug report describing the problem and explain >> how to reproduce it. > > >> Python Traceback > > >> Most recent call last: > > File "build/bdist.freebsd-9-amd64/egg/trac/web/main.py", line 497, in >> _dispatch_request > > File "build/bdist.freebsd-9-amd64/egg/trac/web/main.py", line 233, in >> dispatch > > File "build/bdist.freebsd-9-amd64/egg/trac/web/chrome.py", line 975, in >> render_template > > File "build/bdist.freebsd-9-amd64/egg/trac/web/chrome.py", line 944, in >> load_template > > File >> "/usr/local/lib/python2.7/site-packages/Genshi-0.7-py2.7-freebsd-9-amd64.egg/genshi/template/loader.py", >> >> line 246, in load > > I noticed that the "trac/ticket" folder is missing from the PYTHON_EGG_CACHE so I enabled debugging in the Trac logs and found this which seems related: 2013-11-04 20:07:22,192 Trac[env] INFO: >> environment startup [Trac 1.0.1] > > 2013-11-04 20:07:22,212 Trac[loader] DEBUG: Loading trac.about from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,214 Trac[loader] DEBUG: Loading trac.admin.console >> from /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,226 Trac[loader] DEBUG: Loading trac.admin.web_ui from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,229 Trac[loader] DEBUG: Loading trac.attachment from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,229 Trac[loader] DEBUG: Loading trac.db.mysql from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,257 Trac[loader] DEBUG: Loading trac.db.postgres from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,259 Trac[loader] DEBUG: Loading trac.db.sqlite from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,267 Trac[loader] DEBUG: Loading trac.mimeview.patch >> from /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,268 Trac[loader] DEBUG: Loading trac.mimeview.pygments >> from /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,286 Trac[loader] DEBUG: Loading trac.mimeview.rst from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,386 Trac[loader] DEBUG: Loading trac.mimeview.txtl >> from /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,397 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = >> trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not >> found) > > 2013-11-04 20:07:22,398 Trac[loader] DEBUG: Loading trac.prefs from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,399 Trac[loader] DEBUG: Loading trac.search from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,400 Trac[loader] DEBUG: Loading trac.ticket.admin from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,401 Trac[loader] DEBUG: Loading trac.ticket.batch from >> /usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg > > 2013-11-04 20:07:22,407 Trac[loader] ERROR: Skipping "trac.ticket.batch = >> trac.ticket.batch": > > Traceback (most recent call last): > > File "build/bdist.freebsd-9-amd64/egg/trac/loader.py", line 68, in >> _load_eggs > > entry.load(require=True) > > File "build/bdist.freebsd-9-amd64/egg/pkg_resources.py", line 2015, in >> load > > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > > File "build/bdist.freebsd-9-amd64/egg/trac/ticket/batch.py", line 25, in >> > > File >> "/usr/local/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/ticket/notification.py", >> >> line 249 > > self.ambiwidth) > >^ > > SyntaxError: invalid syntax (notification.py, line 249) > > 2013-11-04 20:07:22,407 Trac[loader] DEBUG: Loading t
Re: [Trac] Wiki formatting and javascript scripts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04.11.2013 13:52, roger.oberholt...@gmail.com wrote: > But I no longer have a body tag. Is this another/follow-up question? If so, it was very subtle IMHO. Steffen Hoffmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlJ3/4UACgkQ31DJeiZFuHcYxQCg048qKwM1spl4IphIbtDpK2lK UMEAoJGky/xu2L0gmZ8T9peiAujJkSnH =sG0H -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Wiki formatting and javascript scripts
On Friday, November 01, 2013 07:08:52 PM Steffen Hoffmann wrote: > On 01.11.2013 11:06, roger.oberholt...@gmail.com wrote: > > I am trying to in add a javascript thing to a Trac wiki page. For example, > > in> > > this Trac wiki page: > > /systems/wiki/GPS/maps > > > > I have: > > {{{ > > #!html > > > > > > > > }}} > > > > The script is not found. I see in my apache server log that it is looking > > for;> > > GET /systems/wiki/GPS/OpenLayers-2.13.1/OpenLayers.js > > > > which is obviously wrong. I need to have the reference resolve to a > > directory on the server, not a page in the wiki. How can I do that? > > TracWiki will not allow content like scripts unless you explicitly allow > it in your trac.ini: > > [wiki] > render_unsafe_content = true This i already have. > Anyway, I would put the file into /htdocs/ > OpenLayers-2.13.1/OpenLayers.js and refer to it as > site/OpenLayers-2.13.1/OpenLayers.js I decided to use the full URL and that seems to be better. I think... I see that I need to call the script's init() function. I had this as But I no longer have a body tag. -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholt...@ramboll.se Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.