From da170cde4684ea0f8ed90ea4ed0b30172ad9981d Mon Sep 17 00:00:00 2001 From: diva Date: Fri, 22 May 2009 04:23:59 +0000 Subject: Cleaning up a few HG things. HG Posts may now work in grids, but if the home grid is a standalone, this still doesn't work -- something wrong with RegionAssetService's DB connection. --- OpenSim/Framework/AssetBase.cs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index 0551533..361a6fa 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs @@ -160,6 +160,8 @@ namespace OpenSim.Framework public class AssetMetadata { private UUID m_fullid; + // m_id added as a dirty hack to transition from FullID to ID + private string m_id; private string m_name = String.Empty; private string m_description = String.Empty; private DateTime m_creation_date; @@ -174,13 +176,25 @@ namespace OpenSim.Framework public UUID FullID { get { return m_fullid; } - set { m_fullid = value; } + set { m_fullid = value; m_id = m_fullid.ToString(); } } public string ID { - get { return m_fullid.ToString(); } - set { m_fullid = new UUID(value); } + //get { return m_fullid.ToString(); } + //set { m_fullid = new UUID(value); } + get { return m_id; } + set + { + UUID uuid = UUID.Zero; + if (UUID.TryParse(value, out uuid)) + { + m_fullid = uuid; + m_id = m_fullid.ToString(); + } + else + m_id = value; + } } public string Name -- cgit v1.1