Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)