## Script (Python) "robots.txt" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # Example code: # Import a standard function, and get the HTML request and response objects. from Products.PythonScripts.standard import html_quote request = container.REQUEST RESPONSE = request.RESPONSE ex = 'User-agent: *\nDisallow: /login/client\nDisallow: /login/admin\n' def rec(path): ex = '' for folder in path.objectValues('Folder'): url = folder.absolute_url() surl = url.split('www.emuadmin.com') ex += 'Disallow: ' + surl[1] + '/quote\n' if rec(folder): ex += rec(folder) return ex ex += rec(context.getSiteRoot().services) print ex return printed