""" slog: Simple sample tracker system. Load the system account into the database. Required at db creation. Per Kraulis 2011-02-22 """ from slog import utils from slog.load import put_document ACCOUNTS = {'admin': dict(entity='account', name='system', role='admin', password=utils.hexdigest('rubb1sh'), fullname='System administrator', timestamp=utils.now_iso())} if __name__ == '__main__': map(put_document, ACCOUNTS.values())
""" slog: Simple sample tracker system. Load the system account into the database. Required at db creation. Per Kraulis 2011-02-22 """ from slog import utils from slog.load import put_document ACCOUNTS = { 'admin': dict(entity='account', name='system', role='admin', password=utils.hexdigest('rubb1sh'), fullname='System administrator', timestamp=utils.now_iso()) } if __name__ == '__main__': map(put_document, ACCOUNTS.values())
Load some initial data documents into the database. Per Kraulis 2011-02-01 2011-02-14 modified document design """ from slog import utils from slog.load import put_document ACCOUNTS = { 'admin': dict(entity='account', name='system', role='admin', password=utils.hexdigest('rubb1sh'), fullname='System administrator', timestamp=utils.now_iso()), 'max_kaller': dict(entity='account', name='max_kaller', role='manager', password=utils.hexdigest('flax'), fullname='Kaller, Max', timestamp=utils.now_iso()), 'joakim_lundeberg': dict(entity='account', name='joakim_lundeberg', role='customer', password=utils.hexdigest('jocke'), fullname='Lundeberg, Joakim',
Load some initial data documents into the database. Per Kraulis 2011-02-01 2011-02-14 modified document design """ from slog import utils from slog.load import put_document ACCOUNTS = {'admin': dict(entity='account', name='system', role='admin', password=utils.hexdigest('rubb1sh'), fullname='System administrator', timestamp=utils.now_iso()), 'max_kaller': dict(entity='account', name='max_kaller', role='manager', password=utils.hexdigest('flax'), fullname='Kaller, Max', timestamp=utils.now_iso()), 'joakim_lundeberg': dict(entity='account', name='joakim_lundeberg', role='customer', password=utils.hexdigest('jocke'), fullname='Lundeberg, Joakim', timestamp=utils.now_iso())}