Skip to content

Instantly share code, notes, and snippets.

@dwins
Created March 4, 2011 22:46
Show Gist options
  • Save dwins/855857 to your computer and use it in GitHub Desktop.
Save dwins/855857 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
from geoserver.catalog import Catalog
cat = Catalog('http://demo.geonode.org/geoserver-geonode-dev/rest/') # + username, password)...
def check(x):
for name in dir(x):
if getattr(x, name) is None:
print x, name, "IS NONE"
for ws in cat.get_workspaces():
check(ws)
for st in cat.get_stores():
check(st)
for rs in cat.get_resources(st):
check(rs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment