--> --> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.7.9: /usr/bin/python
Thu Aug 16 23:04:56 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/web/www/directory.cgi in ()
    332 
    333   alctx.locals.banner = utils.banner (dbc)
=>  334   handler(alctx, ah, fd)
    335   #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    336   if action != 'draw_code' and action != 'addComment' and action != 'searchSchool':
handler = <function showDir>, alctx = <albatross.context.SimpleContext instance>, ah = <directory.DirectoryHandler object>, fd = FieldStorage(None, None, [MiniFieldStorage('path', '/Gorodskie_detskie_meropriyatiya')])
 /var/web/www/directory.cgi in showDir(alctx=<albatross.context.SimpleContext instance>, ah=<directory.DirectoryHandler object>, fs=FieldStorage(None, None, [MiniFieldStorage('path', '/Gorodskie_detskie_meropriyatiya')]))
     27   if path != '/':
     28     parent = ah.getEntry (path)
=>   29     if parent.type == '[HTML]':
     30       parent.content = utils.textToHtml (parent.content)
     31       parent.content = re.sub ('<!local!>', '/directory%s' % ah.getEntry (id = parent.id).path, parent.content)
parent = None, parent.type undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'type'
      args = ("'NoneType' object has no attribute 'type'",)
      message = "'NoneType' object has no attribute 'type'"