Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.webapps.tool_shed.util package

Submodules

galaxy.webapps.tool_shed.util.hgweb_config module

class galaxy.webapps.tool_shed.util.hgweb_config.HgWebConfigManager[source]

Bases: object

__init__()[source]
add_entry(lhs, rhs)[source]

Add an entry in the hgweb.config file for a new repository.

change_entry(old_lhs, new_lhs, new_rhs)[source]

Change an entry in the hgweb.config file for a repository - this only happens when the owner changes the name of the repository.

get_entry(lhs)[source]

Return an entry in the hgweb.config file for a repository

hgweb_config
make_backup()[source]
read_config(force_read=False)[source]
write_config()[source]

Writing the in-memory configuration to the hgweb.config file on disk.

galaxy.webapps.tool_shed.util.ratings_util module

class galaxy.webapps.tool_shed.util.ratings_util.ItemRatings[source]

Bases: galaxy.model.item_attrs.UsesItemRatings

Overrides rate_item method since we also allow for comments

rate_item(trans, user, item, rating, comment='')[source]

Rate an item. Return type is <item_class>RatingAssociation.

galaxy.webapps.tool_shed.util.shed_statistics module

class galaxy.webapps.tool_shed.util.shed_statistics.ShedCounter(model)[source]

Bases: object

__init__(model)[source]
sa_session

Returns a SQLAlchemy session

generate_statistics()[source]