Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

FeatureLayer parentlayer #235

Closed DShokes closed 8 years ago

DShokes commented 8 years ago

ArcRest or ArcRestHelper

ArcRest

Version or date of download

3.5.4

Bug or Enhancement

Bug

Repo Steps or Enhancement details

featureLayer.parentLayer returns None for me and its used in things like create_fc_template and get_local_copy. I tried with initialize=True and False, and using the arcresthelper securityhandlerhelper with securityType set to 'Portal'. init has if not self._parentLayer is None:. Wouldn't that be if self._parentLayer is None:?

setting manually works

fLayer._parentLayer = FeatureService(url=os.path.dirname(fLayer._url),securityHandler=fLayer._securityHandler)
achapkowski commented 8 years ago

@DShokes issue resolved in latest commit.