Re: [galaxy-dev] How to get the encoded ID from the HistoryDatasetAssociation?
Thanks Martin! With your hint and the example from graphviz.mako I was able to get this to work. Cheers, Malcolm On Wednesday, June 08, 2016 03:23:31 PM Martin Čech wrote: Hello Malcolm, encoded_id is a database row id that has been ran through this method (https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/web/security/__init__.py#L46[1]) using the 'secret' from galaxy.ini config. You should be able to do something like this in the mako: ${trans.security.encode_id( hda.id[2] )} thank you for using Galaxy Martin On Wed, Jun 8, 2016 at 11:16 AM Malcolm Tobias wrote: hda.name[4] and hda.id[2] I can see various properties of thedataset, but not the encoded ID. Any suggestions on how to do this? Thanks in advance. Malcolm --Malcolm Tobias314.362.1594 ___Please keep all replies on the list by using "reply all"in your mail client. To manage your subscriptions to thisand other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/[5] http://galaxyproject.org/search/mailinglists/[6] -- Malcolm Tobias 314.362.1594 [1] https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/web/security/__init__.py#L46 [2] http://hda.id [3] mailto:mtob...@wustl.edu [4] http://hda.name [5] https://lists.galaxyproject.org/ [6] http://galaxyproject.org/search/mailinglists/ ___ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
Re: [galaxy-dev] How to get the encoded ID from the HistoryDatasetAssociation?
Hello Malcolm, encoded_id is a database row id that has been ran through this method ( https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/web/security/__init__.py#L46) using the 'secret' from galaxy.ini config. You should be able to do something like this in the mako: ${trans.security.encode_id( hda.id )} thank you for using Galaxy Martin On Wed, Jun 8, 2016 at 11:16 AM Malcolm Tobias wrote: > > I'm really close to having a way to visualize radiological images in > Galaxy, > but need help in getting past the final hurdle. > > In the mako file, I can see how to pass parameters to the javascript that > does > the visualization. It's expecting a URL to the dataset, like: > > params["images"] = ["/datasets/78176dfc865c8302/display/"]; > > From what I can gather 78176dfc865c8302 is the encoded ID for the dataset. > From variables like hda.name and hda.id I can see various properties of > the > dataset, but not the encoded ID. > > Any suggestions on how to do this? > > Thanks in advance. > > Malcolm > > -- > Malcolm Tobias > 314.362.1594 > > > ___ > Please keep all replies on the list by using "reply all" > in your mail client. To manage your subscriptions to this > and other Galaxy lists, please use the interface at: > https://lists.galaxyproject.org/ > > To search Galaxy mailing lists use the unified search at: > http://galaxyproject.org/search/mailinglists/ ___ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
[galaxy-dev] How to get the encoded ID from the HistoryDatasetAssociation?
I'm really close to having a way to visualize radiological images in Galaxy, but need help in getting past the final hurdle. In the mako file, I can see how to pass parameters to the javascript that does the visualization. It's expecting a URL to the dataset, like: params["images"] = ["/datasets/78176dfc865c8302/display/"]; From what I can gather 78176dfc865c8302 is the encoded ID for the dataset. From variables like hda.name and hda.id I can see various properties of the dataset, but not the encoded ID. Any suggestions on how to do this? Thanks in advance. Malcolm -- Malcolm Tobias 314.362.1594 ___ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/