Revision b3724640 lib/objects.py

b/lib/objects.py
211 211
  def Validate(self):
212 212
    """Validates the slots.
213 213

  
214
    This method returns L{None} if the validation succeeds, or raises
215
    an exception otherwise.
216

  
217
    This method must be implemented by the child classes.
218

  
219
    @rtype: NoneType
220
    @return: L{None}, if the validation succeeds
221

  
222
    @raise Exception: validation fails
223

  
214 224
    """
215 225

  
216 226
  def ToDict(self):
......
2159 2169
    assert self.display or self.kind in [constants.CONS_MESSAGE,
2160 2170
                                         constants.CONS_SPICE,
2161 2171
                                         constants.CONS_SSH]
2162
    return True
2163 2172

  
2164 2173

  
2165 2174
class Network(TaggableObject):

Also available in: Unified diff