Skip to main content

TracGoogleSearch

TracGoogleSearch is a trac plugin which enables your trac environment to use Google’s Adsense For Search on the mini search box displayed on top.

Note: Regular trac search won’t be disabled, the users must click the “Search” button to access it, and will only show up and work if user has SEARCH_VIEW permissions, unlike this plugin, which does not require any special permissions since it’s querying Google not trac.

Installation

Installing the plugin is as easy as:

sudo easy_install TracGoogleSearch

And then enabling it:

[components]
tracext.google.search.* = enabled

And that’s it!

Configuration

In order to use this plugin you must first create a custom search engine on your Adsense account, configure it like you want it and choose to display the results on a page on your own website.

If you wish Google to show results relative to the domain of your trac environment, on your Adsense account, edit your search engine settings, choose “view more advanced features”, select “Search the entire web but emphasize included sites” and then under “Sites” add your trac environment domain.

From the resulting code that Google provides we’ll need the values from the hidden fields named, cx and cof, ie, your client id and search id strings.

Consider the following example code:

<form action="http://domain.tld/gsearch" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-0000000000000000:0aaaa0aaa00a" />
    <input type="hidden" name="cof" value="FORID:1" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript"
        src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>

The values you’ll need to remember would be partner-pub-0000000000000000:0aaaa0aaa00a and FORID:1, the rest of the code will be provided by the plugin.

The plugin can then be configured on trac’s administration panel, under the section Google and then Search.

Bugs and/or New Features

Please submit bugs of new features to:

http://google.ufsoft.org/

Source Code

If you wish to be on the bleeding edge and get the latest available code:

hg clone http://google.ufsoft.org/hg/search/ TracGoogleSearch

Note: For up-to-date documentation please visit TracGoogleSearch’s site.

Release files for TracGoogleSearch 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for TracGoogleSearch 0.1.3
File Size Uploaded
TracGoogleSearch-0.1.3.zip 18.7 kB Details
TracGoogleSearch-0.1.3.tar.gz 11.3 kB Details
TracGoogleSearch-0.1.3.tar.bz2 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TracGoogleSearch 0.1.3
File Interpreter ABI Platform
TracGoogleSearch-0.1.3-py2.6.egg Legacy Egg format - - Details

Total release size: 56.4 kB

Release files / TracGoogleSearch-0.1.3.zip

Download URL TracGoogleSearch-0.1.3.zip
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3ad9dbd13961fb9ff09ddd8062e8053ab92330bddd7a77ad7c5443d62bd7fd8a
BLAKE2b-256 checksum
How to use checksums
00a43ee4695012cd95892164e259cec39fa2c97a601a5c7d62729c884c848eba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / TracGoogleSearch-0.1.3.tar.gz

Download URL TracGoogleSearch-0.1.3.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d88517390dc32d0a40d231f961cc7a8439830f87132e33c98c01793845cc1d3
BLAKE2b-256 checksum
How to use checksums
38d8c56aea605e2cbe03cbda1334592be3d193561b2069a9b57ff86fe7616189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / TracGoogleSearch-0.1.3.tar.bz2

Download URL TracGoogleSearch-0.1.3.tar.bz2
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d60a9061f3ffe11f80071857493d8b5f88ecc2cda1140a9251b2ea3a40f6047
BLAKE2b-256 checksum
How to use checksums
de32183847ebb4a607eb74f0da430774366b88bcf3002fb79b8750d74fde7892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / TracGoogleSearch-0.1.3-py2.6.egg

Download URL TracGoogleSearch-0.1.3-py2.6.egg
Size 16.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
9f93ac613466aa06f643f0333f77f510200754511e30cfeb17768b7a98008476
BLAKE2b-256 checksum
How to use checksums
2736fa2580edf6c6f8234b73b3d0fb7d35b43c4a7455656a5ffa808ab218df47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

4 release files

0.1.2

4 release files

0.1.1

4 release files

0.1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page