Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Marienfeld committed Nov 25, 2012
1 parent d4b0afd commit f3a5d29
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/group-creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@
if not 'deutschland' == args.domain:
group_entity['type'] = 'subgroup'

# try:
# ckan.group_register_post(group_entity)
# except:
# traceback.print_exc()
try:
ckan.group_register_post(group_entity)
print 'ok: ' + gid
except:
traceback.print_exc()

if not 'deutschland' == args.domain:
for supergroupname in transl.translate(gid):
print supergroupname
supergroup = ckan.group_entity_get(supergroupname)
supergroup['groups'] = [{'name':gid}] + supergroup['groups']
try:
ckan.group_register_post(supergroup)
print 'ok: ' + supergroupname
except:
traceback.print_exc()

0 comments on commit f3a5d29

Please sign in to comment.