예제 #1
0
 def refresh(self):
     self._from_db_object(self._context, self,
                          db.security_group_get(self._context, self.id))
예제 #2
0
 def refresh(self):
     self._from_db_object(self._context, self,
                          db.security_group_get(self._context, self.id))
예제 #3
0
 def get(cls, context, secgroup_id):
     db_secgroup = db.security_group_get(context, secgroup_id)
     return cls._from_db_object(context, cls(), db_secgroup)
예제 #4
0
 def get(cls, context, secgroup_id):
     db_secgroup = db.security_group_get(context, secgroup_id)
     return cls._from_db_object(context, cls(), db_secgroup)