[Hepserver-commits] hep/hep connection.py,NONE,1.1 __init__.py,NONE,1.1
Status: Alpha
Brought to you by:
abefettig
|
From: <abe...@us...> - 2003-07-10 16:52:00
|
Update of /cvsroot/hepserver/hep/hep
In directory sc8-pr-cvs1:/tmp/cvs-serv13622/hep
Added Files:
connection.py __init__.py
Log Message:
left these out before...
--- NEW FILE: connection.py ---
from messaging.url import Url
import re
validName = re.compile("[a-zA-Z0-9]*\Z")
class UserConnection:
def __init__(self, name, url, description=None):
self.name = name
self.url = Url(url)
self.description = description
def __setattr__(self, attribute, value):
if attribute == 'name':
if validName.match(value):
self.__dict__['name'] = value
else:
raise "Invalid name string."
else:
self.__dict__[attribute] = value
--- NEW FILE: __init__.py ---
pass
|