From: Thierry Parmentelat Date: Fri, 4 Feb 2011 11:50:41 +0000 (+0100) Subject: running accessors before db not working (misses admin account) X-Git-Tag: plcapi-5.0-28~1 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=9878a3da9568b100757b0313933441d2c7b1e7d2 running accessors before db not working (misses admin account) so merged accessors as one of the early stages of db-config.d --- diff --git a/db-config.d/003-accessors b/db-config.d/003-accessors new file mode 100644 index 0000000..6b43079 --- /dev/null +++ b/db-config.d/003-accessors @@ -0,0 +1,4 @@ +# -*-python-*- +from PLC.Accessor import AccessorSingleton + +AccessorSingleton(api).run_all_tag_locators() diff --git a/plc.d/accessors b/plc.d/accessors deleted file mode 100755 index 1695f60..0000000 --- a/plc.d/accessors +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python /usr/bin/plcsh -# -*- python -*- - -# -# run this before the 'db' step -# various object creation functions might depend -# on the tagtype being created, like -# 'vref' and 'initscript' for slices, and possibly more -# -# priority: 899 -# - -from PLC.Accessor import AccessorSingleton - -if __name__ == '__main__': - print "service plc start accessors : ensuring creation and consistency of accessor tags" - AccessorSingleton(api).run_all_tag_locators() -