Commit Graph
8 Commits
Author SHA1 Message Date
Daniel Blankenberg c44aee110d Update WormBase datasource tool to use WormBase 2. 2012-05-02 17:04:33 -04:00
Daniel Blankenberg 694300ce97 Some reworking of data_source tools and the standard data_source.py script. Remove hard-coded special-case handling of UCSC Table Browser and GBrowse datasource tools; functionality remains, but is now a part of the individual tools' XML configuration files. Auto-detect is now available by providing data_type=auto parameters. 2011-04-21 13:12:10 -04:00
Daniel Blankenberg f92b25d2f5 Enhance tool parameter sanitization. Sanitization rules can now be defined on a per input parameter basis. Resolves ticket #38 and #142.
Sanitization now occurs as part of the InputValueWrapper logic. Previously sanitization occurred as soon as parameter values were provided by the user via form submits, causing the sanitized values to be stored in the database. Now the original user specified values are stored in the database and sanitation happens when str is called on the InputValueWrapper, i.e. during command-line generation and when generating configfiles.

Abstract out param name and value translations that are performed on data source tools. This changes some of the names of the tags used for these purposes  (e.g. data_type_translation becomes value_translation) to reflect this generalization. The ToolConfigSyntax wiki page has been updated with these changes.

Future Enhancement:
Allow methods with arguments and keywords to be specified for sanitation and translation purposes.
2009-12-07 10:19:41 -05:00
Daniel Blankenberg b2e2b801ea Enhance data_source.py to take advantage of the content length when known. If content length provided by external application is
greater than config.output_size_limit, no data will be retrieved and an error message will be provided to the user.

Tools using this script have been updated to provide the max file size on the command line.

Resolves ticket #93.
2009-08-03 12:02:54 -04:00
Greg Von Kuster bd41001a99 i18n fix: dataset.info should not be translated since it will generally not have an entry in the catalog. Wormbase fixes: URL to main site corrected, and all supported builds added to gbrowse_build_sites.txt. 2009-03-26 09:34:05 -04:00
Greg Von Kuster 354d0447df Fixes for i18n support - all charsets set to utf-8, now able to paste multi-byte chars in upload form, templates use utf-8 as output_charset, other miscellaneous fixes. 2009-03-20 02:49:30 -04:00
Greg Von Kuster ad8f672677 Fixes for wormbase tools, use post as http method rather than get. 2009-03-19 21:41:06 -04:00
Greg Von Kuster dfd5e9827f Rename gbrowse_elegans to wormbase_test, add a config for the wormbase production server. 2008-12-15 10:37:39 -05:00