Esri / ArcREST

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

Can disable sync be used to enable sync? #340

Open tpcolson opened 7 years ago

tpcolson commented 7 years ago

Can https://github.com/Esri/ArcREST/blob/master/samples/disable_sync_service_item.py also be used to ENABLE sync by just changing

result = fst.disableSync(url=fs.url)

to

result = fst.enableSync(url=fs.url)

I have a scenario where I need to disable sync, do something, then re-enable it

MikeMillerGIS commented 7 years ago

yes, https://github.com/Esri/ArcREST/blob/master/src/arcresthelper/featureservicetools.py#L254