Ejemplo n.º 1
0
 def get_by_uuid(cls, context, aggregate_uuid):
     try:
         db_aggregate = _aggregate_get_from_db_by_uuid(context,
                                                       aggregate_uuid)
     except exception.AggregateNotFound:
         db_aggregate = db.aggregate_get_by_uuid(context, aggregate_uuid)
     return cls._from_db_object(context, cls(), db_aggregate)
Ejemplo n.º 2
0
 def get_by_uuid(cls, context, aggregate_uuid):
     try:
         db_aggregate = _aggregate_get_from_db_by_uuid(
             context, aggregate_uuid)
     except exception.AggregateNotFound:
         db_aggregate = db.aggregate_get_by_uuid(context, aggregate_uuid)
     return cls._from_db_object(context, cls(), db_aggregate)
Ejemplo n.º 3
0
 def get_by_uuid(cls, context, aggregate_uuid):
     db_aggregate = db.aggregate_get_by_uuid(context, aggregate_uuid)
     return cls._from_db_object(context, cls(), db_aggregate)