source: opsi/opsi-getDepots.py@ 838

Last change on this file since 838 was 834, checked in by joergs, on Mar 9, 2010 at 11:34:36 PM

get depot list

  • Property svn:executable set to *
File size: 421 bytes
Line 
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3
4#from OPSI.Backend.Backend import *
5from OPSI.Backend.BackendManager import BackendManager
6
7#from OPSI.Backend.JSONRPC import JSONRPCBackend
8#from OPSI.Logger import *
9#from OPSI.Product import *
10#from OPSI import Tools
11#from OPSI.UI import *
12
13bm = BackendManager(authRequired = False, configFile = '/etc/opsi/backendManager.d')
14depotIds = bm.getDepotIds_list()
15print depotIds
16
Note: See TracBrowser for help on using the repository browser.