forked from Techsystech/web
commit
68105ba838
|
@ -0,0 +1,35 @@
|
||||||
|
**This file is going to be generated by oca-gen-addon-readme.**
|
||||||
|
|
||||||
|
*Manual changes will be overwritten.*
|
||||||
|
|
||||||
|
Please provide content in the ``readme`` directory:
|
||||||
|
|
||||||
|
* **DESCRIPTION.rst** (required)
|
||||||
|
* INSTALL.rst (optional)
|
||||||
|
* CONFIGURE.rst (optional)
|
||||||
|
* **USAGE.rst** (optional, highly recommended)
|
||||||
|
* DEVELOP.rst (optional)
|
||||||
|
* ROADMAP.rst (optional)
|
||||||
|
* HISTORY.rst (optional, recommended)
|
||||||
|
* **CONTRIBUTORS.rst** (optional, highly recommended)
|
||||||
|
* CREDITS.rst (optional)
|
||||||
|
|
||||||
|
Content of this README will also be drawn from the addon manifest,
|
||||||
|
from keys such as name, authors, maintainers, development_status,
|
||||||
|
and license.
|
||||||
|
|
||||||
|
A good, one sentence summary in the manifest is also highly recommended.
|
||||||
|
|
||||||
|
|
||||||
|
Automatic changelog generation
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
`HISTORY.rst` can be auto generated using `towncrier <https://pypi.org/project/towncrier>`_.
|
||||||
|
|
||||||
|
Just put towncrier compatible changelog fragments into `readme/newsfragments`
|
||||||
|
and the changelog file will be automatically generated and updated when a new fragment is added.
|
||||||
|
|
||||||
|
Please refer to `towncrier` documentation to know more.
|
||||||
|
|
||||||
|
NOTE: the changelog will be automatically generated when using `/ocabot merge $option`.
|
||||||
|
If you need to run it manually, refer to `OCA/maintainer-tools README <https://github.com/OCA/maintainer-tools>`_.
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
|
||||||
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
|
from . import controllers
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
|
||||||
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Disallow indexing completely via robots.txt',
|
||||||
|
'author': 'Ventor, Xpansa Group, Odoo Community Association (OCA)',
|
||||||
|
'website': 'https://github.com/OCA/web',
|
||||||
|
'category': 'web',
|
||||||
|
'version': '12.0.1.0.0',
|
||||||
|
'depends': [
|
||||||
|
'web',
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
|
||||||
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
|
from . import main
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
|
||||||
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||||
|
from odoo import http
|
||||||
|
from odoo.addons.web.controllers.main import Home
|
||||||
|
|
||||||
|
|
||||||
|
class Main(Home):
|
||||||
|
|
||||||
|
@http.route('/robots.txt', type='http', auth="none")
|
||||||
|
def robots(self):
|
||||||
|
return http.request.make_response(
|
||||||
|
"User-agent: *\nDisallow: /",
|
||||||
|
[('Content-Type', 'text/plain')],
|
||||||
|
)
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
* Nedas Zilinskas <nedas.zilinskas@xpansa.com> (http://xpansa.com)
|
||||||
|
* Stefan Rijnhart <stefan@opener.amsterdam>
|
|
@ -0,0 +1,3 @@
|
||||||
|
The development of this module has been financially supported by:
|
||||||
|
|
||||||
|
* Ventor, Xpansa Group (<https://ventor.tech/>)
|
|
@ -0,0 +1,2 @@
|
||||||
|
This module was written to implement a robots.txt file to prevent web crawlers (like google) from indexing pages.
|
||||||
|
This module does not depend on Website module.
|
|
@ -0,0 +1,3 @@
|
||||||
|
Installation as usual. No specific installation steps / configuration required.
|
||||||
|
|
||||||
|
**WARNING:** this module is not to be used with `Website` module as it has a separate functionality for robots.txt.
|
|
@ -0,0 +1 @@
|
||||||
|
* Investigate possibilies for compatibility with `Website` module as it has a separate functionality for robots.txt.
|
|
@ -0,0 +1,3 @@
|
||||||
|
To use this module, you need to:
|
||||||
|
|
||||||
|
No configuration needed. Once installed adds robots.txt (ex.: http://example.org/robots.txt).
|
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Loading…
Reference in New Issue