def __init__(self, title='', uri_string = None,
              add_date=None, last_visited=None,
              last_modified=None, description=''):
     self._children = []             # performance hack; should call base
     self._title = title
     if uri_string:
         self._uri = norm_uri(uri_string)
         self._islink_p = 1
     self._desc = description
     self._add_date = add_date
     self._visited = last_visited
     self._modified = last_modified
     self._leaf_p = uri_string or last_visited
Beispiel #2
0
 def __init__(self,
              title='',
              uri_string=None,
              add_date=None,
              last_visited=None,
              last_modified=None,
              description=''):
     self._children = []  # performance hack; should call base
     self._title = title
     if uri_string:
         self._uri = norm_uri(uri_string)
         self._islink_p = 1
     self._desc = description
     self._add_date = add_date
     self._visited = last_visited
     self._modified = last_modified
     self._leaf_p = uri_string or last_visited
 def set_uri(self, uri_string=''):
     self._uri = norm_uri(uri_string)
     if self._uri:
         self._islink_p = 1
         self._leaf_p = 1
Beispiel #4
0
 def set_uri(self, uri_string=''):
     self._uri = norm_uri(uri_string)
     if self._uri:
         self._islink_p = 1
         self._leaf_p = 1