def __init__(self, site, ptitle, isslug=False):
        """Initialize the page object created.

        Arguments:

            - ptitle: A string with the page title.

            - isslug: Boolean that indicates whether the title is a
                         "real" title (with spaces, etc.) or if it is
                         the "sanitized" version (lower case, no spaces,
                         underscores, no punctuation)

        This way of encoding the initialization parameters makes it
        easy to automatically initialize the object whether it is for
        creation of a new page, or it is to load an existing page.

        If "isslug" is omitted or false, the program assumes that we
        want to create a new page with that title (although it will
        check). It "sanitized" is true, it's supposed to be the
        reference to an existing page, and the program will try to load
        the pertinent information.

        """
        self.site = site
        self._config = None

        self._exists_on_disk = None

        self._slug = None
        self._title = None
        self._content = None

        self._dirs = {'www_dir': None,
                      'www_filename': None,
                      'source_dir': None,
                      'source_filename': None
        }
        #self._dir = None
        #self._file_name = None
        #self._mathjax = mdx_mathjax.MathJaxExtension()

        if not isslug:  #it's a title, we'll create a page
            self._create(ptitle)
        else:
            if self.site.page_exists_on_disk(ptitle):
                self._exists_on_disk = True
                self._load(ptitle)
            else:
                raise ValueError
def __init__ ( self , site , ptitle , isslug = False ) : self . site = site self . _config = None self . _exists_on_disk = None self . _slug = None self . _title = None self . _content = None self . _dirs = { 'www_dir' : None , 'www_filename' : None , 'source_dir' : None , 'source_filename' : None } if not isslug : self . _create ( ptitle ) else : if self . site . page_exists_on_disk ( ptitle ) : self . _exists_on_disk = True self . _load ( ptitle ) else : raise ValueError
Initialize the page object created.

        Arguments:

            - ptitle: A string with the page title.

            - isslug: Boolean that indicates whether the title is a
                         "real" title (with spaces, etc.) or if it is
                         the "sanitized" version (lower case, no spaces,
                         underscores, no punctuation)

        This way of encoding the initialization parameters makes it
        easy to automatically initialize the object whether it is for
        creation of a new page, or it is to load an existing page.

        If "isslug" is omitted or false, the program assumes that we
        want to create a new page with that title (although it will
        check). It "sanitized" is true, it's supposed to be the
        reference to an existing page, and the program will try to load
        the pertinent information.