Lines 1510-1517
def open(self, loadGroups=1):
|
Link Here
|
---|
|
1510 |
host, path = unc.split(':',1) |
1510 |
host, path = unc.split(':',1) |
1511 |
sharepath=path |
1511 |
sharepath=path |
1512 |
while len(sharepath) > 1: |
1512 |
while len(sharepath) > 1: |
1513 |
escaped_sharepath_filter = univention.admin.filter.escapeForLdapFilter('path=%s' % sharepath) |
1513 |
filter_ = univention.admin.filter.conjunction('&', [ |
1514 |
res = univention.admin.modules.lookup(univention.admin.modules.get('shares/share'), None, self.lo, filter='(&(host=%s)(%s))' % (host, escaped_sharepath_filter), scope='domain') |
1514 |
univention.admin.filter.expression('univentionShareHost', host), |
|
|
1515 |
univention.admin.filter.conjunction('|', [ |
1516 |
univention.admin.filter.expression('univentionSharePath', sharepath.rstrip('/')), |
1517 |
univention.admin.filter.expression('univentionSharePath', '%s/' % (sharepath.rstrip('/'))), |
1518 |
]) |
1519 |
]) |
1520 |
res = univention.admin.modules.lookup(univention.admin.modules.get('shares/share'), None, self.lo, filter=filter_, scope='domain') |
1515 |
if len(res) == 1: |
1521 |
if len(res) == 1: |
1516 |
self['homeShare']=res[0].dn |
1522 |
self['homeShare']=res[0].dn |
1517 |
relpath=path.replace(sharepath, '') |
1523 |
relpath=path.replace(sharepath, '') |