示例#1
0
 def __init__(self, source=None):
     """creates a new URL instance, copying from the source if present"""
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     if source:
         self.path = source.path
         self.desc = source.desc
         self.type = source.type
     else:
         self.path = ""
         self.desc = ""
         self.type = UrlType()