[Trac] Re: Wiki isn't accessable after server restart

2008-12-19 Thread Shun-ichi GOTO

2008/12/19 Christian Stührmann christian_stuehrm...@web.de:

 Hello,
 I set up trac without problems and all was fine until i restarted my
 server. My SVN repo is accessable and working, but when I serve to my
 wiki I get a login prompt. After typing in valid login data I get the
 following error message:

You should see the error log of apache.

BTW, when I'd encounted similar error before (on debian), I got the problem on
restarting by sudo apach2ctl restart instead of /etc/init.d/apache2 restart.

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
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@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: Exporting Japanese wiki pages to PDF

2008-12-10 Thread Shun-ichi GOTO

2008/12/10 Olaf Meeuwissen [EMAIL PROTECTED]:
 I've managed to get the plugin to output a Docbook file with Japanese.
 I've had no luck so far using the companion python script to combine
 multiple wiki pages in a single Docbook document.  Cluebats welcome.

The script seems not friendly and having some assumption.
You might need modifying for your env.


 I've also tried converting the Japanese Docbook file with Debian's fop
 but it seems I also have to fiddle with font settings.  All Japanese
 shows up as ### in the PDF.  I have Japanese TrueType fonts.

You may need to create font metrics for MS-Mincho and MS-Gothic and
configure to use it.

See this page to make font metric and how to configure FOP:
http://xmlgraphics.apache.org/fop/0.94/fonts.html#truetype-collections-metrics

You also need to tell to specify fonts via xls parameter.
I recommend making small .xsl file to define options parameters and it
calls specific .xsl file. For example to make PDF:

xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0'
  xsl:import href=c:/usr/share/docbook-xsl/fo/docbook.xsl/
  xsl:param name=chunker.output.encoding select='utf-8'/
  xsl:param name=fop.extensions select=1/
  xsl:param name=paper.type select='A4'/
  xsl:param name=ulink.show select=0/
  xsl:param name=draft.mode select=no/
  xsl:param name=section.autolabel select=1/
  xsl:param name=section.label.includes.component.label select=1/
  xsl:param name=hyphenatefalse/xsl:param
  xsl:param name=title.font.family select='MSGothic'/
  xsl:param name=body.font.family select='MSMincho'/
  xsl:param name=sans.font.family select='MSGothic'/
  xsl:param name=monospace.font.family select='Helvetica'/
/xsl:stylesheet


I named it as 'docbook-pdf.xsl' and use it like this:

$ edit mybook.xml
$ xsltproc --nonet -o mybook.fo docbook-pdf.xsl mybook.xml
$ fop -c mybook.cfg mybook.fo mybook.pdf


And you may also need to ensure lang=ja attribute is in root element
of docbook document. (like article lang=ja  )


 In the mean time, information on the Japanese fonts would be most
 appreciated.

 Hope this helps,


# My knowledge might be bit old because I'd setup with FOP 0.20.x.
# Today, I tried with recent version of fop 0.94 and success for samll
# files, but not yet with AsciiDoc generated files...

-- 
Shun-ichi GOTO

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



[Trac] Re: Exporting Japanese wiki pages to PDF

2008-12-08 Thread Shun-ichi GOTO

2008/12/9 Olaf Meeuwissen [EMAIL PROTECTED]:

 Shun-ichi GOTO [EMAIL PROTECTED] writes:

 If you want to print like a book, another plugin PageToDocbook plugin
 may help you.
 You can create PDF like this:
   wiki --(plugin)-- DocBook --(xsl)-- XSL-FO --(fop)-- PDF
 It's not automated process but Japanese can be allowed.

 Thanks for the tip.  I'll have a look at it.
 Apart from not being automatic, it also looks a bit Unix centered ;-)

F.Y.I., there's one another path using dblatex:
  wiki --(plugin)-- DocBook --(dblatex)-- pdf

Unfortunately, setting up dblatex (and LaTeX related tools) for
Japanese is a bit complex,
but it provides good looking result for the book.
-- 
Shun-ichi GOTO

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



[Trac] Re: Exporting Japanese wiki pages to PDF

2008-12-06 Thread Shun-ichi GOTO

2008/12/5 Olaf Meeuwissen [EMAIL PROTECTED]:
 Based on the lack of follow-ups, I guess not.

 For now I'll just have to settle for printing individual wiki pages
 from a browser (and maybe tweak the stylesheet for print media).  That
 way, I can at least create a PDF file but it doesn't look too great.

I'm Japanese user and usually making PDF via browser's printing (no so
frequently).
It is not so bad with by using custom CSS for printing device for hiding buttons
and attachments (and also with disabling print header of browser).

/* printing styles */
@media print {
  /* hide some buttons */
  div.buttons, div.buttons input {
display: none;
  }

  /* hide attachment part */
  h3#tkt-changes-hdr, ul.tkt-chg-list, li.tkt-chg-change {
display: none;
  }
}

If you want to print like a book, another plugin PageToDocbook plugin
may help you.
You can create PDF like this:
  wiki --(plugin)-- DocBook --(xsl)-- XSL-FO --(fop)-- PDF
It's not automated process but Japanese can be allowed.

-- 
Shun-ichi GOTO

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



[Trac] Re: Sorting order of ticket box macro

2008-07-04 Thread Shun-ichi GOTO
2008/7/2 Eleonore DUVELLE [EMAIL PROTECTED]:
 I'd like to know if it is possible, using the ticketBox macro, to get the
 same order than the report associated ? My reports are ordered by beginning
 date – a custom ticket field – but the tickets displayed with a ticketBox
 macro linked to these reports aren't in the same order.

I've implemented and committed your feature.
Check it out from Trac-Hacks (r3957).

You can prevent sorting by specifying 'nosort' keyword.
ex. [[TicketBox(Active Tickets, {1}, nosort)]]

-- 
Shun-ichi GOTO

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


Display list of ticket numbers in a box on the right side of the page.
The purpose of this macro is show related tickets compactly.
You can specify ticket number or report number which would be expanded
as ticket numbers. Tickets will be displayed as sorted and uniq'ed.

Example:
{{{
[[TicketBox(#1,#7,#31)]]   ... list of tickets
[[TicketBox(1,7,31)]]  ... '#' char can be omitted
[[TicketBox({1})]] ... expand report result as ticket list
[[TicketBox([report:1])]]  ... alternate format of report
[[TicketBox([report:9?name=val])]] ... report with dynamic variable
[[TicketBox({1),#50,{2},100)]] ... convination of above
[[TicketBox(500pt,{1})]]   ... with box width as 50 point
[[TicketBox(200px,{1})]]   ... with box width as 200 pixel
[[TicketBox(25%,{1})]] ... with box width as 25%
[[TicketBox('Different Title',#1,#2)]] ... Specify title
[[TicketBox(\Other Title\,#1,#2)]] ... likewise
[[TicketBox('%d tickets',#1,#2)]]  ... embed ticket count in title
[[TicketBox({1}, nosort)]] ... display numbers without sort
}}}

[wiki:TracReports#AdvancedReports:DynamicVariables Dynamic Variables] 
is supported for report. Variables can be specified like
{{{[report:9?PRIORITY=highCOMPONENT=ui]}}}. Of course, the special
variable '{{{$USER}}}' is available. The login name (or 'anonymous)
is used as $USER if not specified explicitly.


## NOTE: CSS2 defines 'max-width' but it seems that only few browser
##   support it. So I use 'width'. Any idea?

import re
import string
from trac.wiki.formatter import wiki_to_oneliner
from trac.ticket.report import ReportModule

## default style values
styles = { float: right,
   background: #f7f7f0,
   width: 25%,
   }
inline_styles = { background: #f7f7f0, }

args_pat = [r#?(?Ptktnum\d+),
r{(?Prptnum\d+)},
r\[report:(?Prptnum2\d+)(?Pdv\?.*)?\],
r(?Pwidth\d+(pt|px|%)),
r(?Pkeywordnosort|summary|inline),
r(?Ptitle1'.*'),
r'(?Ptitle2.*)']

def uniq(x):
y=[]
for i in x:
if not y.count(i):
y.append(i)
return y

def sqlstr(x):
Make quoted value string for SQL.
return '%s' % x.replace( ','' )

def execute(formatter, args):
txt = args
req = formatter.req
env = formatter.env
if not txt:
txt = ''
items = []
long_items = {}
show_summary = False
inline = False
nosort = False
title = Tickets
args_re = re.compile(^(?: + string.join(args_pat, |) + )$)
for arg in [string.strip(s) for s in txt.split(',')]:
match = args_re.match(arg)
if not match:
env.log.debug('TicketBox: unknown arg: %s' % arg)
continue
elif match.group('title1'):
title = match.group('title1')[1:-1]
elif match.group('title2'):
title = match.group('title2')[1:-1]
elif match.group('width'):
styles['width'] = match.group('width')
elif match.group('tktnum'):
items.append(int(match.group('tktnum')))
elif match.group('keyword'):
kw = match.group('keyword').lower()
if kw == 'summary':
show_summary = True
elif kw == 'inline':
inline = True
elif kw == 'nosort':
nosort = True
elif match.group('rptnum') or match.group('rptnum2'):
num = match.group('rptnum') or match.group('rptnum2')
dv = {}
# username, do not override if specified
if not dv.has_key('USER'):
dv['USER'] = req.authname
if match.group('dv'):
for expr in string.split(match.group('dv')[1:], ''):
k, v = string.split(expr, '=')
dv[k] = v
#env.log.debug('dynamic variables = %s' % dv)
db = env.get_db_cnx()
curs = db.cursor

[Trac] Re: Sorting order of ticket box macro

2008-07-04 Thread Shun-ichi GOTO

2008/7/4 Eleonore DUVELLE [EMAIL PROTECTED]:
 [[TicketBox('Mes tickets',[report:1],summary,inline,nosort)]]

 Prints :

 Mes tickets
 Configuration nouveaux tickets trac (#32)
 idées sur trac (#82)
 Trac est lent (#31)

Sorry, I missed it.
I've fixed (r3958).
-- 
Shun-ichi GOTO

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



[Trac] Re: Translating Trac and empty strings

2008-06-25 Thread Shun-ichi GOTO

2008/6/25 Jani Tiainen [EMAIL PROTECTED]:

 I'm now in process of translating Trac to Finnish.

 I encountered problem that I couldn't find any solution right away:

 There is at least few 'of', 'by' words that should be left empty since
 there is no such words in Finnish. So how to define empty (zero length)
 string in translation file?

In Japanese translation, I use single space string for that.

-- 
Shun-ichi GOTO

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



[Trac] Re: Installation of ticketBox plugin

2008-06-11 Thread Shun-ichi GOTO

2008/6/11 Eleonore DUVELLE [EMAIL PROTECTED]:

 IT WORKS!!

 Actually, there was a mistake in the TicketBox.py code :

Ouch!  I've fixed and committed as r3822. Thanks.
# I was tested with bit older version, sorry.

-- 
Shun-ichi GOTO

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



[Trac] Re: Installation of ticketBox plugin

2008-06-10 Thread Shun-ichi GOTO

2008/6/10 Eleonore DUVELLE [EMAIL PROTECTED]:
 I 'm trying to install the ticketBox plugin on my Trac 0.11b2 version. I've
 followed the instructions on this page
 (http://trac-hacks.org/wiki/TicketBoxMacro) : just copy the .py file in my
 plugin directory.

Did you installed the macro into shared system-wide plugin directory?
If so, try placing TicketBox.py to plugins folder which each project
(trac environment)  has.
# Then restart trac

P.S.
The description of installation in TicketBox wiki page may wrong about
system-wide installation of such a single-file-plugin.

-- 
Shun-ichi GOTO

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



[Trac] Re: trac-wiki.el and xml_rpc

2008-06-07 Thread Shun-ichi GOTO

2008/6/7 km [EMAIL PROTECTED]:

 Please update to trac-wiki.el ver. 1.8 first, then try again.

 thanks. i just tried it and still get ERROR: The site seems not
 support XML-RPC.

This error indicates that server returns 404 response.
I've fixed (maybe) a related issue with recent emacs
(around cl struct access). Try with most recent one again:
  http://www.meadowy.org/~gotoh/trac-wiki/trac-wiki.el

 my guess is that xml_rpc really is not working on my site. i will try
 reverting to an earlier version of trac to see if i can get the
 xml_rpc plugin to work.

 (eval-after-load url-auth
   '(let ((auth (base64-encode-string (format %s:%s yourname
 yourpassword
  (set (symbol-value 'url-basic-auth-storage)
   `((www.some.org:80 (realm string for the site . ,auth))

 I see that the code above sets the value of url-basic-auth-storage
 However, your web page says to set the value of url-HTTP-REAL-basic-
 auth-storage. shouldn't these be the same?

Ah, sorry.
You are right. I've mixed.

To be simple:

(let ((auth (base64-encode-string (format %s:%s yourname yourpassword
   (setq url-http-real-basic-auth-storage)
`((www.some.org:80 (realm string for the site . ,auth

 And what should one use for digest authorization? Evaluating
 expressions of either form below generates an wrong-type-argument
 symbolp error:

For digest auth, it's much complex to set value like above.
And I didn't get success for digest auth due to url library issue.
Sorry, please use basic auth if possible.


FYI, trac-hacks site is one of the site you can access with
basic auth (if you registered) and usable from trac-wiki.

-- 
Shun-ichi GOTO

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



[Trac] Re: Showing images with funny characters in name

2008-06-07 Thread Shun-ichi GOTO

2008/6/6 Michael Schmarck [EMAIL PROTECTED]:
  Error: Macro Image(sys01, konfigurieren Devices in NBU.png) failed

  Attachment 'wiki:NewPage: fhids01' does not exist.

 How to do that correctly?

Do not use comma in filename if possible.
It is limitation of Image macro.

-- 
Shun-ichi GOTO

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



[Trac] Re: remote access - url format?

2008-06-06 Thread Shun-ichi GOTO

2008/6/6 km [EMAIL PROTECTED]:

 If you can, try accessing without authentication by allowing XML-RPC
 access for everyone (by add XML_RPC action to anonymous).

 good idea.  i upgraded to emacs 22.2 and tried, but now i get the
 following error: ERROR: The site seems not support XML-RPC.

 hmm. is there a non-browser way to see if site is actually running
 xmlrpc?  all but one of the xmlrpc options are ticked (xmlrpcWeb) --
 and xml_rpc does appear in the permissions pull-down menu.

Please update to trac-wiki.el ver. 1.8 first, then try again.
It has some bug fixes on the case of interactive url input.

  http://www.meadowy.org/~gotoh/projects/trac-wiki/wiki


 (let ((auth (base64-encode-string (format %s:%s yourname 
 yourpassword
   (set (symbol-value 'url-basic-real-auth-storage)
`((www.some.org:80 (realm string for the site . ,auth)

 where would this code actually be inserted?

 (note: i think there is a typo on your web page. shouldn't url-digets-
 auth-storage be url-digest-auth-storage?)

Sorry it's not good.
Please use this:

(eval-after-load url-auth
  '(let ((auth (base64-encode-string (format %s:%s yourname
yourpassword
 (set (symbol-value 'url-basic-auth-storage)
  `((www.some.org:80 (realm string for the site . ,auth))

Put the code above in *scratch* buffer then evaluate it (by C-x C-e at
end of last line. If it is good, put it in your .emacs for next use.



 Anyway, I'll try with most recent emacs on debian later...

 that would be great. (i see that you are running meadowy.org on trac
 0.10.4 -- perhaps we should revert our site to this early version of
 trac.)

I've got success with newly compiled emacs 22.1 and latest 23.0.60
on debian. I use standard library of url package provided with emacs.
So, I don't know why you fail.
If you can, please show me the content of buffer  *http www..xx:80*?

-- 
Shun-ichi GOTO

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



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km [EMAIL PROTECTED]:
 i have installed xmlrpc on my server -- and have seen information
 about trac-wiki (plugin for emacs) and an eclipse plugin. it is very
 possible that i am completely confused, but presumably i need to pass
 a url to these editors to actually edit pages. so, what is the format
 of the urls?

For  'trac-wiki on emacs, url is a  target trac site url itself.
For example, to access to trac page of emacs-trac-wiki project,
you would specify http://www.meadowy.org/~gotoh/projects/trac-wiki/

-- 
Shun-ichi GOTO

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



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km [EMAIL PROTECTED]:
 error in process sentinel: Symbol's function definition is void: url-
 file-directory

 note: our entire trac project itself sits behind authentication at
 this point. could this be an issue for trac-wiki.el?

I guess this might be a issue on emacs, especialy on url library,
and  not in trac-wiki itself because url-file-directory function is not used
in its code.

What version of emacs and what type of os are you using?
I've tested with emacs 21.4 on debian etch and with meadow
(based on emacs 22.2) on windows.

-- 
Shun-ichi GOTO

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



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km [EMAIL PROTECTED]:
 it asks me if i want to login -- then it prompts for user/pass. i
 assume that this url is restricted for authenticated users, so that
 seems correct.

OK, it seems to be corrected.

 however, if i try the same for my site, i get into the eternal loop of
 asking for username/password. you mention this on your info page. but
 i actually have the latest version cvs version of url-http.el from
 here: 
 http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/url/url-http.el?revision=1.59view=markup

 so i'm not sure what is the problem.

Hmm...
It looks like same behaviour I fought with.
# url library is one of heavily modified and unstabled library in
emacs devel even now.

If you can, try accessing without authentication by allowing XML-RPC
access for everyone
(by add XML_RPC action to anonymous). Is it success? If so, it might
be a auth-storage
issue described on trac-wiki page and you may take a workaround by specifying
auth data by your hand like this (of course, fill your name, pass, site, etc.):

(let ((auth (base64-encode-string (format %s:%s yourname yourpassword
  (set (symbol-value 'url-basic-real-auth-storage)
   `((www.some.org:80 (realm string for the site . ,auth)
;;; assume the site uses basic authentication

Does it solve?

Anyway, I'll try with most recent emacs on debian later...

-- 
Shun-ichi GOTO

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



[Trac] Re: Status of i18n branch?

2007-09-07 Thread Shun-ichi GOTO
2007/9/7, 胡争辉 [EMAIL PROTECTED]:
 Sorry I got the message below:


 Oops...
  Trac detected an internal error:

 If you think this really should work and you can reproduce it, you should
 consider reporting this problem to the Trac team.

 Go to http://trac.edgewall.org/ and create a new ticket where you describe
 the problem, how to reproduce it. Don't forget to include the Python
 traceback found below.
...snip...
  File /usr/lib/python2.4/site-packages/trac/db/util.py,
 line 50, in execute
  return self.cursor.execute(sql_escape_percent(sql), args)
 ProgrammingError: current transaction is aborted, commands ignored until end
 of transaction block

I got same message on ja_JP ticket.
You may success attaching gzip'ed message.po.gz like me.

# F.Y.I., this seems #4718 issue.

-- 
Shun-ichi GOTO

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



[Trac] Re: Step by Step trac localization guide

2007-09-06 Thread Shun-ichi GOTO

2007/9/6, funnyduck [EMAIL PROTECTED]:
 UnknownLocaleError: unknown locale 'ru_RU'

 But there is indeed a folder with name C:\Python25\Lib\site-packages
 \Trac-0.11dev_r5942-py2.5.egg\trac\locale\ru_RU.

 Is it because of Babel version?

How do you installed babel?
It seems that locale data is not imported.
Try to follow the instruction on this page.

http://babel.edgewall.org/wiki/SubversionCheckout

-- 
Shun-ichi GOTO

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



[Trac] Re: Step by Step trac localization guide

2007-09-06 Thread Shun-ichi GOTO

2007/9/6, funnyduck [EMAIL PROTECTED]:

 Thanks.
 Yes I forgot to import locales.
 Now it's fine.
 I've got:
 python 2.5
 apache 2.2.4
 babel-1.0dev_r311-py2.5(with imported locales)
 genshi-0.5dev_r753-py2.5-win32

 But still english page(not russian) appears.

Ah, run this command in trac 0.11 i18n directory.

  python setup.py compile_catalog --use-fuzzy

-- 
Shun-ichi GOTO

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



[Trac] Re: Step by Step trac localization guide

2007-09-04 Thread Shun-ichi GOTO

2007/9/4, funnyduck [EMAIL PROTECTED]:
 TypeError: coercing to Unicode: need string or buffer, LazyProxy
 found


 Any suggestions?

I'd got same error. This patch for genshi (against trunk) may fix the
'LazyProxy' error. But this is temporary workaround and I don't know right fix.

{{{
Index: genshi/filters/i18n.py
===
--- genshi/filters/i18n.py  (revision 732)
+++ genshi/filters/i18n.py  (working copy)
@@ -187,7 +187,7 @@

 elif search_text and kind is TEXT:
 if not msgbuf:
-text = data.strip()
+text = unicode(data.strip())
 if text:
 data = data.replace(text, translate(text))
 yield kind, data, pos
}}}

And also next patch (against i18n branch) will be needed to see error page.

{{{
diff -r ef073d4b3952 trac/util/translation.py
--- a/trac/util/translation.py  Tue Sep 04 15:48:21 2007 +0900
+++ b/trac/util/translation.py  Tue Sep 04 15:49:28 2007 +0900
@@ -67,8 +67,10 @@ def activate(locale):
 locale_dir = pkg_resources.resource_filename(__name__, '../locale')
 _current.translations = Translations.load(locale_dir, locale)

+_null_translation = NullTranslations()
+
 def get_translations():
-return getattr(_current, 'translations', NullTranslations)
+return getattr(_current, 'translations', _null_translation)

 def deactivate():
 del _current.translations
}}}

P.S.
It might be better to talk about this topic in trac-dev, not in trac-users.

-- 
Shun-ichi GOTO

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



[Trac] Re: issue of concurrency in the trac wiki

2007-08-13 Thread Shun-ichi GOTO

2007/8/14, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Has anyone dealt with the issue of concurrency in the trac wiki ?  Is there
 a locking mechanism available or at least a warning so simultaneous
 sessions do not bonk one another ?

As one solution, if you use emacs-wiki to edit wiki page, you can detect the
confliction and merge the differences (from your base rev) into your editting
wiki text before commit to re-base your text up to latest rev.

-- 
Shun-ichi GOTO

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



[Trac] Re: where can I get libsvn ?

2007-07-05 Thread Shun-ichi GOTO

2007/7/6, Tom Malia [EMAIL PROTECTED]:

 OK, I was definitely confused by something on some websitesomewhere

 I've downloaded that zip and extracted the svn and libsvn folders to the
 Python LIB folder

svn-win32-x.x.x_pyxx.zip does not contains DLLs which are required to use
python bindings.

I recommend to use svn-python-x.x.x.win32-pyx.x.exe to install.
It can be get from same place of svn-win32-x.x.x_pyxx.zip files.
It will install required DLLs into libsvn directories.
Note that bindings will be installed under $PYTHON/lib/site-packages/
So don't forget removing lib/libsvn and lib/svn copied by yourself.



-- 
Shun-ichi GOTO

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



[Trac] Re: Mercurial plugin fails with 10.3

2006-12-16 Thread Shun-ichi GOTO

2006/12/16, kris [EMAIL PROTECTED]:

 Any ideas on how fix this?   This was working quite well up until the
 upgrade.

Did you upgrade mercurial also?
If so, it might be this issue.
http://trac.edgewall.org/ticket/4215
Use most recent version of mercurial plugin.

# I'm using mercurial plugin with hg (crew) and trac 0.10.3 on debian.


-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-11-09 Thread Shun-ichi GOTO

On 11/9/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:
  The openssl option -verify 1 is used by setting variable:
  (setq ssl-cetificate-verification-policy 1)
  How about it?
 
 Oh, gets better!
 Now I can  reach the site, and can login, but get one of the these errors:

OK, but I feel this is not the topic in trac-users ML...
Please send mail direct to me in next reply,
# if nobody else interested in this topic.


 Oddly: I get one of these with same settings, so don't know what makes
 the difference.

Mayby callback handling issue, but I cannot reproduce.
Please eval following line and try again.
(defalias 'trac-rpc-call 'trac-rpc-call-simple)

Is it effects?

Btw, I'm using Emacs 22.0.90 current (CVS HEAD).
What are you using? Cvs Head? 22.0.50 tarball?
22.0.90 tarball?
Url package (and other elisps) is oftenly
changed in recent emacs, so the behavour is very complex...
# and xml-rpc is not adapted for recent url code...

-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-11-08 Thread Shun-ichi GOTO

On 11/9/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:
  url-http-parse-response: Trying to parse HTTP response code in odd buffer:

This message will be appeared when url function cannot detect end of
header in http/https response. It seems openssl (wrapper) did not
run or dead.

Are you sure OpenSSH is installed?
And it is in your PATH?

If you have it, try this command.
 openssl s_client -quiet -host meta.nir.hu -port 5353 -verify 0
-CApath ~/.w3/certs
You will see some lines and meets verify returns:1.
Then please enter GET / HTTP1.0 then hit RETURN twice.
Http response will comes. Can you get?
# I assume target host is meta.nir.hu:5353

And please check you can access to your https url by usual browser.
https://meta.nir.hu:5353/xxx/xmlrpc address (used in trac-projects
setting) shows XML-PRC method list visualy.
Can you see it? If not, you should check server side configuration.

And also set to debug mode by (setq url-debug t)
and view (and send) debug output in buffer *URL-DEBUG*.

Btw, there are some tickets related with https.
Do you checked them?
http://trac.edgewall.org/query?status=newstatus=assignedstatus=reopenedsummary=%7Ehttpsorder=priority

-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-11-08 Thread Shun-ichi GOTO

On 11/9/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:
 I can get through with -verify 1 though, and get the HTTP response, too.

The openssl option -verify 1 is used by setting variable:
(setq ssl-cetificate-verification-policy 1)
How about it?

# Of course you can set variable via M-x customize-groupRETsslRET.

-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-11-07 Thread Shun-ichi GOTO

Sorry for late response, I missed the mail.

On 11/6/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:

  I created it, now I get:

  Loading /usr/share/emacs/22.0.50/site-lisp/trac-wiki.el
 (source)...done
  Contacting host: meta.nir.hu:5353
  Loading url-cache...done
  url-http-parse-response: Trying to parse HTTP response code in odd buffer:
 *http meta.nir.hu:5353*

  Stops here.

I remember the message is seen before.
Please try latest code which can get from:
http://www.meadowy.org/~gotoh/projects/trac-wiki/browser/trac-wiki.el?format=raw
Is this problem occured with latest code?

  The control-m characters can be seen on both the original default pages and
 the pages in our wiki that we created in firefox. They oddly cannot be seen
 on your trac WikiStart page, but are there on the other defaults.

I cannot reproduce this issue yet on both windows and unix.
But I guess it might be process coding issue.
I'll continue checking.

-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-11-05 Thread Shun-ichi GOTO

On 11/6/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:
  Then access to the site. Can you get working?
 
 Yeah, thanks, that works:)

OK,

 But when I turn on SSL in apache and update the url
 (https://our.site.hu:5353/login/xmlrpc) I get the following error:

 progn: Opening output file: no such file or directory,
 /home/szabolcs/.emacs.d/url/exec_ssl_quietly

Ah, maybe the directory ~/.emacs.d/url/ is not exist.
Create it then try again.

 By the way, the lines breakes in edited pages are seen as ^M
 characters, can it be changed somehow?

Humm, another issue. I filed as ticket.
http://www.meadowy.org/~gotoh/projects/trac-wiki/ticket/11#preview

It can be fix, but it cannot be reproduced in my environment.
Question:
  * Is it occured in trac-wiki's page?
  * Is it occured unchanged system default pages?
(e.g. WikiFormat, CamelCase, etc.)

-- 
Shun-ichi GOTO

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



[Trac] Re: wiki - external editing

2006-10-31 Thread Shun-ichi GOTO

On 10/31/06, Parragh Szabolcs [EMAIL PROTECTED] wrote:
  I have the code, but it is not in public place because
 I'm testing personaly. It has following features and restriction.
 I'll post it (trac.el, xml-rpc.el) soon if anyone be interested
 and want to use as *tester*.

  I'd love to test it, it sounds really promising. One of my dreams is to
 edit Trac pages in my favorite emacs:), so please don't hesitate to share to
 code!

I placed it in public.
  http://www.meadowy.org/~gotoh/projects/trac-wiki/

Try it!
Bug report is welcome. You can create ticket on that page.

You can access the code using mercurial (SCM).
The repository URL is:
  http://www.meadowy.org/~gotoh/hg/trac-wiki/

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-users
-~--~~~~--~~--~--~---