Skip to main content

The fuzzytraverser allow traverse via url issued with some corrupion

Project description

Short package description
=========================

Package developed to provide possibility display web pages correctly when
URL issued with a few misstakes (changing and missing letters, etc).

Package consist from three paths:

FuzzyTraverser
To turn on fuzzy traverser, interface IFuzzyTraverser must be
appointed to container, traversed by this way. For example,
see some ZCML-directive::

<class class="zope.app.folder.folder.Folder">
<implements
interface="ng.fuzzytraverser.interfaces.IFuzzyTraverser"
/>
</class>

All content names of this container may be miss entered into url-bar
of your browser. Error sensibility of fuzzy traverser can be
customize by means of special utility or annotations of traversed
containers;

FuzzyTraverserProperties
The IFuzzyTraverserProperties utility can be added into local
site-manager and get enable possibility set fuzzy traverse
parameters. The utility must be registered with interface printed
bellow::

ng.fuzzytraverser.fuzzytraverserproperties.interfaces.IFuzzyTraverserProperties

Custom parameters followed:

On
Fuzzy traverser turn on (it worked as ordinal traverser otherwize);

Rate
Detectiob threshold - this is maximal corruption grade on
which name can be determined yet. Entering values above 0.5
is not recomended;

Use
The parameter reserved on future.

FuzzyTraverserAnnotation
To turn on customize traverser in defferent areas of site tree, you
can customize via annotations of traversed containers. Interface
IFuzzyTraverserAnnotable must be appointed on container to get such
posibiblity. For example::

<class class="zope.app.folder.folder.Folder">
<implements
interface="ng.fuzzytraverser.fuzzytraverserannotation.\
interfaces.IFuzzyTraverserAnnotable"
/>
</class>

After what each object provided such interface
(zope.app.folder.folder.Folder in our sample) be have page titled
FuzzyTraverser. Parameters to custom on this page are followed:

On
Fuzzy traverser turn on (it worked as ordinal traverser
otherwize);

Rate
Detectiob threshold - this is maximal corruption grade on
which name can be determined yet. Entering values above 0.5
is not recomended;

Use
This annotation parameters will be used to get solution.

Short recomends for use
-----------------------

Product highly resourse hungry and it turn on for containers large then 100
items is not recommends.



* Sun Jan 13 2008 Andrey Orlov <dbdt@dreambot.ru> 1.0.1
- License declaration changed
- Trace statements excluded

* Thu Nov 15 2007 Andrey Orlov <dbdt@dreambot.ru> 1.0.0
- first official release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ng.fuzzytraverser-1.0.1.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file ng.fuzzytraverser-1.0.1.tar.gz.

File metadata

File hashes

Hashes for ng.fuzzytraverser-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8ace999be87e86441266c903c049368e25212369807342753da4cfc3005f4f21
MD5 bd825f563777f1126cb36bd8d6006e85
BLAKE2b-256 8b2b9da11790288364d455db3f2021f186222d0f3e914a88173b7a27a6991338

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page