Hi,

I'm playing around with the VotePlugin[1] and am running into some
problems which I think are general to Trac, rather than specific to
the plugin.  Of course I may be wrong about this :)

I installed the plugin on Trac 0.12 without any issues.  I've
configured it to only allow voting on tickets, that also worked just
fine.  Now however, I'd like to query and show tickets and this is
where I run into issues.

1. Showing the current number of votes: the plugin modified the SQL
schema to include the vote count, but how can I show the vote count in
a column when showing a report?
2. Creating a report based on votes: the plugin comes with an SQL
query that's supposed to show a report of all tickets with a vote
count >0, but it shows nothing, my SQL is very bad, so I'd rather use
a TracQuery but I can't seem to access the vote count field at all.

The schema is defined like this:

    schema = [
        Table('votes', key=('resource', 'username', 'vote'))[
            Column('resource'),
            Column('username'),
            Column('vote', 'int'),
            ]
        ]

Any and all help is much appreciated.

/M

[1]: http://trac-hacks.org/wiki/VotePlugin

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to