add argument to enable to create a bucket
also fo t.py
This commit is contained in:
@@ -21,10 +21,10 @@ Usage:
|
||||
"""
|
||||
|
||||
|
||||
def main(dbname=None):
|
||||
def main(dbname=None, access='write'):
|
||||
# egen = EventStream(ScanReply(), ScanStream(), n=NicosStream('localhost:14002'))
|
||||
egen = EventStream(ScanReply(), ScanStream())
|
||||
db = SEHistory(dbname, access='write')
|
||||
db = SEHistory(dbname, access=access)
|
||||
db.enable_write_access()
|
||||
|
||||
host = socket.gethostname().split('.')[0]
|
||||
|
||||
Reference in New Issue
Block a user