Mauricio Tavares | 27 Jan 18:14
Picon

[Trac] TracWikiPrintPlugin not printing an image: not authorized?

      I have a quick question regarding trac-wikiprint 1.9.2. I
recently installed it in an ubuntu 11.10 box, set wikiprint.* =
enabled, set log to debug, and restarted apache.

2012-01-27 11:36:56,098 Trac[chrome] DEBUG: Prepare chrome data for request
2012-01-27 11:36:56,099 Trac[perm] DEBUG: No policy allowed raubvogel
performing TRAC_ADMIN on None
2012-01-27 11:36:56,100 Trac[perm] DEBUG: No policy allowed raubvogel
performing PERMISSION_GRANT on None
2012-01-27 11:36:56,100 Trac[perm] DEBUG: No policy allowed raubvogel
performing PERMISSION_REVOKE on None
2012-01-27 11:36:56,100 Trac[perm] DEBUG: No policy allowed raubvogel
performing TICKET_ADMIN on None
2012-01-27 11:36:56,101 Trac[perm] DEBUG: No policy allowed raubvogel
performing VERSIONCONTROL_ADMIN on None
2012-01-27 11:36:56,101 Trac[perm] DEBUG: No policy allowed raubvogel
performing WIKIPRINT_ADMIN on None
2012-01-27 11:36:56,102 Trac[perm] DEBUG: No policy allowed raubvogel
performing WIKIPRINT_BOOK on None

Then I went to a given page, which contained a .png image,
[[Image(install.png)]], which seems to be seen to the browser as

https://ubuntu1004-x64.internal.domain.com/admin/attachment/wiki/Training/install.png

and tried to print as a pdf article. This is what the log file said
about the image:

2012-01-27 11:36:56,104 Trac[wikiprint] DEBUG: WikiPrint => Start
function wikipage_to_html
(Continue reading)

sbamford | 26 Jan 21:49
Favicon
Gravatar

[Trac] Creating Links Using Trac Plugin

Hi

I have previously posted about this but I thought I would start a new
thread as the other is two months old now.
I am trying to make a plugin that takes the values in a custom ticket
field and turns them into links to our review board server. I have
started work on that, borrowing heavily from [1], that was pointed out
to me by Torbjörn Svensson.
However, I can't find the documentation for what exactly filter_stream
is dealing with. So far I have deleted the code that doesn't deal with
tickets, and I have changed the secondary method. However, I'm working
on the assumption that what is being returned by
    "data['ticket'][self.field_name]"
is the comma separated list of numbers that is stored in the database.
In which case, is that were I should be saving my results back to,
since it is currently being stored in field['rendered']?
So where can I find useful documentation about the data-structure of
data? Am I anywhere near the fields that I want to be using? And also,
is my plugin at the moment going to be doing what I want it to be
doing (assuming I have wiki formatting turned on for the field)?

Thanks
Scott

class InterLinksPlugin(Component):
    implements(ITemplateStreamFilter)

    field_name = 'reviewno'

    # ITemplateStreamFilter methods
(Continue reading)

Andreas Rickert | 26 Jan 16:21
Picon
Picon
Gravatar

[Trac]

 

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Andreas Rickert | 26 Jan 16:20
Picon
Picon
Gravatar

trac-users@... - 7 Messages in 3 Topics

 

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Adam Interact | 25 Jan 16:14
Picon

[Trac] Email notification is sending only to CC

Any email notification is sending only to CC set in the trac.ini
notification part. Also I have set use_public_cc to true

Here is my [notifications] part

[notification]
admit_domains =
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = true
ignore_domains =
mime_encoding = base64
sendmail_path =
smtp_always_bcc =
smtp_always_cc = adam.interact@…
smtp_default_domain =
smtp_enabled = true
smtp_from = trac.null@…
smtp_from_name = Trac Null
smtp_password =
smtp_port = 587
smtp_replyto = trac.nullt@…
smtp_server = smtp.gmail.com
smtp_subject_prefix = default
smtp_user = trac.null@…
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = true
use_short_addr = false
use_tls = true

Notification email is sending only to CC, TO field is empty and I
suspect to have there an email of a person for which a new ticket is
assigned (as an example).

--

-- 
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.

HardyPottinger | 24 Jan 19:57
Picon
Gravatar

[Trac] turning on trac post-commit script in trac v12.1, RHEL6

Hi, I attempted to e-mail this message earlier, but it was apparently
from the wrong address, so I'm posting via the web interface instead.
Apologies if this ends up producing a duplicate message.

 I've installed the version (v12) of Trac maintained by EPEL (Extra
Packages for Enterprise Linux) for RHEL6. This is an upgrade for us,
we've
been using Trac for years, and this upgrade is from v11, also
installed on
RHEL (v5) via EPEL. A smooth upgrade from v11, for the most part, with
the
exception of the required changes to the post-commit configuration.

I see from the wiki that I need to enable the CommitTicketUpdater
plugin,
and that this plugin is part of the standard installation of Trac, but
must be enabled. I can confirm the commit_updater.py code is present
on
the system:

locate commit_updater.py
/usr/lib/python2.6/site-packages/tracopt/ticket/commit_updater.py
/usr/lib/python2.6/site-packages/tracopt/ticket/commit_updater.pyc
/usr/lib/python2.6/site-packages/tracopt/ticket/commit_updater.pyo

I have added the following lines to our trac.ini file:

...
[components]
...
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
tracopt.ticket.commit_updater.committicketupdater = enabled
...

[ticket]
commit_ticket_update_check_perms = true
commit_ticket_update_commands.close =
commit_ticket_update_commands.refs = <ALL>
commit_ticket_update_envelope = []
commit_ticket_update_notify = true
...

And I've upgraded the post-commit hook script in the svn repository,
so
that it reads:

#REPOS="$1"
REPOS="/svr/svn/our_repository_name"
REV="$2"

# e-mail a message detailing this commit
/usr/local/path/bin/commit-email.pl "$REPOS" "$REV" --from
admin@... -s "commit: " ourdevmaillist@...

# call the trac-post-commit-hook
LOG=`/usr/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/bin/svnlook author -r $REV $REPOS`
TRAC_ENV='/svr/trac/ourrepository/'
TRAC_URL='https://oururl/ourrepository'

$REPOS/hooks/bin/trac-svn-hook\
  "$REPOS"  \
  "$REV"       \
  "$AUTHOR"

The $REPOS/hooks/bin/trac-svn-hook script was copied directly from
/usr/share/doc/trac-0.12.1/contrib/trac-svn-hook

First, the symptoms:

* Commits are working as expected: messages are sent from the post-
commit
hook to ourdevmaillist
* Commands in commit messages no longer update tickets in Trac. This
used
to work with our v11 installation of Trac.
* The admin interface of our Trac site does not indicate that the
plugin
tracopt.ticket.commit_updater.committicketreferencemacro is enabled,
nor
that it's even an available plugin.

So, I'm wondering if anyone else has successfully made a similar
upgrade
in a RHEL environment, and if so, would you be able to share the
secrets
of your success with me? Or, even if you're not working in this
environment, if
you have any tips for me, they'd be appreciated. Thanks!

--

-- 
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.

Rob Moore | 24 Jan 16:58
Picon
Gravatar

[Trac] [changeset:???] function

Hi,

 

is there any way of showing the author of a commit using the [changeset:]

command in a wiki page? I want the tooltip you get when putting the cursor

over the changeset link in a wiki page to show the author as well.

 

Thanks for your help.

 

Rob

 

 

Robert Moore
Constraint Manager Team Leader
1500 Aztec West, Almondsbury, Bristol, BS32 4RF, UK
T: +44 (0) 1454 207800     DDi: +44 (0) 1454 207817
F: +44 (0) 1454 207803    
E: Rob.Moore-3flU0AWMlV710XsdtD+oqA@public.gmane.org     W: www.zuken.com


Zuken Ltd // Registered office: Bristol // Registered No. 956340 // Directors: Jinya Katsube, Kazuhiro Kariya, S Yukawa

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

 

 

--
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.
Olemis Lang | 23 Jan 17:31
Picon

[Trac] Looking for Trac-Hacks Hg (maybe Git) mirrors

Hi !

I'd like to know if somebody has already created Hg mirrors of t.h.o
svn repository .
If any, it'd be nice to know as well how often (it is | they are) updated
IOW I'm looking for something like this [1]_ but for (all | a subset
of | different) trac-hacks .

If there's no such thing , I'd appreciate to hear from you suggestions
to get this done and cause no trouble .

Thnx in advance.

.. [1] XmlRpcPlugin mirror @ Bitbucket
        (https://bitbucket.org/osimons/trac-rpc)

--
Regards,

Olemis

Facebook => http://www.facebook.com/olemis
Twitter => http://www.twitter.com/olemislc (@olemislc)
Blog ES => http://simelo-es.blogspot.com
Blog EN => http://simelo-en.blogspot.com
Quora => http://www.quora.com/olemis
Youtube => http://youtube.com/user/greatsoftw

Featured article : Identificando números primos con expresión regular en Perl
http://feedproxy.google.com/~r/simelo-news/~3/BHr859OSndo/identificando-numeros-primos-con.html
Tweet: RT @WANdisco How you can add #uTest to #uberSVN...
http://t.co/SCUhNd6B #fb
Follow @olemislc Reply Retweet   12:35 Jan-20
  Get this email app!
Get a signature like this. CLICK HERE.

--

-- 
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.

Magnus Therning | 22 Jan 19:34
Gravatar

[Trac] VCS hook control from Trac web admin?

I've only found a plugin that allows editing of SVN hooks[^1], but it
is unlikely to cut it in our organisation; having users editing
scripts that are run on the server will not be well received by the
system admins.  So, is there some other plugin that gives the user
some control (but not full) over the hooks, maybe something along the
lines of how github handles hooks?  Ideally it should also support
both SVN and git.

I thought I'd ask before I invest too much time in such a plugin
myself.

/M

--

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

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay

[^1]: http://trac-hacks.org/wiki/TracSvnHooksPlugin
Cooke, Mark | 20 Jan 12:59
Picon

[Trac] Can "Custom query" show equivalent TicketQuery macro?

Folks,

Is there any way to get the Custom query builder to display the equivalent TicketQuery macro parameters?  I
thought this used to almost show up in the address but my 0.12 only shows `.../query` in the address bar.

If not, does anyone else think this is worth raising as an enhancement ticket?

Cheers,

~ mark c

--

-- 
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.

sbamford | 19 Jan 23:59
Favicon
Gravatar

[Trac] XmlRpc ticket.update()

Hi

I am using XmlRpcPlugin to download, modify, and update tickets
(specifically our custom field 'reviewno'). The API for
ticket.update() says:
 "'New-style' call requires two additional items in attributes: (1)
'action' for workflow support (including any supporting fields as
retrieved by getActions()), (2) '_ts' changetime token for detecting
update collisions (as received from get() or update() calls). Calling
update without 'action' and '_ts' changetime token is deprecated, and
will raise errors in a future version."

So what is supposed to go in the action entry. If I have it there but
blank, I get back

      xmlrpc.client.Fault: <Fault 1: "'Rpc: Ticket 52 by admin invalid
action ''' while executing 'ticket.update()'">

and when I don't put it in at all it works. My guess to why this works
is because the error raising has not yet been enabled. However, I
would like my program to still work when the API is updated. At the
moment I am stripping out everything from attributes except reviewno,
and _ts at the moment so that any accidental changes to other fields
are not uploaded.

Also, should I be updating _ts when I upload the ticket, or is just
using the value that came down with the ticket ok? Currently I use the
value that came down with Trac, and that seems to work, but it's not
clear if I am being told to use use the value I got from ticket.get(),
or if I should generate a new one at upload time with the same format.

Thanks
Scott

--

-- 
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