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.

This commit is contained in:
diva
2009-05-22 04:23:59 +00:00
parent 9de2436c1e
commit da170cde46
6 changed files with 59 additions and 26 deletions

View File

@@ -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