Permalink
Browse files

fix policy

  • Loading branch information...
1 parent 5e5ff0b commit 88e4f784c71266fdd65884dcd60d3e2e91931ec7 @JoeGermuska JoeGermuska committed Aug 9, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 dataprocessing/deploy_csv.py
@@ -31,11 +31,9 @@ def get_2000_top_level_counts(geography):
return '',''
METADATA_HEADERS = ['STATE','COUNTY', 'CBSA', 'CSA', 'NECTA', 'CNECTA', 'NAME', 'POP100', 'HU100']
-def deploy_table(state_fips, sumlev, table_id, public=False):
+def deploy_table(state_fips, sumlev, table_id, policy='private'):
- if public:
- policy = 'public-read'
- else:
+ if policy not in POLICIES:
policy = 'private'
s = StringIO()
gz = gzip.GzipFile(fileobj=s, mode='wb')

0 comments on commit 88e4f78

Please sign in to comment.