PyOpenWorm.website module

class PyOpenWorm.website.Website(title=None, **kwargs)[source]

Bases: PyOpenWorm.document.BaseDocument

A representation of a website

defined_augment()[source]

This fuction must return False if identifier_augment() would raise an IdentifierMissingException. Override it when defining a non-standard identifier for subclasses of DataObjects.

identifier_augment()[source]

Override this method to define an identifier in lieu of one explicity set.

One must also override defined_augment() to return True whenever this method could return a valid identifier. IdentifierMissingException should be raised if an identifier cannot be generated by this method.

Raises:
IdentifierMissingException
title

The official name for the website

url

A URL for the website