 et = require('elementtree')
 util = require('util')
 url = require('url')
-    
+
 asset_dict_filter = (dict) ->
     output = {}
     for k,v of dict

                    return callback(error) if error?
                    cls = @build_asset_class_from_xml(xml)
                    @global_cache[asset_type_name] = cls
                    callback(undefined, cls)

                    
                
                

        

class V1Transaction
    constructor: (@query_results=[], @v1meta) ->
        @dirty_assets = []

    add_to_dirty: (asset) ->
        if asset not in @dirty_asset
            @dirty_assets.push asset

    create: (asset_type, data) ->
        @v1meta.get_asset_class asset_type, (err, AssetClass) =>
            new_asset = new AssetClass(undefined, @)
