Thanks that's much nicer.
On Fri, 11 Feb 2005 22:28:55 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> If you iterate over the author nodes you can check the user name and password
> of each in turn.
>
> Not tested code!
>
> def authenticateAuthor(author, password):
> authorxml = 'author.x
If you iterate over the author nodes you can check the user name and password
of each in turn.
Not tested code!
def authenticateAuthor(author, password):
authorxml = 'author.xml'
path = os.path.join(xml, authorxml)
if not os.path.exists(path):
return False, False
else:
Hi,
This code works, but I don't like it much:
def authenticateAuthor(author, password):
authorxml = 'author.xml'
path = os.path.join(xml, authorxml)
try: if not os.path.exists(path):
authorfile = False
else:
authorfile = True
tree = E.ElementTree(file=path