This class is provided with a .__str__() function for debug display
of PageGet objects.
# - - - P a g e G e t . _ _ s t r _ _ - - -
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S %z"
def __str__ ( self ):
"Output self as a string"
humanDate = self.when.strftime ( self.TIME_FORMAT )
if self.username != "-":
isPassword = " [PWD]"
else:
isPassword = ""
return ( "%s %s%s %s %s %s" %
( humanDate, self.accessor, isPassword,
self.command, self.status, self.url ) )