Document API: fix DAV handlers that contain "-"

Many DAV properties are like "calendar-data", which has to be translated
to _prefix_"calendar_data" for a pythonic function.

bzr revid: p_christ@hol.gr-20100729133938-hqshcsqtdrm6n2yc
This commit is contained in:
P. Christeas 2010-07-29 16:39:38 +03:00
parent 2311e39dcb
commit 780258d567
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class node_class(object):
logger.debug('No namespace: %s ("%s")',ns, prop)
return None
mname = prefix + "_" + prop
mname = prefix + "_" + prop.replace('-','_')
if not hasattr(self, mname):
return None