Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #124 from AlexArcPy/master
Browse files Browse the repository at this point in the history
Fixed handling of feature services in folders
  • Loading branch information
achapkowski committed Nov 17, 2015
2 parents 21316ec + 392dbcc commit 64aff2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/arcrest/ags/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def services(self):
proxy_url=self._proxy_url,
proxy_port=self._proxy_port))
elif service['type'] == "FeatureServer":
url = "%s/%s/%s" % (self.location, service['name'], service['type'])
if self.currentFolder == 'root':
serviceName = service['name']
else:
serviceName = service['name'].split('/')[1]
url = "%s/%s/%s" % (self.location, serviceName, service['type'])
services.append(FeatureService(url=url,
securityHandler=self._securityHandler,
proxy_url=self._proxy_url,
Expand Down

0 comments on commit 64aff2a

Please sign in to comment.