On Vr, 2007-06-15 at 05:56 +0200, lars wrote:
> Binärdateien Pootle.orig/indexpage.pyc and Pootle/indexpage.pyc sind
> verschieden.
> diff -ruN Pootle.orig/pootle.py Pootle/pootle.py
> --- Pootle.orig/pootle.py 2007-05-16 14:25:25.000000000 +0200
> +++ Pootle/pootle.py 2007-06-15 05:01:29.000000000 +0200
> @@ -195,11 +195,15 @@
> """generates the robots.txt file"""
> langcodes = self.potree.getlanguagecodes()
> excludedfiles = ["login.html", "register.html", "activate.html"]
> + baseurl = self.instance.baseurl
> + # we cannot rely on self.instance.baseurl ending with a slash
> + if not baseurl.endswith("/"):
> + baseurl += "/"
> content = "User-agent: *\n"
> for excludedfile in excludedfiles:
> - content += "Disallow: /%s\n" % excludedfile
> + content += "Disallow: %s%s\n" % (baseurl, excludedfile)
> for langcode in langcodes:
> - content += "Disallow: /%s/\n" % langcode
> + content += "Disallow: %s%s/\n" % (baseurl, langcode)
> return content
>
> def getpage(self, pathwords, session, argdict):
> Binärdateien Pootle.orig/versioncontrol.pyc and
> Pootle/versioncontrol.pyc sind verschieden.
I'm just wondering about this: if Pootle is available at
server.org/pootle/, will server.org/pootle/robots.txt mean anything or
help any search engines? I thought that bots only read the robots file
in the root of the server.
Furthermore, baseurl is usually a full URL (including the http:// part).
Is that allowed in a Disallow clause? (heh:-) I was under the
impression that only relative paths are used.
F
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle