from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 5 _modified_time = 1287725818.302273 _template_filename='templates/dataset/edit_attributes.mako' _template_uri='/dataset/edit_attributes.mako' _template_cache=cache.Cache(__name__, _modified_time) _source_encoding=None _exports = ['stylesheets', 'datatype', 'javascripts', 'title'] def _mako_get_namespace(context, name): try: return context.namespaces[(__name__, name)] except KeyError: _mako_generate_namespaces(context) return context.namespaces[(__name__, name)] def _mako_generate_namespaces(context): # SOURCE LINE 163 ns = runtime.Namespace('__anon_0x10ab4e150', context._clean_inheritance_tokens(), templateuri=u'/dataset/security_common.mako', callables=None, calling_uri=_template_uri, module=None) context.namespaces[(__name__, '__anon_0x10ab4e150')] = ns # SOURCE LINE 2 ns = runtime.Namespace('__anon_0x10aad7dd0', context._clean_inheritance_tokens(), templateuri=u'/message.mako', callables=None, calling_uri=_template_uri, module=None) context.namespaces[(__name__, '__anon_0x10aad7dd0')] = ns def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, u'/base.mako', _template_uri) def render_body(context,**pageargs): context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) _import_ns = {} _mako_get_namespace(context, '__anon_0x10ab4e150')._populate(_import_ns, [u'render_permission_form']) _mako_get_namespace(context, '__anon_0x10aad7dd0')._populate(_import_ns, [u'render_msg']) status = _import_ns.get('status', context.get('status', UNDEFINED)) render_permission_form = _import_ns.get('render_permission_form', context.get('render_permission_form', UNDEFINED)) render_msg = _import_ns.get('render_msg', context.get('render_msg', UNDEFINED)) all_roles = _import_ns.get('all_roles', context.get('all_roles', UNDEFINED)) data_annotation = _import_ns.get('data_annotation', context.get('data_annotation', UNDEFINED)) def datatype(dataset,datatypes): return render_datatype(context.locals_(__M_locals),dataset,datatypes) h = _import_ns.get('h', context.get('h', UNDEFINED)) current_user_roles = _import_ns.get('current_user_roles', context.get('current_user_roles', UNDEFINED)) len = _import_ns.get('len', context.get('len', UNDEFINED)) message = _import_ns.get('message', context.get('message', UNDEFINED)) trans = _import_ns.get('trans', context.get('trans', UNDEFINED)) data = _import_ns.get('data', context.get('data', UNDEFINED)) datatypes = _import_ns.get('datatypes', context.get('datatypes', UNDEFINED)) _ = _import_ns.get('_', context.get('_', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 1 __M_writer(u'\n') # SOURCE LINE 2 __M_writer(u'\n\n') # SOURCE LINE 4 __M_writer(u'\n\n') # SOURCE LINE 8 __M_writer(u'\n\n') # SOURCE LINE 13 __M_writer(u'\n\n') # SOURCE LINE 25 __M_writer(u'\n\n') # SOURCE LINE 27 if message: # SOURCE LINE 28 __M_writer(u' ') __M_writer(unicode(render_msg( message, status ))) __M_writer(u'\n') # SOURCE LINE 30 __M_writer(u'\n
\n
') # SOURCE LINE 32 __M_writer(unicode(_('Edit Attributes'))) __M_writer(u'
\n
\n
\n \n
\n \n
\n \n
\n
\n
\n
\n \n
\n \n
\n
\n
\n') # SOURCE LINE 54 if trans.get_user() is not None: # SOURCE LINE 55 __M_writer(u'
\n \n
\n \n
\n
\n
Add an annotation or notes to a dataset; annotations are available when a history is viewed.
\n
\n') # SOURCE LINE 66 for name, spec in data.metadata.spec.items(): # SOURCE LINE 67 if spec.visible: # SOURCE LINE 68 __M_writer(u'
\n \n
\n ') # SOURCE LINE 73 __M_writer(unicode(data.metadata.get_html_by_name( name, trans=trans ))) __M_writer(u'\n
\n
\n
\n') # SOURCE LINE 79 __M_writer(u'
\n \n
\n
\n
\n \n
\n
\n \n
\n
\n This will inspect the dataset and attempt to correct the above column values if they are not accurate.\n
\n
\n
\n') # SOURCE LINE 94 if data.missing_meta(): # SOURCE LINE 95 __M_writer(u'
\n
') # SOURCE LINE 96 __M_writer(unicode(_('Required metadata values are missing. Some of these values may not be editable by the user. Selecting "Auto-detect" will attempt to fix these values.'))) __M_writer(u'
\n
\n') # SOURCE LINE 99 __M_writer(u'
\n
\n

\n') # SOURCE LINE 102 converters = data.get_converter_types() __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin()[__M_key]) for __M_key in ['converters'] if __M_key in __M_locals_builtin()])) __M_writer(u'\n') # SOURCE LINE 103 if len( converters ) > 0: # SOURCE LINE 104 __M_writer(u'

\n
') # SOURCE LINE 105 __M_writer(unicode(_('Convert to new format'))) __M_writer(u'
\n
\n
\n \n
\n
\n \n
\n
\n This will create a new dataset with the contents of this dataset converted to a new format. \n
\n
\n
\n
\n \n
\n
\n
\n
\n

\n') # SOURCE LINE 130 __M_writer(u'\n

\n
') # SOURCE LINE 132 __M_writer(unicode(_('Change data type'))) __M_writer(u'
\n
\n') # SOURCE LINE 134 if data.datatype.allow_datatype_change: # SOURCE LINE 135 __M_writer(u'
\n \n
\n \n
\n ') # SOURCE LINE 142 __M_writer(unicode(datatype( data, datatypes ))) __M_writer(u'\n
\n
\n ') # SOURCE LINE 145 __M_writer(unicode(_('This will change the datatype of the existing dataset but not modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset.'))) __M_writer(u'\n
\n
\n
\n
\n \n
\n
\n') # SOURCE LINE 153 else: # SOURCE LINE 154 __M_writer(u'
\n
') # SOURCE LINE 155 __M_writer(unicode(_('Changing the datatype of this dataset is not allowed.'))) __M_writer(u'
\n
\n') # SOURCE LINE 158 __M_writer(u'
\n
\n

\n\n') # SOURCE LINE 162 if trans.app.security_agent.can_manage_dataset( current_user_roles, data.dataset ): # SOURCE LINE 163 __M_writer(u' ') __M_writer(u'\n ') # SOURCE LINE 164 __M_writer(unicode(render_permission_form( data.dataset, data.get_display_name(), h.url_for( controller='root', action='edit', id=data.id ), all_roles ))) __M_writer(u'\n') # SOURCE LINE 165 elif trans.user: # SOURCE LINE 166 __M_writer(u'

\n
View Permissions
\n
\n
\n') # SOURCE LINE 170 if data.dataset.actions: # SOURCE LINE 171 __M_writer(u'
    \n') # SOURCE LINE 172 for action, roles in trans.app.security_agent.get_permissions( data.dataset ).items(): # SOURCE LINE 173 if roles: # SOURCE LINE 174 __M_writer(u'
  • ') __M_writer(unicode(action.description)) __M_writer(u'
  • \n
      \n') # SOURCE LINE 176 for role in roles: # SOURCE LINE 177 __M_writer(u'
    • ') __M_writer(unicode(role.name)) __M_writer(u'
    • \n') # SOURCE LINE 179 __M_writer(u'
    \n') # SOURCE LINE 182 __M_writer(u'
\n') # SOURCE LINE 183 else: # SOURCE LINE 184 __M_writer(u'

This dataset is accessible by everyone (it is public).

\n') # SOURCE LINE 186 __M_writer(u'
\n
\n
\n') # SOURCE LINE 190 __M_writer(u'

\n

\n
Copy History Item
\n
\n
\n
\n \n
\n Make a copy of this history item in your current history or any of your active histories.\n
\n
\n
\n
\n
\n\n') return '' finally: context.caller_stack._pop_frame() def render_stylesheets(context): context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, '__anon_0x10ab4e150')._populate(_import_ns, [u'render_permission_form']) _mako_get_namespace(context, '__anon_0x10aad7dd0')._populate(_import_ns, [u'render_msg']) h = _import_ns.get('h', context.get('h', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 6 __M_writer(u'\n ') # SOURCE LINE 7 __M_writer(unicode(h.css( "base", "autocomplete_tagging" ))) __M_writer(u'\n') return '' finally: context.caller_stack._pop_frame() def render_datatype(context,dataset,datatypes): context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, '__anon_0x10ab4e150')._populate(_import_ns, [u'render_permission_form']) _mako_get_namespace(context, '__anon_0x10aad7dd0')._populate(_import_ns, [u'render_msg']) _ = _import_ns.get('_', context.get('_', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 15 __M_writer(u'\n \n') return '' finally: context.caller_stack._pop_frame() def render_javascripts(context): context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, '__anon_0x10ab4e150')._populate(_import_ns, [u'render_permission_form']) _mako_get_namespace(context, '__anon_0x10aad7dd0')._populate(_import_ns, [u'render_msg']) h = _import_ns.get('h', context.get('h', UNDEFINED)) parent = _import_ns.get('parent', context.get('parent', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 10 __M_writer(u'\n ') # SOURCE LINE 11 __M_writer(unicode(parent.javascripts())) __M_writer(u'\n ') # SOURCE LINE 12 __M_writer(unicode(h.js( "galaxy.base", "jquery.autocomplete", "autocomplete_tagging" ))) __M_writer(u'\n') return '' finally: context.caller_stack._pop_frame() def render_title(context): context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, '__anon_0x10ab4e150')._populate(_import_ns, [u'render_permission_form']) _mako_get_namespace(context, '__anon_0x10aad7dd0')._populate(_import_ns, [u'render_msg']) _ = _import_ns.get('_', context.get('_', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 4 __M_writer(unicode(_('Edit Dataset Attributes'))) return '' finally: context.caller_stack._pop_frame()