kikoololisation de munin

(on rajoute des accents partout :)

darcs-hash:20081004175702-bd074-cf32f0e641d84d78ea6a7a8d3a2ed5902ca514b4.gz
This commit is contained in:
Antoine Durand-Gasselin 2008-10-04 19:57:02 +02:00
parent ce5e155942
commit cee435c7ad
8 changed files with 29 additions and 34 deletions

View file

@ -26,15 +26,11 @@ if arg == "config" :
print 'orphelines.draw AREA'
elif arg == "fichier" :
request = RequestCLI(u"wiki.crans.org/")
request.form = request.args = request.setup_args()
_ = request.getText
#if request.mode_getpagelinks: # prevent recursion
#return ''
# find root page.
#from MoinMoin.Page import Page
#rootpage = Page(request, u"FrontPage", is_rootpage=1)
@ -48,14 +44,14 @@ elif arg == "fichier" :
for link in links:
if link in orphaned:
del orphaned[link]
fichier_temp = tempfile.mktemp()
file = open('%s' % fichier_temp,'w')
file.write("total.value %d\n" % pages.__len__())
file.write("orphelines.value %d\n" % orphaned.__len__())
file.close()
os.system('mv %s %s' % (fichier_temp, fichier))
else :
os.system('cat %s' % fichier)