English 中文(简体)
自动防止Trac的土基旋转?
原标题:Automatically preventing wiki-rot in Trac?

Hi guys : 是否有办法利用处理过时页等工艺品的原始材料,或提及哪怕有密码的纸页、没有链接的页页或更新率低的页数来改进外壳质量? 我认为,可能会有几种可用来防止轮iki的犹豫主义:

  • Number of recent edits
  • Number of recent views
  • Wether or not a page links to a source file
  • Wether or not a wiki page s last update is < or > the source files it links to
  • Wether entire directories in the wiki have been used/edited/ignored over the last "n" days

等等。 等等。

否则,仅仅这些衡量标准就从行政角度对每一页和每个名录都有用。

最佳回答

I don t know of an existing plugin that does this, but everything you mentioned certainly sounds do-able in one way or another.

您可使用trac-admin。 CLI 指挥系统,以获取维基网页清单,并将特定维基页面(作为平原)的内容排在档案或停播上。 通过这样做,你可以撰写一份全方位页的文字,说明链接的内容,并产生一个页数链接。 这应当标明“孤儿”(与外部资源相联系的网页)、与源文档链接的网页和链接页数。 通过wget,可以帮助你确定中断的联系。

To access last-edited dates, you ll want to query Trac s database. The query you ll need will depend on the particular database type that you re using. For playing with the database in a (relatively) safe and easy manner, I find the WikiTableMacro and TracSql plugins quite useful.

贵问题中最难执行的内容是页面访问。 我认为,Trac保持页面观测的轨道,你很可能不得不把你的网络服务器的标识用于这种信息。

问题回答

How about these:

BadLinksPlugin: This plugin logs bad local links found in wiki content. It s a quite new one, just deals with dangling links, but any bad links as I see from source code. This is at least one building block to your solution request.

VisitCounterMacro: Macro displays how many times was wiki page displayed. This is a rather old one. You ll get just the statistic per page while an administrative view is missing, but this could be built rather easily, i.e. like a custom PageIndex.





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签