def make_tag(target, **attrs):
 target_id = target.id
 target_type = object_class(target.type_name)
 default_time = int(time.mktime(datetime.datetime(2010, 1, 1).timetuple()))
 all_attrs = {'tagger': 'Test Author <test@nodomain.com>', 'tag_time': default_time, 'tag_timezone': 0, 'message': 'Test message.', 'object': (target_type, target_id), 'name': 'Test Tag'}
 all_attrs.update(attrs)
 return make_object(Tag, **all_attrs)

def make_tag ( target , ** attrs ) : target_id = target . id target_type = object_class ( target . type_name ) default_time = int ( time . mktime ( datetime . datetime ( 2010 , 1 , 1 ) . timetuple ( ) ) ) all_attrs = { 'tagger' : 'Test Author <test@nodomain.com>' , 'tag_time' : default_time , 'tag_timezone' : 0 , 'message' : 'Test message.' , 'object' : ( target_type , target_id ) , 'name' : 'Test Tag' } all_attrs . update ( attrs ) return make_object ( Tag , ** all_attrs )
make a tag object with a default set of values .