Chris Nelson | 9 Feb 20:40
Favicon

[Trac] Mobile Trac?

I recently got a smart phone and it occurs to me that it would be handy at times to have at least some of Trac
available on it either via a web page or an RSS feed.  Does anyone here have any experience with Trac on mobile devices?

                                                 Chris
--
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY  12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com 

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

AK | 9 Feb 17:16
Picon

[Trac] Issues running trac-admin

Hi ,
I have completed the installation of trac on our ubuntu box..following
this document

http://wiki.slicehost.com/doku.php?id=install_trac_on_ubuntu

but when i get to the

 trac-admin /home/xxxxx/trac_project1 initenv

i get this error

ak <at> exZact1:~$ sudo trac-admin /home/ak/repository/ initdev
Failed to open environment. [Errno 2] No such file or directory: '/
home/ak/repository/VERSION'
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 158,
in env
    self.__env = Environment(self.envname)
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 215, in
__init__
    self.verify()
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 294, in verify
    fd = open(os.path.join(self.path, 'VERSION'), 'r')
IOError: [Errno 2] No such file or directory: '/home/ak/repository/
VERSION'

can someone please let me know if i am missing anything?

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Remy Blank | 9 Feb 20:55
Picon
Favicon

Re: [Trac] Issues running trac-admin


AK wrote: > ak <at> exZact1:~$ sudo trac-admin /home/ak/repository/ initdev
^^^ Is this a typo, or did you really spell it "initdev" (instead of initenv)? -- Remy
Picon

[Trac] question re: patch TracMetrixPlugin


I'm trying to get TracMetrixPlugin to work but am bumping into this
bug:  http://trac-hacks.org/ticket/6149

We're running Trac 11.6 and Python 2.5.2.  My question is where to
find the file(s) that need to be patched per the bug report above.  I
cannot locate mdashboard.py anywhere and the versions of web_ui.py
I've located (in ./site-packages/Trac-0.11.6-py2.5.egg/trac/*) don't
contain the line shown in the patch.

I'm obviously missing something basic about Trac installations!
Hoping for enlightenment!

--mam-p

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Chris Heller | 9 Feb 12:53
Picon

[Trac] Fix for layout of admin pages in IE6

Hi all,  in case you're still dealing with any Trac admins that are using IE6 (yes, there are some floating around out there - we just found one yesterday ;-),  here is what we discovered for fixing the layout of the admin pages. 


The .addnew CSS class (from admin.css) that gets applied to things like the "Add Account" form on the users page uses float:right to move to the right side of the page.  This causes IE6 some issues in calculating the layout and is manifested by the content in the middle of the page (e.g. the user list) to stretch all the way to the right of the page. 

The fix is to forcibly set the width of the non "addnew" content since it is not calculated correctly.  

One issue that came up in applying this generally to all of the admin pages is that there isn't any class that is assigned to items that don't get the float:right treatment.  We ended up using a little bit of extra javascript to do this dynamically. 

Since we have upgraded jQuery to 1.3.2 we were able to use jQuery's closest() method to pick out forms that are within the #tabcontent id, but are not within an .addnew item.  This would get inserted into the ie_pre7_hacks.js file. 

$('#tabcontent form').each(function() {
if($(this).closest('.addnew').length == 0) {
$(this).css({width:'62%'});
}
});

If you have jQuery 1.2.6 (which is the default for Trac 0.11.x),  then you'd need to modify this slightly (or do something else to tweak the generated HTML to have a class that you can target). 

It's a bit of a hack and could certainly be more elegant, but it makes the admin pages functional under IE6 again without breaking other browsers,  so it's probably not worth too much additional effort. 

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to trac-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Vishal | 9 Feb 06:43
Picon

[Trac] regarding new database tables and safety

Hi,

I would like to add some extra data to the trac installation I have,
and for this I may need to add extra tables to the database being
used. Since the database schema will change from the default one, i
would like to know under what situations will a trac database update
be required (as done by using the upgrade command from trad-admin)?
Also, if there is no way to avoid the upgrade, is there a way to do
this seamlessly, so a user does not know about it.

An example for this situation is the client plugin. Whenever I try to
add a new client or change anything in the client custom filed, the
trac project asks me to do an upgrade. This would be sort of very
difficult for the end user, particularly since they wont have admin
permissions, but would need to to add a client nonetheless.

Your help and guidance would be highly appreciated.

Thanks and best regards,
Vishal Sapre

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Noah Kantrowitz | 9 Feb 09:07
Gravatar

Re: [Trac] regarding new database tables and safety


On Feb 8, 2010, at 9:43 PM, Vishal wrote:

> Hi,
>
> I would like to add some extra data to the trac installation I have,
> and for this I may need to add extra tables to the database being
> used. Since the database schema will change from the default one, i
> would like to know under what situations will a trac database update
> be required (as done by using the upgrade command from trad-admin)?
> Also, if there is no way to avoid the upgrade, is there a way to do
> this seamlessly, so a user does not know about it.
>

My snippet for doing this is http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/api.py#L69

http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/db_default.py 
  shows how I setup my schema.

As for making it transparent, no, Trac doesn't work that way. This is  
primarily for safety reasons. DDL changes (like changing tables)  
generally can't be rolled back as part of a transaction if the upgrade  
fails, so you could end up with a bad DB. This is why trac-admin  
upgrade makes a backup for you if possible (or requires you to state  
that you are okay without one since you took a DB backup yourself).

> An example for this situation is the client plugin. Whenever I try to
> add a new client or change anything in the client custom filed, the
> trac project asks me to do an upgrade. This would be sort of very
> difficult for the end user, particularly since they wont have admin
> permissions, but would need to to add a client nonetheless.
>

I don't know what the client plugin is doing, but changing custom  
fields doesn't require a DB change, it doesn't even require a server  
restart.

--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-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Vishal | 9 Feb 11:15
Picon

Re: [Trac] regarding new database tables and safety



On Tue, Feb 9, 2010 at 1:37 PM, Noah Kantrowitz <noah <at> coderanger.net> wrote:

On Feb 8, 2010, at 9:43 PM, Vishal wrote:

Hi,

I would like to add some extra data to the trac installation I have,
and for this I may need to add extra tables to the database being
used. Since the database schema will change from the default one, i
would like to know under what situations will a trac database update
be required (as done by using the upgrade command from trad-admin)?
Also, if there is no way to avoid the upgrade, is there a way to do
this seamlessly, so a user does not know about it.


My snippet for doing this is http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/api.py#L69

http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/db_default.py shows how I setup my schema.

As for making it transparent, no, Trac doesn't work that way. This is primarily for safety reasons. DDL changes (like changing tables) generally can't be rolled back as part of a transaction if the upgrade fails, so you could end up with a bad DB. This is why trac-admin upgrade makes a backup for you if possible (or requires you to state that you are okay without one since you took a DB backup yourself).


An example for this situation is the client plugin. Whenever I try to
add a new client or change anything in the client custom filed, the
trac project asks me to do an upgrade. This would be sort of very
difficult for the end user, particularly since they wont have admin
permissions, but would need to to add a client nonetheless.


I don't know what the client plugin is doing, but changing custom fields doesn't require a DB change, it doesn't even require a server restart.


--Noah

Yes I agree that custom tickets and their options etc, donot even require a server restart.

Actually here is the issue, I would like add some custom ticket entries of 'select' type. The options in this case could well be in hundreds. I was thinking, if it would be possible to store these in the db, instead of the INI.

I am in the process of creating a customer database to be used with the issue tracking done in TRAC, and we would like to create a release management system as well.
Do bring realease management, customer management and issue management into a customized whole, it seems proper that we might have to add new tables to the db.

If the upgrade is unavoidable, it would mean, we'll have to make sure the admin adds new stuff to these tables.

Guess I am unclear about how one can write to new tables and avoid upgrades.

Is that possible?

Thanks and best regards,
Vishal 

--
Thanks and best regards,
Vishal Sapre

---

"So say...Day by day, in every way, I am getting better, better and better !!!"
"A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it"
"Diamond is another piece of coal that did well under pressure”
"May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give."

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to trac-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Noah Kantrowitz | 9 Feb 20:48
Gravatar

RE: [Trac] regarding new database tables and safety

You create the new tables once in a DB upgrade (which requires admin access, but so does installing the plugin anyway), you can then write to them as much as you want. Not sure what the question is, this is standard SQL practice.

 

--Noah

 

From: Vishal [mailto:vsapre80-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Tuesday, February 09, 2010 2:15 AM
To: trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Cc: Noah Kantrowitz
Subject: Re: [Trac] regarding new database tables and safety

 

 

On Tue, Feb 9, 2010 at 1:37 PM, Noah Kantrowitz <noah-WlrdLoc5ZbaFX2APIN6yfw@public.gmane.org> wrote:


On Feb 8, 2010, at 9:43 PM, Vishal wrote:

Hi,

I would like to add some extra data to the trac installation I have,
and for this I may need to add extra tables to the database being
used. Since the database schema will change from the default one, i
would like to know under what situations will a trac database update
be required (as done by using the upgrade command from trad-admin)?
Also, if there is no way to avoid the upgrade, is there a way to do
this seamlessly, so a user does not know about it.

 

My snippet for doing this is http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/api.py#L69

http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/db_default.py shows how I setup my schema.

As for making it transparent, no, Trac doesn't work that way. This is primarily for safety reasons. DDL changes (like changing tables) generally can't be rolled back as part of a transaction if the upgrade fails, so you could end up with a bad DB. This is why trac-admin upgrade makes a backup for you if possible (or requires you to state that you are okay without one since you took a DB backup yourself).

 

An example for this situation is the client plugin. Whenever I try to
add a new client or change anything in the client custom filed, the
trac project asks me to do an upgrade. This would be sort of very
difficult for the end user, particularly since they wont have admin
permissions, but would need to to add a client nonetheless.

 

I don't know what the client plugin is doing, but changing custom fields doesn't require a DB change, it doesn't even require a server restart.


--Noah

 

Yes I agree that custom tickets and their options etc, donot even require a server restart.

 

Actually here is the issue, I would like add some custom ticket entries of 'select' type. The options in this case could well be in hundreds. I was thinking, if it would be possible to store these in the db, instead of the INI.

 

I am in the process of creating a customer database to be used with the issue tracking done in TRAC, and we would like to create a release management system as well.

Do bring realease management, customer management and issue management into a customized whole, it seems proper that we might have to add new tables to the db.

 

If the upgrade is unavoidable, it would mean, we'll have to make sure the admin adds new stuff to these tables.

 

Guess I am unclear about how one can write to new tables and avoid upgrades.

 

s

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to trac-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Ryan J Ollos | 9 Feb 00:05

[Trac] Pass variables to a PageTemplate?


Hello,

Is there a way to pass variables to a page template without coding up a
plugin?

It appears that something similar is done when creating a NewHack on
trac-hacks.org [1], [2].  I haven't looked into that code yet, but it looks
like it would take a bit of coding to setup what I want.  I wanted to first
see if there was an easy way to do this that I'm missing.

For example, I'd like to have a PageTemplate that contains a variable, such
as ${DATE}, and have the date set in the body of the wiki page when it is is
created.

[1] http://trac-hacks.org/wiki/NewHack
[2] http://trac-hacks.org/wiki/NewHackTemplate
-- 
View this message in context: http://old.nabble.com/Pass-variables-to-a-PageTemplate--tp27507815p27507815.html
Sent from the Trac Users mailing list archive at Nabble.com.

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Ryan J Ollos | 9 Feb 08:35

Re: [Trac] Pass variables to a PageTemplate?


Michael, the t.h.o. Admin, provided an example of how to do this here:
http://trac-hacks.org/ticket/4724#comment:3
-- 
View this message in context: http://old.nabble.com/Pass-variables-to-a-PageTemplate--tp27507815p27511437.html
Sent from the Trac Users mailing list archive at Nabble.com.

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


Gmane