1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/17caba3f5b80/
changeset: 17caba3f5b80
user: dannon
date: 2012-02-24 23:47:47
summary: Preliminary autopacking for javascript.
Disabled by default (pack_scripts in universe_wsgi.ini) and the packed scripts are still in the distribution, to be removed at some point.
affected #: 2 files
diff -r ad69e258128ae3dc5a9cfe2d13b53680279b48e8 -r 17caba3f5b808bd62a96ab3076934779dd01fb77 lib/galaxy/web/buildapp.py
--- a/lib/galaxy/web/buildapp.py
+++ b/lib/galaxy/web/buildapp.py
@@ -140,6 +140,8 @@
webapp = wrap_in_middleware( webapp, global_conf, **kwargs )
if asbool( kwargs.get( 'static_enabled', True ) ):
webapp = wrap_in_static( webapp, global_conf, **kwargs )
+ if asbool(kwargs.get('pack_scripts', False)):
+ pack_scripts()
# Close any pooled database connections before forking
try:
galaxy.model.mapping.metadata.engine.connection_provider._pool.dispose()
@@ -147,7 +149,21 @@
pass
# Return
return webapp
-
+
+def pack_scripts():
+ from glob import glob
+ from subprocess import call
+ cmd = "java -jar scripts/yuicompressor.jar --type js static/scripts/%(fname)s -o static/scripts/packed/%(fname)s"
+ raw_js= [os.path.basename(g) for g in glob( "static/scripts/*.js" )]
+ for fname in raw_js:
+ if os.path.exists('static/scripts/packed/%s' % fname):
+ if os.path.getmtime('static/scripts/packed/%s' % fname) > os.path.getmtime('static/scripts/%s' % fname):
+ continue # Skip, packed is newer than source.
+ d = dict( fname=fname )
+ log.info("%(fname)s --> packed/%(fname)s" % d)
+ call( cmd % d, shell=True )
+
+
def wrap_in_middleware( app, global_conf, **local_conf ):
"""
Based on the configuration wrap `app` in a set of common and useful
diff -r ad69e258128ae3dc5a9cfe2d13b53680279b48e8 -r 17caba3f5b808bd62a96ab3076934779dd01fb77 universe_wsgi.ini.sample
--- a/universe_wsgi.ini.sample
+++ b/universe_wsgi.ini.sample
@@ -261,6 +261,12 @@
static_style_dir = %(here)s/static/june_2007_style/blue
static_robots_txt = %(here)s/static/robots.txt
+# Pack javascript at launch (/static/scripts/*.js)
+# This only happens if the modified timestamp of the source .js is newer
+# than the version (if it exists) in /static/scripts/packed/
+# Note that this requires java > 1.4 for executing yuicompressor.jar
+#pack_scripts = False
+
# -- Advanced proxy features
# For help on configuring the Advanced proxy features, see:
@@ -525,7 +531,6 @@
# be used for each "Set at Runtime" input, independent of others in the Workflow
#enable_unique_workflow_defaults = False
-
# -- Job Execution
# If running multiple Galaxy processes, one can be designated as the job
@@ -673,4 +678,5 @@
#queue = galaxy_queue
#exchange = galaxy_exchange
#routing_key = bar_code_scanner
-#rabbitmqctl_path = /path/to/rabbitmqctl
+#rabbitmqctl_path = /path/to/rabbitmqctl
+
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/ad69e258128a/
changeset: ad69e258128a
user: fubar
date: 2012-02-24 22:48:03
summary: remove validator from input genome - as Jeremy pointed out it will prevent the use of an unspecified build local genome.
affected #: 1 file
diff -r 71f34e63440125da6b2e572ea360b2032cfa79fc -r ad69e258128ae3dc5a9cfe2d13b53680279b48e8 tools/extract/extract_genomic_dna.xml
--- a/tools/extract/extract_genomic_dna.xml
+++ b/tools/extract/extract_genomic_dna.xml
@@ -23,9 +23,7 @@
#end if
</command><inputs>
- <param format="interval,gff" name="input" type="data" label="Fetch sequences for intervals in">
- <validator type="unspecified_build" />
- </param>
+ <param format="interval,gff" name="input" type="data" label="Fetch sequences for intervals in"/><param name="interpret_features" type="select" label="Interpret features when possible" help="Only meaningful for GFF, GTF datasets."><option value="yes">Yes</option><option value="no">No</option>
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/71f34e634401/
changeset: 71f34e634401
user: natefoo
date: 2012-02-24 21:49:54
summary: Include the job id in the error message when a job operation raises an exception in the PBS runner.
affected #: 1 file
diff -r 4f8164a1a9c5504152decfb89d54a171d54de988 -r 71f34e63440125da6b2e572ea360b2032cfa79fc lib/galaxy/jobs/runners/pbs.py
--- a/lib/galaxy/jobs/runners/pbs.py
+++ b/lib/galaxy/jobs/runners/pbs.py
@@ -193,7 +193,7 @@
elif op == 'fail':
self.fail_job( obj )
except:
- log.exception( "Uncaught exception %sing job" % op )
+ log.exception( "(%s) Uncaught exception %sing job" % ( getattr( obj, 'job_id', None ), op ) )
def queue_job( self, job_wrapper ):
"""Create PBS script for a job and submit it to the PBS queue"""
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/4f8164a1a9c5/
changeset: 4f8164a1a9c5
user: dannon
date: 2012-02-24 19:58:01
summary: boto 2.2.2 - update eggs.ini
affected #: 1 file
diff -r a9e1f0c2f2398661152ef221193e944e50cb71a1 -r 4f8164a1a9c5504152decfb89d54a171d54de988 eggs.ini
--- a/eggs.ini
+++ b/eggs.ini
@@ -32,7 +32,7 @@
[eggs:noplatform]
amqplib = 0.6.1
Beaker = 1.4
-boto = 1.8d
+boto = 2.2.2
decorator = 3.1.2
docutils = 0.7
drmaa = 0.4b3
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/a9e1f0c2f239/
changeset: a9e1f0c2f239
user: dannon
date: 2012-02-24 19:37:57
summary: FTP Upload - Normalize filesystem and input filename encodings prior to comparison.
Umlauts, etc will now behave properly in FTP upload dialog and will no longer default to "No data was entered in the upload form...".
affected #: 1 file
diff -r 9a5a2a6bbec2b74f888b907aff05ebcfb274aee4 -r a9e1f0c2f2398661152ef221193e944e50cb71a1 lib/galaxy/tools/parameters/grouping.py
--- a/lib/galaxy/tools/parameters/grouping.py
+++ b/lib/galaxy/tools/parameters/grouping.py
@@ -2,18 +2,19 @@
Constructs for grouping tool parameters
"""
-from basic import ToolParameter
-from galaxy.util.expressions import ExpressionContext
-
import logging
log = logging.getLogger( __name__ )
-import StringIO, os, urllib
+import os
+import StringIO
+import unicodedata
+from basic import ToolParameter
from galaxy.datatypes import sniff
+from galaxy.util import inflector
+from galaxy.util import relpath
+from galaxy.util import sanitize_for_filename
from galaxy.util.bunch import Bunch
-from galaxy.util.odict import odict
-from galaxy.util import json, relpath, sanitize_for_filename
-from galaxy.util import inflector
+from galaxy.util.expressions import ExpressionContext
class Group( object ):
def __init__( self ):
@@ -306,6 +307,9 @@
# look for files uploaded via FTP
valid_files = []
if ftp_files is not None:
+ # Normalize input paths to ensure utf-8 encoding is normal form c.
+ # This allows for comparison when the filesystem uses a different encoding than the browser.
+ ftp_files = [unicodedata.normalize('NFC', f) for f in ftp_files]
if trans.user is None:
log.warning( 'Anonymous user passed values in ftp_files: %s' % ftp_files )
ftp_files = []
@@ -316,7 +320,8 @@
for filename in filenames:
path = relpath( os.path.join( dirpath, filename ), user_ftp_dir )
if not os.path.islink( os.path.join( dirpath, filename ) ):
- valid_files.append( path )
+ # Normalize filesystem paths
+ valid_files.append( unicodedata.normalize('NFC', path ))
else:
ftp_files = []
for ftp_file in ftp_files:
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/9a5a2a6bbec2/
changeset: 9a5a2a6bbec2
user: fubar
date: 2012-02-24 08:27:34
summary: Add a validator type="unspecified_build"
to extract genomic dna tool
affected #: 1 file
diff -r f4389a047276b4a465b01cc33e1a8c316466a3cc -r 9a5a2a6bbec2b74f888b907aff05ebcfb274aee4 tools/extract/extract_genomic_dna.xml
--- a/tools/extract/extract_genomic_dna.xml
+++ b/tools/extract/extract_genomic_dna.xml
@@ -23,7 +23,9 @@
#end if
</command><inputs>
- <param format="interval,gff" name="input" type="data" label="Fetch sequences for intervals in"/>
+ <param format="interval,gff" name="input" type="data" label="Fetch sequences for intervals in">
+ <validator type="unspecified_build" />
+ </param><param name="interpret_features" type="select" label="Interpret features when possible" help="Only meaningful for GFF, GTF datasets."><option value="yes">Yes</option><option value="no">No</option>
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/f4389a047276/
changeset: f4389a047276
user: jgoecks
date: 2012-02-23 20:47:08
summary: Put Trackster stylesheets in display base so that they are available for embedded visualizations.
affected #: 2 files
diff -r 8cf1bb73a24748aea056a0f1e218783dcaac6e1b -r f4389a047276b4a465b01cc33e1a8c316466a3cc templates/display_base.mako
--- a/templates/display_base.mako
+++ b/templates/display_base.mako
@@ -112,7 +112,7 @@
<%def name="stylesheets()">
${parent.stylesheets()}
- ${h.css( "autocomplete_tagging", "embed_item", "trackster", "jquery.rating" )}
+ ${h.css( "autocomplete_tagging", "embed_item", "trackster", "jquery.rating", "overcast/jquery-ui-1.8.5.custom" )}
<style type="text/css">
.page-body {
diff -r 8cf1bb73a24748aea056a0f1e218783dcaac6e1b -r f4389a047276b4a465b01cc33e1a8c316466a3cc templates/visualization/display.mako
--- a/templates/visualization/display.mako
+++ b/templates/visualization/display.mako
@@ -19,8 +19,6 @@
}
</style>
- ## For visualization (TODO: copied from browser.mako):
- ${h.css( "trackster", "overcast/jquery-ui-1.8.5.custom" )}
<style type="text/css">
#browser-container {
overflow: none;
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/981e31193e25/
changeset: 981e31193e25
user: guru
date: 2012-02-23 19:38:01
summary: Added apiMel3 to manual builds.
affected #: 1 file
diff -r 96a30bc9711e4019e31e3f597b305953b2444a72 -r 981e31193e25dc5db1923ef2d77c88b99347d670 tool-data/shared/ucsc/manual_builds.txt
--- a/tool-data/shared/ucsc/manual_builds.txt
+++ b/tool-data/shared/ucsc/manual_builds.txt
@@ -705,3 +705,4 @@
Arabidopsis_thaliana_TAIR10 Arabidopsis thaliana TAIR10 (Arabidopsis_thaliana_TAIR10) chr1=30427671,chr2=19698289,chr3=23459830,chr4=18585056,chr5=26975502,chrM=366924,chrC=154478
dp4 D. pseudoobscura (dp4)
Tcacao_1.0 Theobroma cacao Dec 2010 (CIRAD/Theobroma cacao Belizian Criollo) Tc01=31268538,Tc02=27754001,Tc03=25475297,Tc04=23504306,Tc05=25651337,Tc06=15484475,Tc07=14169093,Tc08=11535834,Tc09=28459094,Tc10=15164258,Tc00=108886888
+apiMel3 Honeybee (Apis mellifera): apiMel3 Group10=11440700,Group11=12576330,Group12=9182753,Group13=8929068,Group14=8318479,Group15=7856270,Group16=5631066,Group1=25854376,Group2=14465785,Group3=12341916,Group4=10796202,Group5=13386189,Group6=14581788,Group7=9974240,Group8=11452794,Group9=10282195,GroupUn=399230636
\ No newline at end of file
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.