Created
March 4, 2011 22:46
-
-
Save dwins/855857 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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