def create_datastore(self, name, workspace=None): if isinstance(workspace, basestring): workspace = self.get_workspace(workspace) elif workspace is None: workspace = self.get_default_workspace() return UnsavedDataStore(self, name, workspace)
def create_datastore(self, name, workspace=None): if isinstance(workspace, string_types): workspace = self.get_workspaces(names=workspace)[0] elif workspace is None: workspace = self.get_default_workspace() return UnsavedDataStore(self, name, workspace)